@ray-js/api 0.8.1-beta-2 → 0.8.3

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.
@@ -79,7 +79,7 @@ declare namespace ty {
79
79
  export function onThemeChange(listener: OnThemeChangelisteners)
80
80
  export function offThemeChange(listener?: OffThemeChangelisteners)
81
81
  export function onPageNotFound(listeners: ({ url: string, query: CommonObject }) => void)
82
- export function onNavigationBarBack(callback: (res: any) => void)
82
+ export function onNavigationBarBack(callback: (res?: any) => void)
83
83
  export function setNavigationBarBack(param: setNavigationBarBackParam)
84
84
  }
85
85
 
package/lib/index.d.ts CHANGED
@@ -10,7 +10,6 @@ export { default as hideTabBar } from './hideTabBar';
10
10
  export { default as navigateBack } from './navigateBack';
11
11
  export { default as navigateTo } from './navigateTo';
12
12
  export { default as reLaunch } from './reLaunch';
13
- export { default as readFileSync } from './readFileSync';
14
13
  export { default as redirectTo } from './redirectTo';
15
14
  export { default as requestCloud } from './requestCloud';
16
15
  export { default as setNavigationBarColor } from './setNavigationBarColor';
package/lib/index.js CHANGED
@@ -10,7 +10,6 @@ export { default as hideTabBar } from './hideTabBar';
10
10
  export { default as navigateBack } from './navigateBack';
11
11
  export { default as navigateTo } from './navigateTo';
12
12
  export { default as reLaunch } from './reLaunch';
13
- export { default as readFileSync } from './readFileSync';
14
13
  export { default as redirectTo } from './redirectTo';
15
14
  export { default as requestCloud } from './requestCloud';
16
15
  export { default as setNavigationBarColor } from './setNavigationBarColor';
@@ -1 +1,2 @@
1
- export default function (): any;
1
+ declare const _default: typeof ty.onNavigationBarBack;
2
+ export default _default;
@@ -1,9 +1 @@
1
- export default function () {
2
- if (!ty.onNavigationBarBack) {
3
- console.warn('// TODO 暂未实现方法 onNavigationBarBack');
4
- return;
5
- } // eslint-disable-next-line prefer-rest-params
6
-
7
-
8
- return ty.onNavigationBarBack.apply(this, arguments);
9
- }
1
+ export default ty.onNavigationBarBack;
@@ -1 +1,2 @@
1
- export default function (): any;
1
+ declare const _default: typeof ty.requestCloud;
2
+ export default _default;
@@ -1,8 +1 @@
1
- export default function () {
2
- if (!ty.requestCloud) {
3
- console.warn('// TODO 暂未实现方法 requestCloud');
4
- return;
5
- }
6
-
7
- return ty.requestCloud.apply(this, arguments);
8
- }
1
+ export default ty.requestCloud;
@@ -1 +1,2 @@
1
- export default function (): any;
1
+ declare const _default: typeof ty.setNavigationBarBack;
2
+ export default _default;
@@ -1,9 +1 @@
1
- export default function () {
2
- if (!ty.setNavigationBarBack) {
3
- console.warn('// TODO 暂未实现方法 setNavigationBarBack');
4
- return;
5
- } // eslint-disable-next-line prefer-rest-params
6
-
7
-
8
- return ty.setNavigationBarBack.apply(this, arguments);
9
- }
1
+ export default ty.setNavigationBarBack;
@@ -1 +1,2 @@
1
- export default function (): any;
1
+ declare const _default: typeof ty.setNavigationBarColor;
2
+ export default _default;
@@ -1,8 +1 @@
1
- export default function () {
2
- if (!ty.setNavigationBarColor) {
3
- console.warn('// TODO 暂未实现方法 setNavigationBarColor');
4
- return;
5
- }
6
-
7
- return ty.setNavigationBarColor.apply(this, arguments);
8
- }
1
+ export default ty.setNavigationBarColor;
@@ -1 +1,2 @@
1
- export default function (): any;
1
+ declare const _default: typeof ty.setNavigationBarTitle;
2
+ export default _default;
@@ -1,8 +1 @@
1
- export default function () {
2
- if (!ty.setNavigationBarTitle) {
3
- console.warn('// TODO 暂未实现方法 setNavigationBarTitle');
4
- return;
5
- }
6
-
7
- return ty.setNavigationBarTitle.apply(this, arguments);
8
- }
1
+ export default ty.setNavigationBarTitle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "0.8.1-beta-2",
3
+ "version": "0.8.3",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -26,13 +26,13 @@
26
26
  "build:kit:api": "node scripts/api-creator.mjs"
27
27
  },
28
28
  "dependencies": {
29
- "@ray-js/framework": "^0.8.1-beta-2",
29
+ "@ray-js/framework": "^0.8.3",
30
30
  "@ray-js/panel-sdk": "^1.2.2",
31
- "@ray-js/router": "^0.8.1-beta-2",
32
- "@ray-js/wechat-device": "^0.0.2-beta-2"
31
+ "@ray-js/router": "^0.8.3",
32
+ "@ray-js/wechat-device": "^0.0.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@ray-js/cli": "^0.8.1-beta-2",
35
+ "@ray-js/cli": "^0.8.3",
36
36
  "art-template": "^4.13.2",
37
37
  "fs-extra": "^10.1.0",
38
38
  "miniprogram-api-typings": "^3.4.3",
@@ -47,6 +47,6 @@
47
47
  "email": "tuyafe@tuya.com"
48
48
  }
49
49
  ],
50
- "gitHead": "f410a973c66749b3c1bc4e0108c95363e0c32475",
50
+ "gitHead": "42709d5c569f23d2406436ca4d9ce9d150527bdc",
51
51
  "repository": {}
52
52
  }
@@ -1,3 +0,0 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
- declare const readFileSync: typeof ty.readFileSync;
3
- export default readFileSync;
@@ -1,6 +0,0 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
- var readFileSync = function () {
3
- console.warn('// TODO 暂未实现方法 readFileSync');
4
- };
5
-
6
- export default readFileSync;
@@ -1 +0,0 @@
1
- export default function (): any;
@@ -1,8 +0,0 @@
1
- export default function () {
2
- if (!ty.readFileSync) {
3
- console.warn('// TODO 暂未实现方法 readFileSync');
4
- return;
5
- }
6
-
7
- return ty.readFileSync.apply(this, arguments);
8
- }
@@ -1 +0,0 @@
1
- export default function (): any;
@@ -1,8 +0,0 @@
1
- export default function () {
2
- if (!wx.readFileSync) {
3
- console.warn('// TODO 暂未实现方法 wx.readFileSync');
4
- return;
5
- }
6
-
7
- return wx.readFileSync.apply(this, arguments);
8
- }