diff --git a/index.js b/index.js index be9e4ac..094d64e 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const github = require('@actions/github') const glob = require('@actions/glob') const fs = require('fs') const axios = require('axios'); -import convert from 'xml-js'; +const convert = require('xml-js'); run(); async function run() { diff --git a/package-lock.json b/package-lock.json index 0f8c665..22197ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,7 @@ "@actions/glob": "^0.4.0", "@actions/io": "^1.1.3", "axios": "^1.5.0", - "xml-js": "^1.6.11", - "xml2js": "^0.6.2" + "xml-js": "^1.6.11" }, "devDependencies": { "@types/node": "^20.6.2" @@ -395,26 +394,6 @@ "bin": { "xml-js": "bin/cli.js" } - }, - "node_modules/xml2js": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", - "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "engines": { - "node": ">=4.0" - } } } } diff --git a/package.json b/package.json index 7b4f4c2..352471d 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,9 @@ "@actions/glob": "^0.4.0", "@actions/io": "^1.1.3", "axios": "^1.5.0", - "xml-js": "^1.6.11", - "xml2js": "^0.6.2" + "xml-js": "^1.6.11" }, "devDependencies": { "@types/node": "^20.6.2" - }, - "type": "module" + } }