@ray-js/api 0.6.6 → 0.6.7

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
@@ -4,7 +4,6 @@ export { default as getApp } from './getApp';
4
4
  export { default as getBoundingClientRect } from './getBoundingClientRect';
5
5
  export { default as getCurrentPages } from './getCurrentPages';
6
6
  export { default as getElementById } from './getElementById';
7
- export { default as getI18nInfo } from './getI18nInfo';
8
7
  export { default as hideNotification } from './hideNotification';
9
8
  export { default as hideTabBar } from './hideTabBar';
10
9
  export { default as navigateBack } from './navigateBack';
package/lib/index.js CHANGED
@@ -4,7 +4,6 @@ export { default as getApp } from './getApp';
4
4
  export { default as getBoundingClientRect } from './getBoundingClientRect';
5
5
  export { default as getCurrentPages } from './getCurrentPages';
6
6
  export { default as getElementById } from './getElementById';
7
- export { default as getI18nInfo } from './getI18nInfo';
8
7
  export { default as hideNotification } from './hideNotification';
9
8
  export { default as hideTabBar } from './hideTabBar';
10
9
  export { default as navigateBack } from './navigateBack';
@@ -1,6 +1,6 @@
1
1
  export default function () {
2
2
  if (!ty.readFileSync) {
3
- console.warn('// TODO 暂未实现方法 ty.readFileSync');
3
+ console.warn('// TODO 暂未实现方法 readFileSync');
4
4
  return;
5
5
  }
6
6
 
@@ -1,6 +1,6 @@
1
1
  export default function () {
2
2
  if (!ty.requestCloud) {
3
- console.warn('// TODO 暂未实现方法 ty.requestCloud');
3
+ console.warn('// TODO 暂未实现方法 requestCloud');
4
4
  return;
5
5
  }
6
6
 
@@ -1,6 +1,6 @@
1
1
  export default function () {
2
2
  if (!ty.setNavigationBarColor) {
3
- console.warn('// TODO 暂未实现方法 ty.setNavigationBarColor');
3
+ console.warn('// TODO 暂未实现方法 setNavigationBarColor');
4
4
  return;
5
5
  }
6
6
 
@@ -1,6 +1,6 @@
1
1
  export default function () {
2
2
  if (!ty.setNavigationBarTitle) {
3
- console.warn('// TODO 暂未实现方法 ty.setNavigationBarTitle');
3
+ console.warn('// TODO 暂未实现方法 setNavigationBarTitle');
4
4
  return;
5
5
  }
6
6
 
package/lib/utils.js CHANGED
@@ -21,7 +21,7 @@ export function factory(name) {
21
21
  var method = opts.namespace ? ((_ty$opts$namespace = ty[opts.namespace]) !== null && _ty$opts$namespace !== void 0 ? _ty$opts$namespace : {})[name] : ty[name];
22
22
 
23
23
  if (!method) {
24
- console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u65B9\u6CD5 ty.".concat(opts.namespace ? opts.namespace + '.' : '').concat(name));
24
+ console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u65B9\u6CD5 ".concat(opts.namespace ? opts.namespace + '.' : '').concat(name));
25
25
  return;
26
26
  }
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -26,11 +26,11 @@
26
26
  "build:kit:api": "node scripts/api-creator.mjs"
27
27
  },
28
28
  "dependencies": {
29
- "@ray-js/framework": "^0.6.6",
30
- "@ray-js/router": "^0.6.6"
29
+ "@ray-js/framework": "^0.6.7",
30
+ "@ray-js/router": "^0.6.7"
31
31
  },
32
32
  "devDependencies": {
33
- "@ray-js/cli": "^0.6.6",
33
+ "@ray-js/cli": "^0.6.7",
34
34
  "art-template": "^4.13.2",
35
35
  "fs-extra": "^10.1.0",
36
36
  "miniprogram-api-typings": "^3.4.3",
@@ -42,6 +42,6 @@
42
42
  "email": "tuyafe@tuya.com"
43
43
  }
44
44
  ],
45
- "gitHead": "b90d4bada69566bd6b085ebf0a7dcaeb40edc443",
45
+ "gitHead": "fcffadf9378cb4a19a3ef277757983b072d8810c",
46
46
  "repository": {}
47
47
  }
@@ -1,4 +0,0 @@
1
- export default function () {
2
- console.log('暂不支持');
3
- return null;
4
- }
@@ -1,4 +0,0 @@
1
- export default function (): {
2
- langKey: any;
3
- langContent: any;
4
- };
@@ -1,10 +0,0 @@
1
- export default function () {
2
- var _window, _window$gzlConstant, _window$gzlConstant$i, _window$gzlConstant$i2, _window2, _window2$gzlConstant, _window2$gzlConstant$, _window2$gzlConstant$2;
3
-
4
- var langKey = (_window = window) === null || _window === void 0 ? void 0 : (_window$gzlConstant = _window.gzlConstant) === null || _window$gzlConstant === void 0 ? void 0 : (_window$gzlConstant$i = _window$gzlConstant.initialProperties) === null || _window$gzlConstant$i === void 0 ? void 0 : (_window$gzlConstant$i2 = _window$gzlConstant$i.TYUniLocalizationManager) === null || _window$gzlConstant$i2 === void 0 ? void 0 : _window$gzlConstant$i2.langKey;
5
- var langContent = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$gzlConstant = _window2.gzlConstant) === null || _window2$gzlConstant === void 0 ? void 0 : (_window2$gzlConstant$ = _window2$gzlConstant.initialProperties) === null || _window2$gzlConstant$ === void 0 ? void 0 : (_window2$gzlConstant$2 = _window2$gzlConstant$.TYUniLocalizationManager) === null || _window2$gzlConstant$2 === void 0 ? void 0 : _window2$gzlConstant$2.langContent[langKey];
6
- return {
7
- langKey: langKey,
8
- langContent: langContent
9
- };
10
- }
@@ -1 +0,0 @@
1
- export default function (): void;
@@ -1,3 +0,0 @@
1
- export default function () {
2
- console.log('该功能不支持微信小程序');
3
- }