mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
Upgrade SQLite to 1.1.5 and tar to 7.5.23 without a tar override. Update Umi, React Router, uuid, lint-staged and compatible transitive security fixes while retaining the existing ProLayout version. Constrain script file operations to checked paths, serialize Python environment values safely, and keep resource-intensive API limits with room for normal bulk use. Avoid dynamic child-process code in upgrade tests and load offline installer scripts from a fixed working directory. Cover dependency compatibility, rate limits, offline recovery and npm packaging, including the decoder patch required by existing Umi consumers.
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"
|