From b9e600fd62e1b00b9bece7bb97364b5e2851bde8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2020 20:35:04 +0900 Subject: [PATCH] deps: bump @types/js-yaml from 3.12.4 to 3.12.5 (#369) * deps: bump @types/js-yaml from 3.12.4 to 3.12.5 Bumps [@types/js-yaml](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/js-yaml) from 3.12.4 to 3.12.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/js-yaml) Signed-off-by: dependabot[bot] --- __tests__/get-inputs.test.ts | 6 ++++-- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/__tests__/get-inputs.test.ts b/__tests__/get-inputs.test.ts index a28dbb8..7ff2590 100644 --- a/__tests__/get-inputs.test.ts +++ b/__tests__/get-inputs.test.ts @@ -9,7 +9,8 @@ beforeEach(() => { jest.resetModules(); process.stdout.write = jest.fn(); - const doc = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8')); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const doc: any = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8')); Object.keys(doc.inputs).forEach(name => { const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`; process.env[envVar] = doc.inputs[name]['default']; @@ -17,7 +18,8 @@ beforeEach(() => { }); afterEach(() => { - const doc = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8')); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const doc: any = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8')); Object.keys(doc.inputs).forEach(name => { const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`; console.debug(`delete ${envVar}\t${process.env[envVar]}`); diff --git a/package-lock.json b/package-lock.json index c0cf7bf..0f219cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1144,9 +1144,9 @@ } }, "@types/js-yaml": { - "version": "3.12.4", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.4.tgz", - "integrity": "sha512-fYMgzN+9e28R81weVN49inn/u798ruU91En1ZnGvSZzCRc5jXx9B2EDhlRaWmcO1RIxFHL8AajRXzxDuJu93+A==", + "version": "3.12.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.5.tgz", + "integrity": "sha512-JCcp6J0GV66Y4ZMDAQCXot4xprYB+Zfd3meK9+INSJeVZwJmHAW30BBEEkPzXswMXuiyReUGOP3GxrADc9wPww==", "dev": true }, "@types/json-schema": { diff --git a/package.json b/package.json index 6bb7938..6a40a6f 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ }, "devDependencies": { "@types/jest": "^26.0.13", - "@types/js-yaml": "^3.12.4", + "@types/js-yaml": "^3.12.5", "@types/node": "~12", "@typescript-eslint/eslint-plugin": "^2.34.0", "@typescript-eslint/parser": "^2.34.0",