swpp-backends 2.3.9 → 2.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DomBuilder.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/types/Utils.d.ts +2 -2
- package/types/index.d.ts +1 -1
package/dist/DomBuilder.js
CHANGED
|
@@ -25,7 +25,7 @@ function buildDomJs() {
|
|
|
25
25
|
template = template.replaceAll(key, `const onSuccess = ${config.onsuccess.toString()};`);
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
28
|
-
template = template.replaceAll(key, '');
|
|
28
|
+
template = template.replaceAll(key, 'const onSuccess = () => {}');
|
|
29
29
|
}
|
|
30
30
|
return template;
|
|
31
31
|
}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const VersionAnalyzer_1 = require("./VersionAnalyzer");
|
|
|
10
10
|
const DomBuilder_1 = require("./DomBuilder");
|
|
11
11
|
// noinspection JSUnusedGlobalSymbols
|
|
12
12
|
exports.default = {
|
|
13
|
-
version: '
|
|
13
|
+
version: require('../package.json').version,
|
|
14
14
|
cache: {
|
|
15
15
|
readEjectData: Utils_1.readEjectData, readUpdateJson: Variant_1.readUpdateJson,
|
|
16
16
|
readRules: Variant_1.readRules, readMergeVersionMap: Variant_1.readMergeVersionMap,
|
package/package.json
CHANGED
package/types/Utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import nodeFetch from 'node-fetch';
|
|
2
2
|
export declare function error(type: string, message: string): void;
|
|
3
3
|
export declare function warn(type: string, message: string): void;
|
|
4
4
|
export interface EjectCache {
|
|
@@ -33,7 +33,7 @@ export declare function getSource(obj: any, typeChecker?: ((name: string) => boo
|
|
|
33
33
|
*
|
|
34
34
|
* **调用该函数前必须调用过 [loadRules]**
|
|
35
35
|
*/
|
|
36
|
-
export declare function fetchFile(link: string): Promise<Response>;
|
|
36
|
+
export declare function fetchFile(link: string): Promise<nodeFetch.Response>;
|
|
37
37
|
/**
|
|
38
38
|
* 替换编译期的 URL(CDN 竞速)
|
|
39
39
|
*
|
package/types/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { readMergeVersionMap, readNewVersionJson, readOldVersionJson, readRules,
|
|
|
7
7
|
import { refreshUrl, analyzeVersion } from './VersionAnalyzer';
|
|
8
8
|
import { buildDomJs } from './DomBuilder';
|
|
9
9
|
declare const _default: {
|
|
10
|
-
version:
|
|
10
|
+
version: any;
|
|
11
11
|
cache: {
|
|
12
12
|
readEjectData: typeof readEjectData;
|
|
13
13
|
readUpdateJson: typeof readUpdateJson;
|