mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-22 22:06:42 +00:00
Delete xml2js
Use require rather than import Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
2ec09074b7
commit
e729eba309
2
index.js
2
index.js
@ -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
23
package-lock.json
generated
@ -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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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"
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user