@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "0.7.9-beta-1",
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.9-beta-1",
29
+ "@ray-js/framework": "^0.7.13",
30
30
  "@ray-js/panel-sdk": "^1.2.2",
31
- "@ray-js/router": "^0.7.9-beta-1",
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.9-beta-1",
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": "2601f82682526ffbd3f97ce4d1e3a3390f693064",
49
+ "gitHead": "9a7d91dcc6beffeda2babc1565ac549a29434da5",
51
50
  "repository": {}
52
51
  }
@@ -1,9 +0,0 @@
1
- declare type Opts = {
2
- deprecated?: boolean;
3
- namespace?: string;
4
- };
5
- export declare function factory(name: string, opts?: Opts): (option: {
6
- key: string;
7
- data?: any;
8
- }) => any;
9
- export {};
@@ -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
- }