mirror of
https://github.com/whyour/qinglong.git
synced 2026-11-30 16:27:21 +08:00
Upgrade SQLite to 1.1.5 so tar resolves safely without an override. Update vulnerable dependencies while retaining scoped compatibility overrides and the CommonJS decoder patch required by Umi's query-string consumers. Limit sensitive endpoints, constrain script file operations to checked paths, and serialize Python environment values safely. Add compatibility regressions and include the decoder patch in Docker and npm installation inputs.
26 lines
941 B
Diff
26 lines
941 B
Diff
diff --git a/index.js b/index.js
|
|
index 4dfca40730089d0b7a8ad9818bc918240ca8cb89..454d50f086915fea0a38116c8719229d433910a9 100644
|
|
--- a/index.js
|
|
+++ b/index.js
|
|
@@ -136,7 +136,7 @@ function customDecodeURIComponent(input) {
|
|
return input.replace(multiMatcher, run => decode(run));
|
|
}
|
|
|
|
-export default function decodeUriComponent(encodedURI) {
|
|
+module.exports = function decodeUriComponent(encodedURI) {
|
|
if (typeof encodedURI !== 'string') {
|
|
throw new TypeError(`Expected \`encodedURI\` to be of type \`string\`, got \`${typeof encodedURI}\``);
|
|
}
|
|
diff --git a/package.json b/package.json
|
|
index 5991062db5af96559ed102a22431f2edf29595a0..c8f13808709e64abbb3e19009bca16d9e988be31 100644
|
|
--- a/package.json
|
|
+++ b/package.json
|
|
@@ -10,7 +10,7 @@
|
|
"email": "sam.verschueren@gmail.com",
|
|
"url": "github.com/SamVerschueren"
|
|
},
|
|
- "type": "module",
|
|
+ "type": "commonjs",
|
|
"exports": {
|
|
"types": "./index.d.ts",
|
|
"default": "./index.js"
|