@ray-js/api 0.7.9-beta-1 → 0.7.13
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/package.json +5 -6
- package/lib/utils.wechat.d.ts +0 -9
- package/lib/utils.wechat.js +0 -37
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.13",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -26,13 +26,12 @@
|
|
26
26
|
"build:kit:api": "node scripts/api-creator.mjs"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@ray-js/framework": "^0.7.
|
29
|
+
"@ray-js/framework": "^0.7.13",
|
30
30
|
"@ray-js/panel-sdk": "^1.2.2",
|
31
|
-
"@ray-js/router": "^0.7.
|
32
|
-
"@tuya-wx/device-kit": "^0.0.1"
|
31
|
+
"@ray-js/router": "^0.7.13"
|
33
32
|
},
|
34
33
|
"devDependencies": {
|
35
|
-
"@ray-js/cli": "^0.7.
|
34
|
+
"@ray-js/cli": "^0.7.13",
|
36
35
|
"art-template": "^4.13.2",
|
37
36
|
"fs-extra": "^10.1.0",
|
38
37
|
"miniprogram-api-typings": "^3.4.3",
|
@@ -47,6 +46,6 @@
|
|
47
46
|
"email": "tuyafe@tuya.com"
|
48
47
|
}
|
49
48
|
],
|
50
|
-
"gitHead": "
|
49
|
+
"gitHead": "9a7d91dcc6beffeda2babc1565ac549a29434da5",
|
51
50
|
"repository": {}
|
52
51
|
}
|
package/lib/utils.wechat.d.ts
DELETED
package/lib/utils.wechat.js
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
import "core-js/modules/es.regexp.exec.js";
|
2
|
-
import "core-js/modules/es.regexp.test.js";
|
3
|
-
// @ts-ignore
|
4
|
-
import * as tyWx from '@tuya-wx/device-kit';
|
5
|
-
export function factory(name) {
|
6
|
-
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
7
|
-
|
8
|
-
if (/(set|get|remove|clear)+Storage(Sync)?$/.test(name)) {
|
9
|
-
return function (option) {
|
10
|
-
if (opts.deprecated) {
|
11
|
-
console.warn("\u8BE5\u65B9\u6CD5 ".concat(name, " \u5DF2\u5F03\u7528"));
|
12
|
-
} // eslint-disable-next-line prefer-rest-params
|
13
|
-
|
14
|
-
|
15
|
-
return wx[name].call(this, option.key, option.data);
|
16
|
-
};
|
17
|
-
}
|
18
|
-
|
19
|
-
return function () {
|
20
|
-
if (opts.deprecated) {
|
21
|
-
console.warn("\u8BE5\u65B9\u6CD5 ".concat(name, " \u5DF2\u5F03\u7528"));
|
22
|
-
}
|
23
|
-
|
24
|
-
if (!tyWx[name] && !wx[name]) {
|
25
|
-
console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u65B9\u6CD5 wx.".concat(name));
|
26
|
-
return;
|
27
|
-
} // 优先取得 TTT 能力的方法
|
28
|
-
|
29
|
-
|
30
|
-
if (tyWx[name]) {
|
31
|
-
return tyWx[name].apply(this, arguments);
|
32
|
-
} // eslint-disable-next-line prefer-rest-params
|
33
|
-
|
34
|
-
|
35
|
-
return wx[name].apply(this, arguments);
|
36
|
-
};
|
37
|
-
}
|