@cloudbase/wx-cloud-client-sdk 1.3.1 → 1.4.0
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/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { CloudBaseInstance, ExtendedCloudBaseInstance } from './types';
|
|
2
|
+
import { generateHTTPClient } from './orm/http-orm-client';
|
|
2
3
|
export declare function init(cloud: CloudBaseInstance): ExtendedCloudBaseInstance;
|
|
3
4
|
export * from './types';
|
|
4
|
-
export { generateHTTPClient }
|
|
5
|
+
export { generateHTTPClient };
|
|
6
|
+
declare const _default: {
|
|
7
|
+
init: typeof init;
|
|
8
|
+
generateHTTPClient: (callFunction: import("./types").CallFunction, fetch: (options: import("@cloudbase/adapter-interface").IFetchOptions) => any, baseUrl: string) => import("./types").OrmClient;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
/******************************************************************************
|
|
4
6
|
Copyright (c) Microsoft Corporation.
|
|
5
7
|
|
|
@@ -143,7 +145,7 @@ function getUserAgent() {
|
|
|
143
145
|
return ua_1;
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
|
-
var VERSION = "1.
|
|
148
|
+
var VERSION = "1.4.0";
|
|
147
149
|
|
|
148
150
|
var callDataSource = function (_a) {
|
|
149
151
|
var dataSourceName = _a.dataSourceName, methodName = _a.methodName, params = _a.params, realMethodName = _a.realMethodName, callFunction = _a.callFunction, _b = _a.envType, envType = _b === void 0 ? 'prod' : _b, mode = _a.mode;
|
|
@@ -520,6 +522,11 @@ function init(cloud) {
|
|
|
520
522
|
cloud.models = ormClientImpl;
|
|
521
523
|
return cloud;
|
|
522
524
|
}
|
|
525
|
+
var index = {
|
|
526
|
+
init: init,
|
|
527
|
+
generateHTTPClient: generateHTTPClient
|
|
528
|
+
};
|
|
523
529
|
|
|
530
|
+
exports.default = index;
|
|
524
531
|
exports.generateHTTPClient = generateHTTPClient;
|
|
525
532
|
exports.init = init;
|
|
@@ -141,7 +141,7 @@ function getUserAgent() {
|
|
|
141
141
|
return ua_1;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
var VERSION = "1.
|
|
144
|
+
var VERSION = "1.4.0";
|
|
145
145
|
|
|
146
146
|
var callDataSource = function (_a) {
|
|
147
147
|
var dataSourceName = _a.dataSourceName, methodName = _a.methodName, params = _a.params, realMethodName = _a.realMethodName, callFunction = _a.callFunction, _b = _a.envType, envType = _b === void 0 ? 'prod' : _b, mode = _a.mode;
|
|
@@ -518,5 +518,9 @@ function init(cloud) {
|
|
|
518
518
|
cloud.models = ormClientImpl;
|
|
519
519
|
return cloud;
|
|
520
520
|
}
|
|
521
|
+
var index = {
|
|
522
|
+
init: init,
|
|
523
|
+
generateHTTPClient: generateHTTPClient
|
|
524
|
+
};
|
|
521
525
|
|
|
522
|
-
export { generateHTTPClient, init };
|
|
526
|
+
export { index as default, generateHTTPClient, init };
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
return ua_1;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
var VERSION = "1.
|
|
150
|
+
var VERSION = "1.4.0";
|
|
151
151
|
|
|
152
152
|
var callDataSource = function (_a) {
|
|
153
153
|
var dataSourceName = _a.dataSourceName, methodName = _a.methodName, params = _a.params, realMethodName = _a.realMethodName, callFunction = _a.callFunction, _b = _a.envType, envType = _b === void 0 ? 'prod' : _b, mode = _a.mode;
|
|
@@ -524,8 +524,15 @@
|
|
|
524
524
|
cloud.models = ormClientImpl;
|
|
525
525
|
return cloud;
|
|
526
526
|
}
|
|
527
|
+
var index = {
|
|
528
|
+
init: init,
|
|
529
|
+
generateHTTPClient: generateHTTPClient
|
|
530
|
+
};
|
|
527
531
|
|
|
532
|
+
exports.default = index;
|
|
528
533
|
exports.generateHTTPClient = generateHTTPClient;
|
|
529
534
|
exports.init = init;
|
|
530
535
|
|
|
536
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
537
|
+
|
|
531
538
|
}));
|