diff --git a/__tests__/main.test.js b/__tests__/main.test.js index d7771b4..a810e32 100644 --- a/__tests__/main.test.js +++ b/__tests__/main.test.js @@ -5,7 +5,7 @@ import { jest } from '@jest/globals' import fs from 'node:fs' import path from 'node:path' import { fileURLToPath } from 'node:url' -import yaml from 'js-yaml' +import { load as loadYaml } from 'js-yaml' import * as core from '../__fixtures__/core.js' @@ -20,7 +20,7 @@ const actionYmlFile = path.join(dirname, '..', 'action.yml') describe('action', () => { const inputsDefaults = {} - const actionYml = yaml.load(fs.readFileSync(actionYmlFile)) + const actionYml = loadYaml(fs.readFileSync(actionYmlFile)) for (const [inputName, inputConfig] of Object.entries(actionYml.inputs)) { inputsDefaults[inputName] = inputConfig.default } diff --git a/package-lock.json b/package-lock.json index 35a5b4a..34dcf0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "eslint-plugin-jest": "^29.0.1", "eslint-plugin-prettier": "^5.5.4", "jest": "^30.1.3", - "js-yaml": "^4.1.0", + "js-yaml": "^5.3.0", "make-coverage-badge": "^1.2.0", "prettier": "^3.6.2", "rollup": "^4.62.5", @@ -1080,6 +1080,29 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz", + "integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/@eslint/js": { "version": "9.39.5", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.5.tgz", @@ -6550,9 +6573,9 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz", - "integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-5.3.0.tgz", + "integrity": "sha512-muutsYr+e2+d3rTgUGslq5rxbBlUy3cJ61IsHag2QNDQV+7zXWjkUpmALIajhrlLlrgRUiymj6U3zUr/TMK84Q==", "dev": true, "funding": [ { @@ -6569,7 +6592,7 @@ "argparse": "^2.0.1" }, "bin": { - "js-yaml": "bin/js-yaml.js" + "js-yaml": "bin/js-yaml.mjs" } }, "node_modules/jsesc": { diff --git a/package.json b/package.json index 3dc87c0..53df4ad 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "eslint-plugin-jest": "^29.0.1", "eslint-plugin-prettier": "^5.5.4", "jest": "^30.1.3", - "js-yaml": "^4.1.0", + "js-yaml": "^5.3.0", "make-coverage-badge": "^1.2.0", "prettier": "^3.6.2", "rollup": "^4.62.5",