clickgo 3.11.29 → 3.11.30
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/README.md +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/lib/task.js +3 -0
- package/dist/lib/task.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
28
28
|
**index.html**
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.1/dist/loader.min.js?path=index&npm={'clickgo':'3.11.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.1/dist/loader.min.js?path=index&npm={'clickgo':'3.11.30'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
package/dist/clickgo.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0;
|
|
27
|
-
const version = '3.11.
|
|
27
|
+
const version = '3.11.30';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
package/dist/lib/task.js
CHANGED
|
@@ -1050,6 +1050,9 @@ function run(url_1) {
|
|
|
1050
1050
|
post: function (url, data, opt) {
|
|
1051
1051
|
return tool.post(url, data, opt);
|
|
1052
1052
|
},
|
|
1053
|
+
postResponseJson: function (url, data, opt) {
|
|
1054
|
+
return tool.postResponseJson(url, data, opt);
|
|
1055
|
+
},
|
|
1053
1056
|
parseUrl: function (url) {
|
|
1054
1057
|
return tool.parseUrl(url);
|
|
1055
1058
|
},
|
package/dist/lib/task.ts
CHANGED
|
@@ -1178,6 +1178,12 @@ export async function run(url: string | types.IApp, opt: types.ITaskRunOptions =
|
|
|
1178
1178
|
}): Promise<Response | null> {
|
|
1179
1179
|
return tool.post(url, data, opt);
|
|
1180
1180
|
},
|
|
1181
|
+
postResponseJson: function(url: string, data: Record<string, any> | FormData, opt?: {
|
|
1182
|
+
'credentials'?: 'include' | 'same-origin' | 'omit';
|
|
1183
|
+
'headers'?: HeadersInit;
|
|
1184
|
+
}): Promise<any | null> {
|
|
1185
|
+
return tool.postResponseJson(url, data, opt);
|
|
1186
|
+
},
|
|
1181
1187
|
parseUrl: function(url: string): ILoaderUrl {
|
|
1182
1188
|
return tool.parseUrl(url);
|
|
1183
1189
|
},
|