chore: updare deps

This commit is contained in:
Anthony Fu 2021-01-23 23:44:24 +08:00
parent 4245ac1806
commit 73b5a9bc4d
6 changed files with 291 additions and 271 deletions

View File

@ -14,21 +14,21 @@
"devDependencies": {
"@antfu/eslint-config-ts": "^0.4.3",
"@type-challenges/utils": "workspace:*",
"@types/fs-extra": "^9.0.4",
"@types/js-yaml": "^3.12.5",
"@types/fs-extra": "^9.0.6",
"@types/js-yaml": "^4.0.0",
"@types/lz-string": "^1.3.34",
"@types/node": "^14.14.11",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"eslint": "^7.15.0",
"typescript": "^4.1.2",
"@types/node": "^14.14.22",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"eslint": "^7.18.0",
"typescript": "^4.1.3",
"utility-types": "^3.10.0"
},
"dependencies": {
"esno": "^0.3.0",
"fast-glob": "^3.2.4",
"fs-extra": "^9.0.1",
"js-yaml": "^3.14.1",
"esno": "^0.4.0",
"fast-glob": "^3.2.5",
"fs-extra": "^9.1.0",
"js-yaml": "^4.0.0",
"lz-string": "^1.4.4"
},
"eslintConfig": {

520
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -56,7 +56,7 @@ const action: Action = async(github, context, core) => {
let info: any
try {
info = YAML.safeLoad(infoRaw || '')
info = YAML.load(infoRaw || '')
}
catch {
info = null
@ -125,7 +125,7 @@ const action: Action = async(github, context, core) => {
const userEmail = `${user.id}+${user.login}@users.noreply.github.com`
const files: Record<string, string> = {
[resolveFilePath(dir, 'info', 'yml', locale)]: `${YAML.safeDump(info)}\n`,
[resolveFilePath(dir, 'info', 'yml', locale)]: `${YAML.dump(info)}\n`,
[resolveFilePath(dir, 'README', 'md', locale)]: `${question}\n`,
[`${dir}/template.ts`]: `${template}\n`,
[`${dir}/test-cases.ts`]: `${tests}\n`,

View File

@ -43,7 +43,7 @@ export function readmeCleanUp(text: string) {
}
export function loadInfo(s: string): Partial<QuizMetaInfo> | undefined {
const object = YAML.safeLoad(s) as any
const object = YAML.load(s) as any
if (!object)
return undefined

View File

@ -7,17 +7,17 @@
"@actions/github": "^4.0.0",
"@actions/io": "^1.0.2",
"@type-challenges/octokit-create-pull-request": "^0.1.8",
"esno": "^0.3.0",
"fast-glob": "^3.2.4",
"fs-extra": "^9.0.1",
"esno": "^0.4.0",
"fast-glob": "^3.2.5",
"fs-extra": "^9.1.0",
"google-translate-open-api": "^1.3.7",
"js-yaml": "^3.14.1",
"js-yaml": "^4.0.0",
"limax": "^2.1.0",
"lz-string": "^1.4.4"
},
"devDependencies": {
"@octokit/types": "^6.1.1",
"@types/js-yaml": "^3.12.5",
"@octokit/types": "^6.5.0",
"@types/js-yaml": "^4.0.0",
"@types/lz-string": "^1.3.34"
}
}

View File

@ -10,6 +10,6 @@
"release": "pnpx bumpp --commit --tag && pnpm publish"
},
"devDependencies": {
"typescript": "^4.1.2"
"typescript": "^4.1.3"
}
}