@ray-js/api 1.5.47 → 1.5.48-alpha.1
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/cloud/alarm.js +2 -2
- package/lib/cloud/core.js +1 -1
- package/lib/cloud/device.js +7 -7
- package/lib/cloud/doorlock/auth.js +8 -8
- package/lib/cloud/doorlock/device.js +7 -7
- package/lib/cloud/doorlock/log.js +4 -4
- package/lib/cloud/doorlock/member-opmode.js +7 -7
- package/lib/cloud/doorlock/member.js +7 -7
- package/lib/cloud/doorlock/offline-pwd.js +4 -4
- package/lib/cloud/doorlock/old.js +6 -6
- package/lib/cloud/doorlock/temp-pwd.js +8 -8
- package/lib/cloud/doorlock/unlock-method.js +3 -3
- package/lib/cloud/doorlock/unlock.js +5 -5
- package/lib/cloud/linkage.js +17 -17
- package/lib/cloud/outdoor.js +1 -1
- package/lib/cloud/recipe/basket.js +11 -10
- package/lib/cloud/recipe/category-list.js +2 -2
- package/lib/cloud/recipe/custom.js +5 -4
- package/lib/cloud/recipe/menu.js +4 -3
- package/lib/cloud/recipe/query.js +4 -3
- package/lib/cloud/recipe/record.js +3 -3
- package/lib/cloud/recipe/score.js +4 -3
- package/lib/cloud/recipe/star.js +6 -5
- package/lib/cloud/remoteGroup.js +2 -2
- package/lib/cloud/statistic.js +9 -9
- package/lib/cloud/timer.js +14 -14
- package/lib/getBoundingClientRect/index.thing.js +1 -0
- package/lib/getBoundingClientRect/index.wechat.js +1 -0
- package/lib/getElementById/index.thing.js +1 -1
- package/lib/getElementById/index.wechat.js +1 -1
- package/lib/panel/i18n/index.js +16 -12
- package/lib/panel/i18n/index.wechat.js +16 -12
- package/lib/panel/publishDps.js +1 -1
- package/lib/redirectTo/index.js +2 -0
- package/lib/utils.js +9 -9
- package/lib/utils.wechat.js +6 -5
- package/package.json +5 -5
package/lib/cloud/timer.js
CHANGED
@@ -15,7 +15,7 @@ import { THING } from '../constants';
|
|
15
15
|
*/
|
16
16
|
const addSingleTimer = params => {
|
17
17
|
return requestCloud({
|
18
|
-
api:
|
18
|
+
api: "".concat(THING, ".m.clock.dps.add"),
|
19
19
|
version: '1.0',
|
20
20
|
data: _objectSpread({}, params)
|
21
21
|
});
|
@@ -29,7 +29,7 @@ const addSingleTimer = params => {
|
|
29
29
|
*/
|
30
30
|
const queryTimerTasks = params => {
|
31
31
|
return requestCloud({
|
32
|
-
api:
|
32
|
+
api: "".concat(THING, ".m.clock.dps.list"),
|
33
33
|
version: '1.0',
|
34
34
|
data: _objectSpread({}, params)
|
35
35
|
});
|
@@ -48,7 +48,7 @@ const queryTimerTasks = params => {
|
|
48
48
|
*/
|
49
49
|
const modifySingleTimer = params => {
|
50
50
|
return requestCloud({
|
51
|
-
api:
|
51
|
+
api: "".concat(THING, ".m.clock.dps.update"),
|
52
52
|
version: '1.0',
|
53
53
|
data: _objectSpread({}, params)
|
54
54
|
});
|
@@ -67,7 +67,7 @@ const modifySingleTimer = params => {
|
|
67
67
|
*/
|
68
68
|
const addGroupTimer = params => {
|
69
69
|
return requestCloud({
|
70
|
-
api:
|
70
|
+
api: "".concat(THING, ".m.clock.dps.group.add"),
|
71
71
|
version: '1.0',
|
72
72
|
data: _objectSpread({}, params)
|
73
73
|
});
|
@@ -81,7 +81,7 @@ const addGroupTimer = params => {
|
|
81
81
|
*/
|
82
82
|
const queryGroupTimerTasks = params => {
|
83
83
|
return requestCloud({
|
84
|
-
api:
|
84
|
+
api: "".concat(THING, ".m.clock.dps.group.list"),
|
85
85
|
version: '1.0',
|
86
86
|
data: _objectSpread({}, params)
|
87
87
|
});
|
@@ -99,7 +99,7 @@ const queryGroupTimerTasks = params => {
|
|
99
99
|
*/
|
100
100
|
const modifyGroupTimer = params => {
|
101
101
|
return requestCloud({
|
102
|
-
api:
|
102
|
+
api: "".concat(THING, ".m.clock.dps.group.update"),
|
103
103
|
version: '1.0',
|
104
104
|
data: _objectSpread({}, params)
|
105
105
|
});
|
@@ -114,7 +114,7 @@ const modifyGroupTimer = params => {
|
|
114
114
|
*/
|
115
115
|
const modDeleteTaskByIds = params => {
|
116
116
|
return requestCloud({
|
117
|
-
api:
|
117
|
+
api: "".concat(THING, ".m.clock.batch.status.update"),
|
118
118
|
version: '1.0',
|
119
119
|
data: _objectSpread({}, params)
|
120
120
|
});
|
@@ -129,7 +129,7 @@ const modDeleteTaskByIds = params => {
|
|
129
129
|
*/
|
130
130
|
const modDeleteTaskByCategory = params => {
|
131
131
|
return requestCloud({
|
132
|
-
api:
|
132
|
+
api: "".concat(THING, ".m.clock.category.status.update"),
|
133
133
|
version: '1.0',
|
134
134
|
data: _objectSpread({}, params)
|
135
135
|
});
|
@@ -170,7 +170,7 @@ const getDpsLastTimer = params => {
|
|
170
170
|
*/
|
171
171
|
const getLastTimerPeriod = params => {
|
172
172
|
return requestCloud({
|
173
|
-
api:
|
173
|
+
api: "".concat(THING, ".m.timer.nearest.get"),
|
174
174
|
version: '1.0',
|
175
175
|
data: _objectSpread({}, params)
|
176
176
|
});
|
@@ -181,7 +181,7 @@ const getLastTimerPeriod = params => {
|
|
181
181
|
*/
|
182
182
|
const getAstronomicalList = params => {
|
183
183
|
return requestCloud({
|
184
|
-
api:
|
184
|
+
api: "".concat(THING, ".m.timer.astronomical.list"),
|
185
185
|
version: '1.0',
|
186
186
|
data: _objectSpread({}, params)
|
187
187
|
});
|
@@ -203,7 +203,7 @@ const getAstronomicalList = params => {
|
|
203
203
|
*/
|
204
204
|
const addAstronomical = params => {
|
205
205
|
return requestCloud({
|
206
|
-
api:
|
206
|
+
api: "".concat(THING, ".m.timer.astronomical.add"),
|
207
207
|
version: '1.0',
|
208
208
|
data: _objectSpread({}, params)
|
209
209
|
});
|
@@ -225,7 +225,7 @@ const addAstronomical = params => {
|
|
225
225
|
*/
|
226
226
|
const updateAstronomical = params => {
|
227
227
|
return requestCloud({
|
228
|
-
api:
|
228
|
+
api: "".concat(THING, ".m.timer.astronomical.update"),
|
229
229
|
version: '1.0',
|
230
230
|
data: _objectSpread({}, params)
|
231
231
|
});
|
@@ -238,7 +238,7 @@ const updateAstronomical = params => {
|
|
238
238
|
*/
|
239
239
|
const updateAstronomicalStatus = params => {
|
240
240
|
return requestCloud({
|
241
|
-
api:
|
241
|
+
api: "".concat(THING, ".m.timer.astronomical.status.update"),
|
242
242
|
version: '1.0',
|
243
243
|
data: _objectSpread({}, params)
|
244
244
|
});
|
@@ -250,7 +250,7 @@ const updateAstronomicalStatus = params => {
|
|
250
250
|
*/
|
251
251
|
const removeAstronomical = params => {
|
252
252
|
return requestCloud({
|
253
|
-
api:
|
253
|
+
api: "".concat(THING, ".m.timer.astronomical.remove"),
|
254
254
|
version: '1.0',
|
255
255
|
data: _objectSpread({}, params)
|
256
256
|
});
|
package/lib/panel/i18n/index.js
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
import "core-js/modules/es.regexp.constructor.js";
|
2
|
+
import "core-js/modules/es.regexp.dot-all.js";
|
3
|
+
import "core-js/modules/es.regexp.exec.js";
|
4
|
+
import "core-js/modules/es.string.replace.js";
|
1
5
|
import "core-js/modules/esnext.iterator.map.js";
|
2
6
|
import { requestCloud, getSystemInfoSync, THING } from '../..';
|
3
7
|
import { getBitValue } from '../utils';
|
@@ -26,7 +30,7 @@ export default class I18N {
|
|
26
30
|
}
|
27
31
|
forceUpdateNetworkLang(productId) {
|
28
32
|
requestCloud({
|
29
|
-
api:
|
33
|
+
api: "".concat(THING, ".m.i18n.get"),
|
30
34
|
version: '1.0',
|
31
35
|
data: {
|
32
36
|
productId,
|
@@ -117,14 +121,14 @@ export default class I18N {
|
|
117
121
|
formatString(str) {
|
118
122
|
let res = str;
|
119
123
|
for (let i = 0; i < (arguments.length <= 1 ? 0 : arguments.length - 1); i++) {
|
120
|
-
res = this._replaceAll(
|
124
|
+
res = this._replaceAll("{".concat(i, "}"), i + 1 < 1 || arguments.length <= i + 1 ? undefined : arguments[i + 1], res);
|
121
125
|
}
|
122
126
|
return res;
|
123
127
|
}
|
124
128
|
formatValue(key) {
|
125
129
|
let res = this.getLang(key);
|
126
130
|
for (let i = 0; i < (arguments.length <= 1 ? 0 : arguments.length - 1); i++) {
|
127
|
-
res = this._replaceAll(
|
131
|
+
res = this._replaceAll("{".concat(i, "}"), i + 1 < 1 || arguments.length <= i + 1 ? undefined : arguments[i + 1], res);
|
128
132
|
}
|
129
133
|
return res;
|
130
134
|
}
|
@@ -137,17 +141,17 @@ export default class I18N {
|
|
137
141
|
getDpLang(code, value) {
|
138
142
|
let key;
|
139
143
|
if (typeof value === 'undefined') {
|
140
|
-
key =
|
144
|
+
key = "dp_".concat(code).toLowerCase();
|
141
145
|
} else if (typeof value === 'boolean') {
|
142
146
|
const valStr = value ? 'on' : 'off';
|
143
|
-
key =
|
147
|
+
key = "dp_".concat(code, "_").concat(valStr).toLowerCase();
|
144
148
|
} else {
|
145
|
-
key =
|
149
|
+
key = "dp_".concat(code, "_").concat(value).toLowerCase();
|
146
150
|
}
|
147
151
|
return hasKey(key) ? I18n.t(key) : typeof this[key] !== 'undefined' ? this[key] : I18n.t(key);
|
148
152
|
}
|
149
153
|
getDpName(code, defaultName) {
|
150
|
-
const key =
|
154
|
+
const key = "dp_".concat(code).toLowerCase();
|
151
155
|
return hasKey(key) ? I18n.t(key) : typeof this[key] !== 'undefined' ? this[key] : defaultName;
|
152
156
|
}
|
153
157
|
getDpsLang(key) {
|
@@ -179,7 +183,7 @@ export default class I18N {
|
|
179
183
|
if (typeof schema === 'undefined') return result;
|
180
184
|
const lists = schema.range;
|
181
185
|
lists.map(v => {
|
182
|
-
const key =
|
186
|
+
const key = "dp_".concat(dpCode, "_").concat(v).toLowerCase();
|
183
187
|
result[v] = hasKey(key) ? I18n.t(key) : typeof this[key] !== 'undefined' ? this[key] : I18n.t(key);
|
184
188
|
return null;
|
185
189
|
});
|
@@ -193,12 +197,12 @@ export default class I18N {
|
|
193
197
|
* @param {*} power 设备当前的开关状态 (如果当前设备为开启状态, 则倒计时显示为关闭)
|
194
198
|
*/
|
195
199
|
parseCountdown(t, power) {
|
196
|
-
const h = parseFloat(
|
197
|
-
const m = parseFloat(
|
200
|
+
const h = parseFloat("".concat(t / 3600));
|
201
|
+
const m = parseFloat("".concat(t / 60 - h * 60));
|
198
202
|
const tHour = hasKey('t_hour') ? I18n.t('t_hour') : typeof this.t_hour !== 'undefined' ? this.t_hour : I18n.t('t_hour');
|
199
203
|
const tMinute = hasKey('t_minute') ? I18n.t('t_minute') : typeof this.t_minute !== 'undefined' ? this.t_minute : I18n.t('t_minute');
|
200
|
-
const time = h >= 1.0 ?
|
201
|
-
const key =
|
204
|
+
const time = h >= 1.0 ? "".concat(Math.round(h)).concat(tHour) : "".concat(Math.round(m)).concat(tMinute);
|
205
|
+
const key = "countdown_".concat(power ? 'on' : 'off');
|
202
206
|
const str = hasKey(key) ? I18n.t(key) : typeof this[key] !== 'undefined' ? this[key] : I18n.t(key);
|
203
207
|
return this.formatString(str, time);
|
204
208
|
}
|
@@ -1,3 +1,7 @@
|
|
1
|
+
import "core-js/modules/es.regexp.constructor.js";
|
2
|
+
import "core-js/modules/es.regexp.dot-all.js";
|
3
|
+
import "core-js/modules/es.regexp.exec.js";
|
4
|
+
import "core-js/modules/es.string.replace.js";
|
1
5
|
import "core-js/modules/esnext.iterator.map.js";
|
2
6
|
import { requestCloud, getSystemInfoSync, THING } from '../..';
|
3
7
|
import { getBitValue } from '../utils';
|
@@ -16,7 +20,7 @@ export default class I18N {
|
|
16
20
|
}
|
17
21
|
forceUpdateNetworkLang(productId) {
|
18
22
|
requestCloud({
|
19
|
-
api:
|
23
|
+
api: "".concat(THING, ".m.i18n.get"),
|
20
24
|
version: '1.0',
|
21
25
|
data: {
|
22
26
|
productId,
|
@@ -107,14 +111,14 @@ export default class I18N {
|
|
107
111
|
formatString(str) {
|
108
112
|
let res = str;
|
109
113
|
for (let i = 0; i < (arguments.length <= 1 ? 0 : arguments.length - 1); i++) {
|
110
|
-
res = this._replaceAll(
|
114
|
+
res = this._replaceAll("{".concat(i, "}"), i + 1 < 1 || arguments.length <= i + 1 ? undefined : arguments[i + 1], res);
|
111
115
|
}
|
112
116
|
return res;
|
113
117
|
}
|
114
118
|
formatValue(key) {
|
115
119
|
let res = typeof this[key] !== 'undefined' ? this[key] : I18n.t(key);
|
116
120
|
for (let i = 0; i < (arguments.length <= 1 ? 0 : arguments.length - 1); i++) {
|
117
|
-
res = this._replaceAll(
|
121
|
+
res = this._replaceAll("{".concat(i, "}"), i + 1 < 1 || arguments.length <= i + 1 ? undefined : arguments[i + 1], res);
|
118
122
|
}
|
119
123
|
return res;
|
120
124
|
}
|
@@ -127,17 +131,17 @@ export default class I18N {
|
|
127
131
|
getDpLang(code, value) {
|
128
132
|
let key;
|
129
133
|
if (typeof value === 'undefined') {
|
130
|
-
key =
|
134
|
+
key = "dp_".concat(code).toLowerCase();
|
131
135
|
} else if (typeof value === 'boolean') {
|
132
136
|
const valStr = value ? 'on' : 'off';
|
133
|
-
key =
|
137
|
+
key = "dp_".concat(code, "_").concat(valStr).toLowerCase();
|
134
138
|
} else {
|
135
|
-
key =
|
139
|
+
key = "dp_".concat(code, "_").concat(value).toLowerCase();
|
136
140
|
}
|
137
141
|
return I18n.t(key) !== key ? I18n.t(key) : typeof this[key] !== 'undefined' ? this[key] : I18n.t(key);
|
138
142
|
}
|
139
143
|
getDpName(code, defaultName) {
|
140
|
-
const key =
|
144
|
+
const key = "dp_".concat(code).toLowerCase();
|
141
145
|
return I18n.t(key) !== key ? I18n.t(key) : typeof this[key] !== 'undefined' ? this[key] : defaultName;
|
142
146
|
}
|
143
147
|
getDpsLang(key) {
|
@@ -169,7 +173,7 @@ export default class I18N {
|
|
169
173
|
if (typeof schema === 'undefined') return result;
|
170
174
|
const lists = schema.range;
|
171
175
|
lists.map(v => {
|
172
|
-
const key =
|
176
|
+
const key = "dp_".concat(dpCode, "_").concat(v).toLowerCase();
|
173
177
|
result[v] = I18n.t(key) !== key ? I18n.t(key) : typeof this[key] !== 'undefined' ? this[key] : I18n.t(key);
|
174
178
|
return null;
|
175
179
|
});
|
@@ -183,12 +187,12 @@ export default class I18N {
|
|
183
187
|
* @param {*} power 设备当前的开关状态 (如果当前设备为开启状态, 则倒计时显示为关闭)
|
184
188
|
*/
|
185
189
|
parseCountdown(t, power) {
|
186
|
-
const h = parseFloat(
|
187
|
-
const m = parseFloat(
|
190
|
+
const h = parseFloat("".concat(t / 3600));
|
191
|
+
const m = parseFloat("".concat(t / 60 - h * 60));
|
188
192
|
const tHour = I18n.t('t_hour') !== 't_hour' ? I18n.t('t_hour') : typeof this.t_hour !== 'undefined' ? this.t_hour : I18n.t('t_hour');
|
189
193
|
const tMinute = I18n.t('t_minute') !== 't_minute' ? I18n.t('t_minute') : typeof this.t_minute !== 'undefined' ? this.t_minute : I18n.t('t_minute');
|
190
|
-
const time = h >= 1.0 ?
|
191
|
-
const key =
|
194
|
+
const time = h >= 1.0 ? "".concat(Math.round(h)).concat(tHour) : "".concat(Math.round(m)).concat(tMinute);
|
195
|
+
const key = "countdown_".concat(power ? 'on' : 'off');
|
192
196
|
const str = I18n.t(key) !== key ? I18n.t(key) : typeof this[key] !== 'undefined' ? this[key] : I18n.t(key);
|
193
197
|
return this.formatString(str, time);
|
194
198
|
}
|
package/lib/panel/publishDps.js
CHANGED
@@ -27,7 +27,7 @@ export function sendDps(data) {
|
|
27
27
|
const codeIds = (devInfo === null || devInfo === void 0 ? void 0 : devInfo.codeIds) || {};
|
28
28
|
Object.keys(data).forEach(code => {
|
29
29
|
if (codeIds[code] !== undefined) {
|
30
|
-
dps[
|
30
|
+
dps["".concat(codeIds[code])] = data[code];
|
31
31
|
} else {
|
32
32
|
dps[code] = data[code];
|
33
33
|
}
|
package/lib/redirectTo/index.js
CHANGED
package/lib/utils.js
CHANGED
@@ -4,15 +4,15 @@ export function createFactory(kitName) {
|
|
4
4
|
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
5
5
|
return function () {
|
6
6
|
var _inst$opts$namespace;
|
7
|
-
const methodName =
|
7
|
+
const methodName = "ty.".concat(opts.namespace ? opts.namespace + '.' : '').concat(name);
|
8
8
|
if (opts.deprecated) {
|
9
|
-
console.warn(
|
9
|
+
console.warn("\"".concat(methodName, "\" method has been deprecated."));
|
10
10
|
}
|
11
11
|
const inst = typeof ty === 'undefined' ? {} : ty;
|
12
12
|
const method = opts.namespace ? ((_inst$opts$namespace = inst[opts.namespace]) !== null && _inst$opts$namespace !== void 0 ? _inst$opts$namespace : {})[name] : inst[name];
|
13
13
|
if (!method) {
|
14
|
-
console.warn('tips:',
|
15
|
-
console.warn('tips:',
|
14
|
+
console.warn('tips:', "\"".concat(methodName, "\" method not exits."));
|
15
|
+
console.warn('tips:', "Please check kit \"".concat(kitName, "\" dependency is enabled."));
|
16
16
|
return;
|
17
17
|
}
|
18
18
|
// eslint-disable-next-line prefer-rest-params
|
@@ -24,14 +24,14 @@ export function factory(name) {
|
|
24
24
|
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
25
25
|
return function () {
|
26
26
|
var _inst$opts$namespace2;
|
27
|
-
const methodName =
|
27
|
+
const methodName = "ty.".concat(opts.namespace ? opts.namespace + '.' : '').concat(name);
|
28
28
|
if (opts.deprecated) {
|
29
|
-
console.warn(
|
29
|
+
console.warn("\"".concat(methodName, "\" method has been deprecated."));
|
30
30
|
}
|
31
31
|
const inst = typeof ty === 'undefined' ? {} : ty;
|
32
32
|
const method = opts.namespace ? ((_inst$opts$namespace2 = inst[opts.namespace]) !== null && _inst$opts$namespace2 !== void 0 ? _inst$opts$namespace2 : {})[name] : inst[name];
|
33
33
|
if (!method) {
|
34
|
-
console.warn('tips:',
|
34
|
+
console.warn('tips:', "\"".concat(methodName, "\" method not exits."));
|
35
35
|
return;
|
36
36
|
}
|
37
37
|
// eslint-disable-next-line prefer-rest-params
|
@@ -41,11 +41,11 @@ export function factory(name) {
|
|
41
41
|
export function factoryConstants(name) {
|
42
42
|
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
43
43
|
if (opts.deprecated) {
|
44
|
-
console.warn(
|
44
|
+
console.warn("\"ty.".concat(name, "\" constant has been deprecated."));
|
45
45
|
}
|
46
46
|
const inst = typeof ty === 'undefined' ? {} : ty;
|
47
47
|
if (!inst[name]) {
|
48
|
-
console.warn('tips',
|
48
|
+
console.warn('tips', "\"ty.".concat(name, "\" constant not exits."));
|
49
49
|
return;
|
50
50
|
}
|
51
51
|
return inst[name];
|
package/lib/utils.wechat.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import "core-js/modules/es.regexp.exec.js";
|
1
2
|
// @ts-ignore
|
2
3
|
import * as tyWx from '@ray-js/wechat';
|
3
4
|
import { stringifyUrl as _stringifyUrl, parseUrl as _parseUrl } from 'query-string';
|
@@ -13,7 +14,7 @@ export function factory(name) {
|
|
13
14
|
if (/(set|get|remove|clear)+Storage(Sync)?$/.test(name)) {
|
14
15
|
return function (option) {
|
15
16
|
if (opts.deprecated) {
|
16
|
-
console.warn(
|
17
|
+
console.warn("\u8BE5\u65B9\u6CD5 ".concat(name, " \u5DF2\u5F03\u7528"));
|
17
18
|
}
|
18
19
|
// eslint-disable-next-line prefer-rest-params
|
19
20
|
return wx[name].call(this, option.key, option.data);
|
@@ -21,10 +22,10 @@ export function factory(name) {
|
|
21
22
|
}
|
22
23
|
return function () {
|
23
24
|
if (opts.deprecated) {
|
24
|
-
console.warn(
|
25
|
+
console.warn("\u8BE5\u65B9\u6CD5 ".concat(name, " \u5DF2\u5F03\u7528"));
|
25
26
|
}
|
26
27
|
if (!tyWx[name] && !wx[name]) {
|
27
|
-
console.warn(
|
28
|
+
console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u65B9\u6CD5 wx.".concat(name));
|
28
29
|
return;
|
29
30
|
}
|
30
31
|
// 优先取得 TTT 能力的方法
|
@@ -38,11 +39,11 @@ export function factory(name) {
|
|
38
39
|
export function factoryConstants(name) {
|
39
40
|
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
40
41
|
if (opts.deprecated) {
|
41
|
-
console.warn(
|
42
|
+
console.warn("\u8BE5\u53D8\u91CF ".concat(name, " \u5DF2\u5F03\u7528"));
|
42
43
|
}
|
43
44
|
const inst = typeof wx === 'undefined' ? {} : wx;
|
44
45
|
if (!inst[name]) {
|
45
|
-
console.warn(
|
46
|
+
console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u53D8\u91CF ".concat(name));
|
46
47
|
return;
|
47
48
|
}
|
48
49
|
return inst[name];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.48-alpha.1",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"watch": "ray start --type=component"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@ray-js/framework": "1.5.
|
33
|
-
"@ray-js/router": "1.5.
|
32
|
+
"@ray-js/framework": "1.5.48-alpha.1",
|
33
|
+
"@ray-js/router": "1.5.48-alpha.1",
|
34
34
|
"@ray-js/wechat": "^0.2.19",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "1.5.
|
39
|
+
"@ray-js/cli": "1.5.48-alpha.1",
|
40
40
|
"art-template": "^4.13.2",
|
41
41
|
"fs-extra": "^10.1.0",
|
42
42
|
"miniprogram-api-typings": "^3.12.3",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.com"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "8bc0dd13715500b5cede71da90d31cbdbbee9452"
|
50
50
|
}
|