Delete xml2js

Use require rather than import

Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar Bakr 2023-10-04 11:41:22 +03:00
parent 2ec09074b7
commit e729eba309
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28
3 changed files with 4 additions and 27 deletions

View File

@ -3,7 +3,7 @@ const github = require('@actions/github')
const glob = require('@actions/glob') const glob = require('@actions/glob')
const fs = require('fs') const fs = require('fs')
const axios = require('axios'); const axios = require('axios');
import convert from 'xml-js'; const convert = require('xml-js');
run(); run();
async function run() { async function run() {

23
package-lock.json generated
View File

@ -14,8 +14,7 @@
"@actions/glob": "^0.4.0", "@actions/glob": "^0.4.0",
"@actions/io": "^1.1.3", "@actions/io": "^1.1.3",
"axios": "^1.5.0", "axios": "^1.5.0",
"xml-js": "^1.6.11", "xml-js": "^1.6.11"
"xml2js": "^0.6.2"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.6.2" "@types/node": "^20.6.2"
@ -395,26 +394,6 @@
"bin": { "bin": {
"xml-js": "bin/cli.js" "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"
}
} }
} }
} }

View File

@ -16,11 +16,9 @@
"@actions/glob": "^0.4.0", "@actions/glob": "^0.4.0",
"@actions/io": "^1.1.3", "@actions/io": "^1.1.3",
"axios": "^1.5.0", "axios": "^1.5.0",
"xml-js": "^1.6.11", "xml-js": "^1.6.11"
"xml2js": "^0.6.2"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.6.2" "@types/node": "^20.6.2"
}, }
"type": "module"
} }