react-native-update-cli 2.9.5 → 2.9.6

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/api.js CHANGED
@@ -5,47 +5,47 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- closeSession: function() {
12
+ get closeSession () {
13
13
  return closeSession;
14
14
  },
15
- doDelete: function() {
15
+ get doDelete () {
16
16
  return doDelete;
17
17
  },
18
- get: function() {
18
+ get get () {
19
19
  return get;
20
20
  },
21
- getAllPackages: function() {
21
+ get getAllPackages () {
22
22
  return getAllPackages;
23
23
  },
24
- getApiToken: function() {
24
+ get getApiToken () {
25
25
  return getApiToken;
26
26
  },
27
- getSession: function() {
27
+ get getSession () {
28
28
  return getSession;
29
29
  },
30
- loadSession: function() {
30
+ get loadSession () {
31
31
  return loadSession;
32
32
  },
33
- post: function() {
33
+ get post () {
34
34
  return post;
35
35
  },
36
- put: function() {
36
+ get put () {
37
37
  return put;
38
38
  },
39
- replaceSession: function() {
39
+ get replaceSession () {
40
40
  return replaceSession;
41
41
  },
42
- saveSession: function() {
42
+ get saveSession () {
43
43
  return saveSession;
44
44
  },
45
- setApiToken: function() {
45
+ get setApiToken () {
46
46
  return setApiToken;
47
47
  },
48
- uploadFile: function() {
48
+ get uploadFile () {
49
49
  return uploadFile;
50
50
  }
51
51
  });
@@ -131,7 +131,11 @@ async function query(url, options) {
131
131
  let json;
132
132
  try {
133
133
  json = JSON.parse(text);
134
- } catch (e) {}
134
+ } catch (e) {
135
+ if (resp.status === 200 && text) {
136
+ console.warn(`Warning: API returned 200 with non-JSON body (${text.length} bytes)`);
137
+ }
138
+ }
135
139
  if (resp.status !== 200) {
136
140
  const message = (json == null ? void 0 : json.message) || resp.statusText || `HTTP ${resp.status}`;
137
141
  if (resp.status === 401) {
package/lib/app.js CHANGED
@@ -5,26 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- appCommands: function() {
12
+ get appCommands () {
13
13
  return appCommands;
14
14
  },
15
- assertPlatform: function() {
15
+ get assertPlatform () {
16
16
  return assertPlatform;
17
17
  },
18
- chooseApp: function() {
18
+ get chooseApp () {
19
19
  return chooseApp;
20
20
  },
21
- getPlatform: function() {
21
+ get getPlatform () {
22
22
  return getPlatform;
23
23
  },
24
- getSelectedApp: function() {
24
+ get getSelectedApp () {
25
25
  return getSelectedApp;
26
26
  },
27
- listApp: function() {
27
+ get listApp () {
28
28
  return listApp;
29
29
  }
30
30
  });
@@ -143,7 +143,7 @@ const appCommands = {
143
143
  },
144
144
  deleteApp: async ({ args, options })=>{
145
145
  const { platform } = options;
146
- const id = args[0] || chooseApp(platform);
146
+ const id = args[0] || (await chooseApp(platform)).id;
147
147
  if (!id) {
148
148
  console.log((0, _i18n.t)('cancelled'));
149
149
  }
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- copyDebugidForSentry: function() {
12
+ get copyDebugidForSentry () {
13
13
  return copyDebugidForSentry;
14
14
  },
15
- hasProjectDependency: function() {
15
+ get hasProjectDependency () {
16
16
  return hasProjectDependency;
17
17
  },
18
- resolveExpoCli: function() {
18
+ get resolveExpoCli () {
19
19
  return resolveExpoCli;
20
20
  },
21
- runReactNativeBundleCommand: function() {
21
+ get runReactNativeBundleCommand () {
22
22
  return runReactNativeBundleCommand;
23
23
  },
24
- uploadSourcemapForSentry: function() {
24
+ get uploadSourcemapForSentry () {
25
25
  return uploadSourcemapForSentry;
26
26
  }
27
27
  });
@@ -95,7 +95,7 @@ function hasProjectDependency(dependencyName, projectRoot = process.cwd()) {
95
95
  }
96
96
  return dependencyName in dependencies;
97
97
  });
98
- } catch (e) {
98
+ } catch (unused) {
99
99
  return false;
100
100
  }
101
101
  }
@@ -117,7 +117,7 @@ function resolveExpoCli(projectRoot = process.cwd()) {
117
117
  ]
118
118
  });
119
119
  searchPaths.push(_path.default.dirname(expoPackageJsonPath));
120
- } catch (e) {
120
+ } catch (unused) {
121
121
  // expo 包不存在,忽略
122
122
  }
123
123
  const cliPath = require.resolve('@expo/cli', {
@@ -136,7 +136,7 @@ function resolveExpoCli(projectRoot = process.cwd()) {
136
136
  cliPath,
137
137
  usingExpo: true
138
138
  };
139
- } catch (e) {
139
+ } catch (unused) {
140
140
  return {
141
141
  cliPath: '',
142
142
  usingExpo: false
@@ -171,7 +171,7 @@ async function runReactNativeBundleCommand({ bundleName, dev, entryFile, outputF
171
171
  process.cwd()
172
172
  ]
173
173
  });
174
- } catch (e) {
174
+ } catch (unused) {
175
175
  cliPath = require.resolve('@react-native-community/cli/build/bin.js', {
176
176
  paths: [
177
177
  process.cwd()
@@ -186,7 +186,7 @@ async function runReactNativeBundleCommand({ bundleName, dev, entryFile, outputF
186
186
  process.cwd()
187
187
  ]
188
188
  });
189
- } catch (e) {
189
+ } catch (unused) {
190
190
  // fallback 到 RN CLI
191
191
  }
192
192
  };
@@ -316,7 +316,7 @@ async function checkGradleConfig() {
316
316
  }
317
317
  }
318
318
  }
319
- } catch (e) {
319
+ } catch (unused) {
320
320
  // ignore parsing failures
321
321
  }
322
322
  return {
@@ -383,7 +383,7 @@ async function copyDebugidForSentry(bundleName, outputFolder, sourcemapOutput) {
383
383
  process.cwd()
384
384
  ]
385
385
  });
386
- } catch (e) {
386
+ } catch (unused) {
387
387
  console.error((0, _i18n.t)('sentryCliNotFound'));
388
388
  return;
389
389
  }
@@ -412,7 +412,7 @@ async function uploadSourcemapForSentry(bundleName, outputFolder, sourcemapOutpu
412
412
  process.cwd()
413
413
  ]
414
414
  });
415
- } catch (e) {
415
+ } catch (unused) {
416
416
  console.error((0, _i18n.t)('sentryCliNotFound'));
417
417
  return;
418
418
  }
package/lib/diff.js CHANGED
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- diffCommands: function() {
12
+ get diffCommands () {
13
13
  return diffCommands;
14
14
  },
15
- enumZipEntries: function() {
15
+ get enumZipEntries () {
16
16
  return _zipentries.enumZipEntries;
17
17
  },
18
- readEntry: function() {
18
+ get readEntry () {
19
19
  return _zipentries.readEntry;
20
20
  }
21
21
  });
@@ -85,89 +85,11 @@ const loadModule = (pkgName)=>{
85
85
  paths: resolvePaths
86
86
  });
87
87
  return require(resolved);
88
- } catch (e) {}
88
+ } catch (unused) {}
89
89
  return undefined;
90
90
  };
91
91
  const hdiff = loadModule('node-hdiffpatch');
92
92
  const bsdiff = loadModule('node-bsdiff');
93
- const chiff = loadModule('@chiff/node');
94
- // Structured covers are experimental and can be expensive on real Hermes input.
95
- // Keep native hdiff as the default unless the server explicitly opts in.
96
- function resolveChiffHpatchPolicy(policy) {
97
- var _ref;
98
- const value = String((_ref = policy != null ? policy : process.env.RNU_CHIFF_HPATCH_POLICY) != null ? _ref : 'off').toLowerCase();
99
- if (value === 'costed' || value === 'on' || value === 'true' || value === '1') {
100
- return 'costed';
101
- }
102
- return 'off';
103
- }
104
- function resolveChiffHpatchMinNativeBytes(value) {
105
- var _ref;
106
- const raw = (_ref = value != null ? value : process.env.RNU_CHIFF_HPATCH_MIN_NATIVE_BYTES) != null ? _ref : 4096;
107
- const parsed = Number(raw);
108
- if (!Number.isFinite(parsed) || parsed < 0) {
109
- return 4096;
110
- }
111
- return Math.floor(parsed);
112
- }
113
- function resolveChiffHpatchExactPolicy(policy) {
114
- var _ref;
115
- const value = String((_ref = policy != null ? policy : process.env.RNU_CHIFF_HPATCH_EXACT_COVERS) != null ? _ref : 'off').toLowerCase();
116
- if (value === 'on' || value === 'true' || value === '1') {
117
- return 'on';
118
- }
119
- return 'off';
120
- }
121
- function createChiffAwareHdiff(hdiffModule, chiffModule, policy, minNativeBytes, exactPolicy) {
122
- const baseDiff = hdiffModule.diff;
123
- if (!baseDiff) {
124
- throw new Error((0, _i18n.t)('nodeHdiffpatchRequired', {
125
- scriptName: _constants.scriptName
126
- }));
127
- }
128
- if (policy === 'off') {
129
- return baseDiff;
130
- }
131
- return (oldSource, newSource)=>{
132
- const nativeDiff = baseDiff(oldSource, newSource);
133
- if (!oldSource || !newSource || !hdiffModule.diffWithCovers) {
134
- return nativeDiff;
135
- }
136
- let bestDiff = nativeDiff;
137
- const tryDiffWithCovers = (covers, mode)=>{
138
- try {
139
- const result = hdiffModule.diffWithCovers == null ? void 0 : hdiffModule.diffWithCovers.call(hdiffModule, oldSource, newSource, covers, {
140
- mode
141
- });
142
- if (Buffer.isBuffer(result == null ? void 0 : result.diff) && result.diff.length < bestDiff.length) {
143
- bestDiff = result.diff;
144
- }
145
- } catch (e) {}
146
- };
147
- tryDiffWithCovers([], 'native-coalesce');
148
- if (nativeDiff.length < minNativeBytes) {
149
- return bestDiff;
150
- }
151
- try {
152
- var _chiffModule_hpatchApproximatePlanResult;
153
- const approximatePlan = chiffModule == null ? void 0 : (_chiffModule_hpatchApproximatePlanResult = chiffModule.hpatchApproximatePlanResult) == null ? void 0 : _chiffModule_hpatchApproximatePlanResult.call(chiffModule, oldSource, newSource);
154
- if (Array.isArray(approximatePlan == null ? void 0 : approximatePlan.covers)) {
155
- tryDiffWithCovers(approximatePlan.covers, 'merge');
156
- }
157
- } catch (e) {}
158
- if (exactPolicy === 'off' || !(chiffModule == null ? void 0 : chiffModule.hpatchCompatiblePlanResult)) {
159
- return bestDiff;
160
- }
161
- try {
162
- const plan = chiffModule.hpatchCompatiblePlanResult(oldSource, newSource);
163
- if (Array.isArray(plan.covers)) {
164
- tryDiffWithCovers(plan.covers, 'replace');
165
- tryDiffWithCovers(plan.covers, 'merge');
166
- }
167
- } catch (e) {}
168
- return bestDiff;
169
- };
170
- }
171
93
  function basename(fn) {
172
94
  const m = /^(.+\/)[^\/]+\/?$/.exec(fn);
173
95
  return m == null ? void 0 : m[1];
@@ -373,8 +295,7 @@ function resolveDiffImplementation(useHdiff, options) {
373
295
  scriptName: _constants.scriptName
374
296
  }));
375
297
  }
376
- var _options_customChiffModule;
377
- return createChiffAwareHdiff(hdiffModule, (_options_customChiffModule = options.customChiffModule) != null ? _options_customChiffModule : chiff, resolveChiffHpatchPolicy(options.chiffHpatchPolicy), resolveChiffHpatchMinNativeBytes(options.chiffHpatchMinNativeBytes), resolveChiffHpatchExactPolicy(options.chiffHpatchExactCovers));
298
+ return hdiffModule.diff;
378
299
  }
379
300
  if (!(bsdiff == null ? void 0 : bsdiff.diff)) {
380
301
  throw new Error((0, _i18n.t)('nodeBsdiffRequired', {
package/lib/exports.js CHANGED
@@ -5,53 +5,53 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- CLIProviderImpl: function() {
12
+ get CLIProviderImpl () {
13
13
  return _provider.CLIProviderImpl;
14
14
  },
15
- appModule: function() {
15
+ get appModule () {
16
16
  return _appmodule.appModule;
17
17
  },
18
- builtinModules: function() {
18
+ get builtinModules () {
19
19
  return _modules.builtinModules;
20
20
  },
21
- bundleModule: function() {
21
+ get bundleModule () {
22
22
  return _bundlemodule.bundleModule;
23
23
  },
24
- diffCommands: function() {
24
+ get diffCommands () {
25
25
  return _diff.diffCommands;
26
26
  },
27
- getPlatform: function() {
27
+ get getPlatform () {
28
28
  return _app.getPlatform;
29
29
  },
30
- getSelectedApp: function() {
30
+ get getSelectedApp () {
31
31
  return _app.getSelectedApp;
32
32
  },
33
- getSession: function() {
33
+ get getSession () {
34
34
  return _api.getSession;
35
35
  },
36
- loadSession: function() {
36
+ get loadSession () {
37
37
  return _api.loadSession;
38
38
  },
39
- moduleManager: function() {
39
+ get moduleManager () {
40
40
  return _modulemanager.moduleManager;
41
41
  },
42
- packageModule: function() {
42
+ get packageModule () {
43
43
  return _packagemodule.packageModule;
44
44
  },
45
- question: function() {
45
+ get question () {
46
46
  return _utils.question;
47
47
  },
48
- saveToLocal: function() {
48
+ get saveToLocal () {
49
49
  return _utils.saveToLocal;
50
50
  },
51
- userModule: function() {
51
+ get userModule () {
52
52
  return _usermodule.userModule;
53
53
  },
54
- versionModule: function() {
54
+ get versionModule () {
55
55
  return _versionmodule.versionModule;
56
56
  }
57
57
  });
package/lib/index.js CHANGED
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- CLIProviderImpl: function() {
13
+ get CLIProviderImpl () {
14
14
  return _provider.CLIProviderImpl;
15
15
  },
16
- moduleManager: function() {
16
+ get moduleManager () {
17
17
  return _modulemanager.moduleManager;
18
18
  }
19
19
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- ModuleManager: function() {
12
+ get ModuleManager () {
13
13
  return ModuleManager;
14
14
  },
15
- moduleManager: function() {
15
+ get moduleManager () {
16
16
  return moduleManager;
17
17
  }
18
18
  });
@@ -164,9 +164,9 @@ const appModule = {
164
164
  name: 'analyze-apps',
165
165
  description: 'Analyze app status',
166
166
  execute: async (context, previousResult)=>{
167
+ var _state_appsData;
167
168
  console.log('📊 Analyzing app status...');
168
169
  const state = (0, _options.toObjectState)(previousResult, {});
169
- var _state_appsData;
170
170
  const appsData = (_state_appsData = state.appsData) != null ? _state_appsData : emptyAppsData;
171
171
  const analysis = {
172
172
  totalApps: 0,
@@ -5,26 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- appModule: function() {
12
+ get appModule () {
13
13
  return _appmodule.appModule;
14
14
  },
15
- builtinModules: function() {
15
+ get builtinModules () {
16
16
  return builtinModules;
17
17
  },
18
- bundleModule: function() {
18
+ get bundleModule () {
19
19
  return _bundlemodule.bundleModule;
20
20
  },
21
- packageModule: function() {
21
+ get packageModule () {
22
22
  return _packagemodule.packageModule;
23
23
  },
24
- userModule: function() {
24
+ get userModule () {
25
25
  return _usermodule.userModule;
26
26
  },
27
- versionModule: function() {
27
+ get versionModule () {
28
28
  return _versionmodule.versionModule;
29
29
  }
30
30
  });
package/lib/package.js CHANGED
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- choosePackage: function() {
12
+ get choosePackage () {
13
13
  return choosePackage;
14
14
  },
15
- listPackage: function() {
15
+ get listPackage () {
16
16
  return listPackage;
17
17
  },
18
- normalizeUploadBuildTime: function() {
18
+ get normalizeUploadBuildTime () {
19
19
  return normalizeUploadBuildTime;
20
20
  },
21
- packageCommands: function() {
21
+ get packageCommands () {
22
22
  return packageCommands;
23
23
  }
24
24
  });
@@ -123,11 +123,11 @@ async function listPackage(appId) {
123
123
  const { version } = pkg;
124
124
  let versionInfo = '';
125
125
  if (version) {
126
+ var _ref, _ref1;
126
127
  const versionObj = getVersionBinding(version);
127
- var _versionObj_name, _versionObj_id;
128
128
  versionInfo = (0, _i18n.t)('boundTo', {
129
- name: (_versionObj_name = versionObj == null ? void 0 : versionObj.name) != null ? _versionObj_name : version,
130
- id: (_versionObj_id = versionObj == null ? void 0 : versionObj.id) != null ? _versionObj_id : version
129
+ name: (_ref = versionObj == null ? void 0 : versionObj.name) != null ? _ref : version,
130
+ id: (_ref1 = versionObj == null ? void 0 : versionObj.id) != null ? _ref1 : version
131
131
  });
132
132
  }
133
133
  let output = pkg.name;
@@ -70,7 +70,7 @@ class AabParser extends _zip.Zip {
70
70
  '--version'
71
71
  ]);
72
72
  return false;
73
- } catch (e) {
73
+ } catch (unused) {
74
74
  return true;
75
75
  }
76
76
  };
@@ -174,9 +174,9 @@ class AabParser extends _zip.Zip {
174
174
  apkInfo = (0, _utils.mapInfoResource)(apkInfo, resourceMap);
175
175
  }
176
176
  } catch (e) {
177
- var _e_message;
177
+ var _ref;
178
178
  console.warn((0, _i18n.t)('aabParseResourcesWarning', {
179
- error: (_e_message = e == null ? void 0 : e.message) != null ? _e_message : e
179
+ error: (_ref = e == null ? void 0 : e.message) != null ? _ref : e
180
180
  }));
181
181
  }
182
182
  return apkInfo;
@@ -203,9 +203,9 @@ class AabParser extends _zip.Zip {
203
203
  });
204
204
  return parser.parse();
205
205
  } catch (e) {
206
- var _e_message;
206
+ var _ref;
207
207
  throw new Error((0, _i18n.t)('aabParseManifestError', {
208
- error: (_e_message = e == null ? void 0 : e.message) != null ? _e_message : e
208
+ error: (_ref = e == null ? void 0 : e.message) != null ? _ref : e
209
209
  }));
210
210
  }
211
211
  }
@@ -216,9 +216,9 @@ class AabParser extends _zip.Zip {
216
216
  try {
217
217
  return new _resourcefinder.ResourceFinder().processResourceTable(buffer);
218
218
  } catch (e) {
219
- var _e_message;
219
+ var _ref;
220
220
  throw new Error((0, _i18n.t)('aabParseResourcesError', {
221
- error: (_e_message = e == null ? void 0 : e.message) != null ? _e_message : e
221
+ error: (_ref = e == null ? void 0 : e.message) != null ? _ref : e
222
222
  }));
223
223
  }
224
224
  }
@@ -1,8 +1,4 @@
1
- /**
2
- * Code translated from a C# project https://github.com/hylander0/Iteedee.ApkReader/blob/master/Iteedee.ApkReader/ApkResourceFinder.cs
3
- *
4
- * Decode binary file `resources.arsc` from a .apk file to a JavaScript Object.
5
- */ "use strict";
1
+ "use strict";
6
2
  Object.defineProperty(exports, "__esModule", {
7
3
  value: true
8
4
  });
@@ -12,7 +8,11 @@ Object.defineProperty(exports, "ResourceFinder", {
12
8
  return ResourceFinder;
13
9
  }
14
10
  });
15
- const ByteBuffer = require('bytebuffer');
11
+ /**
12
+ * Code translated from a C# project https://github.com/hylander0/Iteedee.ApkReader/blob/master/Iteedee.ApkReader/ApkResourceFinder.cs
13
+ *
14
+ * Decode binary file `resources.arsc` from a .apk file to a JavaScript Object.
15
+ */ const ByteBuffer = require('bytebuffer');
16
16
  const DEBUG = false;
17
17
  const RES_STRING_POOL_TYPE = 0x0001;
18
18
  const RES_TABLE_TYPE = 0x0002;
@@ -231,6 +231,7 @@ class ResourceFinder {
231
231
  void entrySize;
232
232
  const FLAG_COMPLEX = 0x0001;
233
233
  if ((entryFlag & FLAG_COMPLEX) === 0) {
234
+ var _this_entryMap_key;
234
235
  const valueSize = bb.readShort();
235
236
  const valueRes0 = bb.readByte();
236
237
  const valueDataType = bb.readByte();
@@ -244,7 +245,6 @@ class ResourceFinder {
244
245
  console.log(`Entry 0x${idStr}, key: ${keyStr}, simple value type: `);
245
246
  }
246
247
  const key = Number.parseInt(idStr, 16);
247
- var _this_entryMap_key;
248
248
  const entryArr = (_this_entryMap_key = this.entryMap[key]) != null ? _this_entryMap_key : [];
249
249
  entryArr.push(keyStr);
250
250
  this.entryMap[key] = entryArr;
@@ -5,35 +5,35 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- decodeNullUnicode: function() {
12
+ get decodeNullUnicode () {
13
13
  return decodeNullUnicode;
14
14
  },
15
- findApkIconPath: function() {
15
+ get findApkIconPath () {
16
16
  return findApkIconPath;
17
17
  },
18
- findIpaIconPath: function() {
18
+ get findIpaIconPath () {
19
19
  return findIpaIconPath;
20
20
  },
21
- getBase64FromBuffer: function() {
21
+ get getBase64FromBuffer () {
22
22
  return getBase64FromBuffer;
23
23
  },
24
- isArray: function() {
24
+ get isArray () {
25
25
  return isArray;
26
26
  },
27
- isBrowser: function() {
27
+ get isBrowser () {
28
28
  return isBrowser;
29
29
  },
30
- isObject: function() {
30
+ get isObject () {
31
31
  return isObject;
32
32
  },
33
- isPrimitive: function() {
33
+ get isPrimitive () {
34
34
  return isPrimitive;
35
35
  },
36
- mapInfoResource: function() {
36
+ get mapInfoResource () {
37
37
  return mapInfoResource;
38
38
  }
39
39
  });