@gjzq/sdk 1.6.3-beta.1 → 1.7.0-beta.2

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.
@@ -7444,22 +7444,16 @@ function nativeViewSet(options) {
7444
7444
  * @returns {Promise<NativeViewParameters>}
7445
7445
  */
7446
7446
  function nativeViewParametersGet() {
7447
- return __awaiter(this, void 0, void 0, function () {
7448
- var res, screenHeight, webViewHeight;
7449
- return __generator(this, function (_a) {
7450
- switch (_a.label) {
7451
- case 0:
7452
- return [4 /*yield*/, nativeIOOperation(3046, {
7453
- checkWebHeight: '1'
7454
- })];
7455
- case 1:
7456
- res = _a.sent();
7457
- screenHeight = res.screenHeight, webViewHeight = res.webViewHeight;
7458
- return [2 /*return*/, _assign(_assign({}, res), {
7459
- isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
7460
- })];
7461
- }
7462
- });
7447
+ return new Promise(function (resolve, reject) {
7448
+ nativeIOOperation(3046, {
7449
+ checkWebHeight: '1'
7450
+ }).then(function (res) {
7451
+ var screenHeight = res.screenHeight,
7452
+ webViewHeight = res.webViewHeight;
7453
+ resolve(_assign(_assign({}, res), {
7454
+ isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
7455
+ }));
7456
+ }).catch(reject);
7463
7457
  });
7464
7458
  }
7465
7459
 
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CW61n9Ma.js');
3
+ var index = require('./index-Dx2dSNmP.js');
4
4
  require('ts-md5');
5
5
  require('weixin-js-sdk');
6
6
  require('clipboard');
package/dist/pure.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CW61n9Ma.js');
3
+ var index = require('./index-Dx2dSNmP.js');
4
4
  require('ts-md5');
5
5
  require('weixin-js-sdk');
6
6
  require('clipboard');
@@ -1,4 +1,4 @@
1
- import { __awaiter, __generator, __assign as _assign } from '../node_modules/tslib/tslib.es6.mjs';
1
+ import { __assign as _assign } from '../node_modules/tslib/tslib.es6.mjs';
2
2
  import { nativeIOOperation } from '../nativeIOOperation/index.mjs';
3
3
 
4
4
  /**
@@ -7,22 +7,16 @@ import { nativeIOOperation } from '../nativeIOOperation/index.mjs';
7
7
  * @returns {Promise<NativeViewParameters>}
8
8
  */
9
9
  function nativeViewParametersGet() {
10
- return __awaiter(this, void 0, void 0, function () {
11
- var res, screenHeight, webViewHeight;
12
- return __generator(this, function (_a) {
13
- switch (_a.label) {
14
- case 0:
15
- return [4 /*yield*/, nativeIOOperation(3046, {
16
- checkWebHeight: '1'
17
- })];
18
- case 1:
19
- res = _a.sent();
20
- screenHeight = res.screenHeight, webViewHeight = res.webViewHeight;
21
- return [2 /*return*/, _assign(_assign({}, res), {
22
- isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
23
- })];
24
- }
25
- });
10
+ return new Promise(function (resolve, reject) {
11
+ nativeIOOperation(3046, {
12
+ checkWebHeight: '1'
13
+ }).then(function (res) {
14
+ var screenHeight = res.screenHeight,
15
+ webViewHeight = res.webViewHeight;
16
+ resolve(_assign(_assign({}, res), {
17
+ isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
18
+ }));
19
+ }).catch(reject);
26
20
  });
27
21
  }
28
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjzq/sdk",
3
- "version": "1.6.3-beta.1",
3
+ "version": "1.7.0-beta.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "types": "./dist/index.d.ts",