jscrambler 5.5.34 → 6.0.4
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/README.md +17 -0
- package/dist/bin/jscrambler.js +8 -10
- package/dist/client.js +15 -1
- package/dist/config.js +3 -1
- package/dist/constants.js +24 -2
- package/dist/generate-signed-params.js +5 -1
- package/dist/index.js +168 -169
- package/dist/utils.js +33 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,11 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _glob = require('glob');
|
|
7
|
+
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
require('babel-polyfill');
|
|
12
10
|
|
|
13
11
|
var _path = require('path');
|
|
14
12
|
|
|
@@ -54,6 +52,8 @@ var _introspection = require('./introspection');
|
|
|
54
52
|
|
|
55
53
|
var introspection = _interopRequireWildcard(_introspection);
|
|
56
54
|
|
|
55
|
+
var _utils = require('./utils');
|
|
56
|
+
|
|
57
57
|
var _getProtectionDefaultFragments = require('./get-protection-default-fragments');
|
|
58
58
|
|
|
59
59
|
var _getProtectionDefaultFragments2 = _interopRequireDefault(_getProtectionDefaultFragments);
|
|
@@ -156,45 +156,43 @@ exports.default = {
|
|
|
156
156
|
*/
|
|
157
157
|
updateApplicationSources: function () {
|
|
158
158
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(client, applicationId, _ref) {
|
|
159
|
+
var _this = this;
|
|
160
|
+
|
|
159
161
|
var sources = _ref.sources,
|
|
160
162
|
filesSrc = _ref.filesSrc,
|
|
161
163
|
cwd = _ref.cwd,
|
|
162
164
|
appProfiling = _ref.appProfiling;
|
|
163
165
|
|
|
164
|
-
var
|
|
166
|
+
var promise, zipped, source, _filesSrc, i, l, content;
|
|
165
167
|
|
|
166
168
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
167
169
|
while (1) {
|
|
168
170
|
switch (_context.prev = _context.next) {
|
|
169
171
|
case 0:
|
|
172
|
+
promise = null;
|
|
173
|
+
|
|
170
174
|
if (!(sources || filesSrc && filesSrc.length)) {
|
|
171
|
-
_context.next =
|
|
175
|
+
_context.next = 5;
|
|
172
176
|
break;
|
|
173
177
|
}
|
|
174
178
|
|
|
175
179
|
if (!(appProfiling && appProfiling.data && appProfiling.data.state === 'READY')) {
|
|
176
|
-
_context.next =
|
|
180
|
+
_context.next = 4;
|
|
177
181
|
break;
|
|
178
182
|
}
|
|
179
183
|
|
|
180
184
|
throw new Error('You have a finished Profiling for this application so you are NOT ALLOWED to update sources. To override this behavior use *--remove-profiling-data* or *--skip-sources*.');
|
|
181
185
|
|
|
182
|
-
case
|
|
183
|
-
_context.next = 5;
|
|
184
|
-
return this.removeSourceFromApplication(client, '', applicationId);
|
|
185
|
-
|
|
186
|
-
case 5:
|
|
187
|
-
removeSourceRes = _context.sent;
|
|
188
|
-
|
|
186
|
+
case 4:
|
|
189
187
|
|
|
190
|
-
|
|
188
|
+
promise = this.removeSourceFromApplication(client, '', applicationId);
|
|
191
189
|
|
|
192
|
-
case
|
|
190
|
+
case 5:
|
|
193
191
|
zipped = void 0;
|
|
194
192
|
source = void 0;
|
|
195
193
|
|
|
196
194
|
if (!(filesSrc && filesSrc.length)) {
|
|
197
|
-
_context.next =
|
|
195
|
+
_context.next = 16;
|
|
198
196
|
break;
|
|
199
197
|
}
|
|
200
198
|
|
|
@@ -202,10 +200,7 @@ exports.default = {
|
|
|
202
200
|
|
|
203
201
|
for (i = 0, l = filesSrc.length; i < l; i += 1) {
|
|
204
202
|
if (typeof filesSrc[i] === 'string') {
|
|
205
|
-
|
|
206
|
-
_filesSrc = _filesSrc.concat(_glob2.default.sync(filesSrc[i], {
|
|
207
|
-
dot: true
|
|
208
|
-
}));
|
|
203
|
+
_filesSrc = _filesSrc.concat((0, _utils.getMatchedFiles)(filesSrc[i]));
|
|
209
204
|
} else {
|
|
210
205
|
_filesSrc.push(filesSrc[i]);
|
|
211
206
|
}
|
|
@@ -215,17 +210,17 @@ exports.default = {
|
|
|
215
210
|
console.log('Creating zip from source files');
|
|
216
211
|
}
|
|
217
212
|
|
|
218
|
-
_context.next =
|
|
213
|
+
_context.next = 13;
|
|
219
214
|
return (0, _zip.zip)(_filesSrc, cwd);
|
|
220
215
|
|
|
221
|
-
case
|
|
216
|
+
case 13:
|
|
222
217
|
zipped = _context.sent;
|
|
223
|
-
_context.next =
|
|
218
|
+
_context.next = 21;
|
|
224
219
|
break;
|
|
225
220
|
|
|
226
|
-
case
|
|
221
|
+
case 16:
|
|
227
222
|
if (!sources) {
|
|
228
|
-
_context.next =
|
|
223
|
+
_context.next = 21;
|
|
229
224
|
break;
|
|
230
225
|
}
|
|
231
226
|
|
|
@@ -233,24 +228,24 @@ exports.default = {
|
|
|
233
228
|
console.log('Creating zip from sources');
|
|
234
229
|
}
|
|
235
230
|
|
|
236
|
-
_context.next =
|
|
231
|
+
_context.next = 20;
|
|
237
232
|
return (0, _zip.zipSources)(sources);
|
|
238
233
|
|
|
239
|
-
case
|
|
234
|
+
case 20:
|
|
240
235
|
zipped = _context.sent;
|
|
241
236
|
|
|
242
|
-
case
|
|
237
|
+
case 21:
|
|
243
238
|
if (!zipped) {
|
|
244
|
-
_context.next =
|
|
239
|
+
_context.next = 28;
|
|
245
240
|
break;
|
|
246
241
|
}
|
|
247
242
|
|
|
248
|
-
_context.next =
|
|
243
|
+
_context.next = 24;
|
|
249
244
|
return zipped.generateAsync({
|
|
250
245
|
type: 'base64'
|
|
251
246
|
});
|
|
252
247
|
|
|
253
|
-
case
|
|
248
|
+
case 24:
|
|
254
249
|
content = _context.sent;
|
|
255
250
|
|
|
256
251
|
|
|
@@ -264,18 +259,18 @@ exports.default = {
|
|
|
264
259
|
extension: 'zip'
|
|
265
260
|
};
|
|
266
261
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
return this.addApplicationSource(client, applicationId, source);
|
|
262
|
+
promise.then(function (removeRes) {
|
|
263
|
+
errorHandler(removeRes);
|
|
270
264
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
265
|
+
return _this.addApplicationSource(client, applicationId, source);
|
|
266
|
+
}).then(errorHandler).catch(function (e) {
|
|
267
|
+
console.warn('Update application sources failed with ' + e.message);
|
|
268
|
+
});
|
|
274
269
|
|
|
275
|
-
case
|
|
276
|
-
return _context.abrupt('return', source);
|
|
270
|
+
case 28:
|
|
271
|
+
return _context.abrupt('return', { source: source, promise: promise });
|
|
277
272
|
|
|
278
|
-
case
|
|
273
|
+
case 29:
|
|
279
274
|
case 'end':
|
|
280
275
|
return _context.stop();
|
|
281
276
|
}
|
|
@@ -335,9 +330,9 @@ exports.default = {
|
|
|
335
330
|
//
|
|
336
331
|
protectAndDownload: function () {
|
|
337
332
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(configPathOrObject, destCallback) {
|
|
338
|
-
var
|
|
333
|
+
var _this2 = this;
|
|
339
334
|
|
|
340
|
-
var finalConfig, applicationId, host, port, basePath, protocol, cafile, keys, sources, _finalConfig$stream, stream, cwd, params, applicationTypes, languageSpecifications, sourceMaps, randomizationSeed, areSubscribersOrdered, useRecommendedOrder, _finalConfig$bail, bail, jscramblerVersion, debugMode, proxy, utc, clientId, tolerateMinification, codeHardeningThreshold, useProfilingData, browsers, useAppClassification, profilingDataMode, removeProfilingData, skipSources, inputSymbolTable, entryPoint, excludeList, forceAppEnvironment, accessKey, secretKey, client, filesSrc, filesDest, source, appProfiling, updateData, dataToValidate, prop, value, applicationUpdate, updateApplicationRes, protectionOptions, inputSymbolTableContents, createApplicationProtectionRes, protectionId, onExitCancelProtection, protection, sourcesErrors, download;
|
|
335
|
+
var finalConfig, applicationId, host, port, basePath, protocol, cafile, keys, sources, _finalConfig$stream, stream, cwd, params, applicationTypes, languageSpecifications, sourceMaps, randomizationSeed, areSubscribersOrdered, useRecommendedOrder, _finalConfig$bail, bail, jscramblerVersion, debugMode, proxy, utc, clientId, tolerateMinification, codeHardeningThreshold, useProfilingData, browsers, useAppClassification, profilingDataMode, removeProfilingData, skipSources, inputSymbolTable, entryPoint, excludeList, forceAppEnvironment, accessKey, secretKey, client, filesSrc, filesDest, source, updateApplicationSourcePromise, appProfiling, _ref4, updateData, dataToValidate, prop, value, applicationUpdate, updateApplicationRes, protectionOptions, inputSymbolTableContents, _ref5, _ref6, createApplicationProtectionRes, protectionId, onExitCancelProtection, protection, sourcesErrors, download;
|
|
341
336
|
|
|
342
337
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
343
338
|
while (1) {
|
|
@@ -387,10 +382,10 @@ exports.default = {
|
|
|
387
382
|
throw new Error('Required *filesDest* not provided');
|
|
388
383
|
|
|
389
384
|
case 12:
|
|
390
|
-
source = void 0;
|
|
385
|
+
source = void 0, updateApplicationSourcePromise = void 0;
|
|
391
386
|
|
|
392
387
|
if (skipSources) {
|
|
393
|
-
_context2.next =
|
|
388
|
+
_context2.next = 28;
|
|
394
389
|
break;
|
|
395
390
|
}
|
|
396
391
|
|
|
@@ -423,14 +418,16 @@ exports.default = {
|
|
|
423
418
|
});
|
|
424
419
|
|
|
425
420
|
case 23:
|
|
426
|
-
|
|
427
|
-
|
|
421
|
+
_ref4 = _context2.sent;
|
|
422
|
+
source = _ref4.source;
|
|
423
|
+
updateApplicationSourcePromise = _ref4.promise;
|
|
424
|
+
_context2.next = 29;
|
|
428
425
|
break;
|
|
429
426
|
|
|
430
|
-
case
|
|
427
|
+
case 28:
|
|
431
428
|
console.log('Update source files SKIPPED');
|
|
432
429
|
|
|
433
|
-
case
|
|
430
|
+
case 29:
|
|
434
431
|
updateData = {
|
|
435
432
|
_id: applicationId,
|
|
436
433
|
debugMode: !!debugMode,
|
|
@@ -466,7 +463,7 @@ exports.default = {
|
|
|
466
463
|
}
|
|
467
464
|
|
|
468
465
|
if (!(updateData.parameters || updateData.applicationTypes || updateData.languageSpecifications || updateData.browsers || typeof updateData.areSubscribersOrdered !== 'undefined')) {
|
|
469
|
-
_context2.next =
|
|
466
|
+
_context2.next = 43;
|
|
470
467
|
break;
|
|
471
468
|
}
|
|
472
469
|
|
|
@@ -474,15 +471,15 @@ exports.default = {
|
|
|
474
471
|
console.log('Updating parameters of protection');
|
|
475
472
|
}
|
|
476
473
|
|
|
477
|
-
_context2.next =
|
|
474
|
+
_context2.next = 37;
|
|
478
475
|
return intoObjectType(client, updateData, 'Application');
|
|
479
476
|
|
|
480
|
-
case
|
|
477
|
+
case 37:
|
|
481
478
|
applicationUpdate = _context2.sent;
|
|
482
|
-
_context2.next =
|
|
479
|
+
_context2.next = 40;
|
|
483
480
|
return this.updateApplication(client, applicationUpdate);
|
|
484
481
|
|
|
485
|
-
case
|
|
482
|
+
case 40:
|
|
486
483
|
updateApplicationRes = _context2.sent;
|
|
487
484
|
|
|
488
485
|
if (debug) {
|
|
@@ -491,7 +488,7 @@ exports.default = {
|
|
|
491
488
|
}
|
|
492
489
|
errorHandler(updateApplicationRes);
|
|
493
490
|
|
|
494
|
-
case
|
|
491
|
+
case 43:
|
|
495
492
|
|
|
496
493
|
if (debug) {
|
|
497
494
|
console.log('Creating Application Protection');
|
|
@@ -519,23 +516,25 @@ exports.default = {
|
|
|
519
516
|
protectionOptions.inputSymbolTable = inputSymbolTableContents;
|
|
520
517
|
}
|
|
521
518
|
|
|
522
|
-
_context2.next =
|
|
523
|
-
return this.createApplicationProtection(client, applicationId, protectionOptions);
|
|
519
|
+
_context2.next = 49;
|
|
520
|
+
return Promise.all([this.createApplicationProtection(client, applicationId, protectionOptions), updateApplicationSourcePromise]);
|
|
524
521
|
|
|
525
|
-
case
|
|
526
|
-
|
|
522
|
+
case 49:
|
|
523
|
+
_ref5 = _context2.sent;
|
|
524
|
+
_ref6 = _slicedToArray(_ref5, 1);
|
|
525
|
+
createApplicationProtectionRes = _ref6[0];
|
|
527
526
|
|
|
528
527
|
errorHandler(createApplicationProtectionRes);
|
|
529
528
|
|
|
530
529
|
protectionId = createApplicationProtectionRes.data.createApplicationProtection._id;
|
|
531
530
|
|
|
532
531
|
onExitCancelProtection = function onExitCancelProtection() {
|
|
533
|
-
|
|
532
|
+
_this2.cancelProtection(client, protectionId, applicationId).then(function () {
|
|
534
533
|
return console.log('\n** Protection %s WAS CANCELLED **', protectionId);
|
|
535
534
|
}).catch(function () {
|
|
536
535
|
return debug && console.error(e);
|
|
537
536
|
}).finally(function () {
|
|
538
|
-
return process.exit(
|
|
537
|
+
return process.exit(1);
|
|
539
538
|
});
|
|
540
539
|
};
|
|
541
540
|
|
|
@@ -545,15 +544,15 @@ exports.default = {
|
|
|
545
544
|
_context2.t1 = client;
|
|
546
545
|
_context2.t2 = applicationId;
|
|
547
546
|
_context2.t3 = protectionId;
|
|
548
|
-
_context2.next =
|
|
547
|
+
_context2.next = 62;
|
|
549
548
|
return (0, _getProtectionDefaultFragments2.default)(client);
|
|
550
549
|
|
|
551
|
-
case
|
|
550
|
+
case 62:
|
|
552
551
|
_context2.t4 = _context2.sent;
|
|
553
|
-
_context2.next =
|
|
552
|
+
_context2.next = 65;
|
|
554
553
|
return _context2.t0.pollProtection.call(_context2.t0, _context2.t1, _context2.t2, _context2.t3, _context2.t4);
|
|
555
554
|
|
|
556
|
-
case
|
|
555
|
+
case 65:
|
|
557
556
|
protection = _context2.sent;
|
|
558
557
|
|
|
559
558
|
|
|
@@ -590,7 +589,7 @@ exports.default = {
|
|
|
590
589
|
});
|
|
591
590
|
|
|
592
591
|
if (!(protection.state === 'errored')) {
|
|
593
|
-
_context2.next =
|
|
592
|
+
_context2.next = 80;
|
|
594
593
|
break;
|
|
595
594
|
}
|
|
596
595
|
|
|
@@ -602,34 +601,34 @@ exports.default = {
|
|
|
602
601
|
}
|
|
603
602
|
throw new Error('Protection failed. For more information visit: ' + APP_URL + '.');
|
|
604
603
|
|
|
605
|
-
case
|
|
604
|
+
case 80:
|
|
606
605
|
if (!(sourcesErrors.length > 0)) {
|
|
607
|
-
_context2.next =
|
|
606
|
+
_context2.next = 87;
|
|
608
607
|
break;
|
|
609
608
|
}
|
|
610
609
|
|
|
611
610
|
if (!protection.bail) {
|
|
612
|
-
_context2.next =
|
|
611
|
+
_context2.next = 86;
|
|
613
612
|
break;
|
|
614
613
|
}
|
|
615
614
|
|
|
616
615
|
printSourcesErrors(sourcesErrors);
|
|
617
616
|
throw new Error('Your protection has failed.');
|
|
618
617
|
|
|
619
|
-
case
|
|
618
|
+
case 86:
|
|
620
619
|
sourcesErrors.forEach(function (e) {
|
|
621
620
|
return console.warn('Non-fatal error: "' + e.message + '" in ' + e.filename);
|
|
622
621
|
});
|
|
623
622
|
|
|
624
|
-
case
|
|
623
|
+
case 87:
|
|
625
624
|
|
|
626
625
|
if (debug) {
|
|
627
626
|
console.log('Downloading protection result');
|
|
628
627
|
}
|
|
629
|
-
_context2.next =
|
|
628
|
+
_context2.next = 90;
|
|
630
629
|
return this.downloadApplicationProtection(client, protectionId);
|
|
631
630
|
|
|
632
|
-
case
|
|
631
|
+
case 90:
|
|
633
632
|
download = _context2.sent;
|
|
634
633
|
|
|
635
634
|
|
|
@@ -639,10 +638,10 @@ exports.default = {
|
|
|
639
638
|
console.log('Unzipping files');
|
|
640
639
|
}
|
|
641
640
|
|
|
642
|
-
_context2.next =
|
|
641
|
+
_context2.next = 95;
|
|
643
642
|
return (0, _zip.unzip)(download, filesDest || destCallback, stream);
|
|
644
643
|
|
|
645
|
-
case
|
|
644
|
+
case 95:
|
|
646
645
|
|
|
647
646
|
if (debug) {
|
|
648
647
|
console.log('Finished unzipping files');
|
|
@@ -652,7 +651,7 @@ exports.default = {
|
|
|
652
651
|
|
|
653
652
|
return _context2.abrupt('return', protectionId);
|
|
654
653
|
|
|
655
|
-
case
|
|
654
|
+
case 98:
|
|
656
655
|
case 'end':
|
|
657
656
|
return _context2.stop();
|
|
658
657
|
}
|
|
@@ -674,8 +673,8 @@ exports.default = {
|
|
|
674
673
|
* @returns {Promise<string>}
|
|
675
674
|
*/
|
|
676
675
|
instrumentAndDownload: function () {
|
|
677
|
-
var
|
|
678
|
-
var
|
|
676
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(configPathOrObject, destCallback) {
|
|
677
|
+
var _this3 = this;
|
|
679
678
|
|
|
680
679
|
var finalConfig, applicationId, host, port, basePath, protocol, cafile, keys, sources, _finalConfig$stream2, stream, cwd, jscramblerVersion, proxy, utc, skipSources, clientId, accessKey, secretKey, client, filesSrc, filesDest, instrumentation, onExitCancelInstrumentation, download;
|
|
681
680
|
|
|
@@ -755,12 +754,12 @@ exports.default = {
|
|
|
755
754
|
errorHandler(instrumentation);
|
|
756
755
|
|
|
757
756
|
onExitCancelInstrumentation = function onExitCancelInstrumentation() {
|
|
758
|
-
|
|
757
|
+
_this3.deleteProfiling(client, instrumentation.data.id).then(function () {
|
|
759
758
|
return console.log('\n** Instrumentation %s WAS CANCELLED **', instrumentation.data.id);
|
|
760
759
|
}).catch(function () {
|
|
761
760
|
return debug && console.error(e);
|
|
762
761
|
}).finally(function () {
|
|
763
|
-
return process.exit(
|
|
762
|
+
return process.exit(1);
|
|
764
763
|
});
|
|
765
764
|
};
|
|
766
765
|
|
|
@@ -815,7 +814,7 @@ exports.default = {
|
|
|
815
814
|
}));
|
|
816
815
|
|
|
817
816
|
function instrumentAndDownload(_x6, _x7) {
|
|
818
|
-
return
|
|
817
|
+
return _ref7.apply(this, arguments);
|
|
819
818
|
}
|
|
820
819
|
|
|
821
820
|
return instrumentAndDownload;
|
|
@@ -831,7 +830,7 @@ exports.default = {
|
|
|
831
830
|
* @returns {Promise<string>} The previous state
|
|
832
831
|
*/
|
|
833
832
|
setProfilingState: function () {
|
|
834
|
-
var
|
|
833
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(configPathOrObject, state, label, nextStepMessage) {
|
|
835
834
|
var finalConfig, keys, host, port, basePath, protocol, cafile, applicationId, proxy, utc, jscramblerVersion, clientId, accessKey, secretKey, client, instrumentation, previousState;
|
|
836
835
|
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
837
836
|
while (1) {
|
|
@@ -898,13 +897,13 @@ exports.default = {
|
|
|
898
897
|
}));
|
|
899
898
|
|
|
900
899
|
function setProfilingState(_x8, _x9, _x10, _x11) {
|
|
901
|
-
return
|
|
900
|
+
return _ref8.apply(this, arguments);
|
|
902
901
|
}
|
|
903
902
|
|
|
904
903
|
return setProfilingState;
|
|
905
904
|
}(),
|
|
906
905
|
downloadSourceMaps: function () {
|
|
907
|
-
var
|
|
906
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(configs, destCallback) {
|
|
908
907
|
var keys, host, port, basePath, protocol, cafile, _configs$stream, stream, filesDest, filesSrc, protectionId, jscramblerVersion, utc, proxy, accessKey, secretKey, client, download;
|
|
909
908
|
|
|
910
909
|
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -975,13 +974,13 @@ exports.default = {
|
|
|
975
974
|
}));
|
|
976
975
|
|
|
977
976
|
function downloadSourceMaps(_x12, _x13) {
|
|
978
|
-
return
|
|
977
|
+
return _ref9.apply(this, arguments);
|
|
979
978
|
}
|
|
980
979
|
|
|
981
980
|
return downloadSourceMaps;
|
|
982
981
|
}(),
|
|
983
982
|
downloadSymbolTable: function () {
|
|
984
|
-
var
|
|
983
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(configs, destCallback) {
|
|
985
984
|
var keys, host, port, basePath, protocol, cafile, _configs$stream2, stream, filesDest, filesSrc, protectionId, jscramblerVersion, utc, proxy, accessKey, secretKey, client, download;
|
|
986
985
|
|
|
987
986
|
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
@@ -1056,7 +1055,7 @@ exports.default = {
|
|
|
1056
1055
|
}));
|
|
1057
1056
|
|
|
1058
1057
|
function downloadSymbolTable(_x14, _x15) {
|
|
1059
|
-
return
|
|
1058
|
+
return _ref10.apply(this, arguments);
|
|
1060
1059
|
}
|
|
1061
1060
|
|
|
1062
1061
|
return downloadSymbolTable;
|
|
@@ -1071,8 +1070,8 @@ exports.default = {
|
|
|
1071
1070
|
* @throws {Error} due to errors in instrumentation process or user cancel the operation
|
|
1072
1071
|
*/
|
|
1073
1072
|
pollInstrumentation: function () {
|
|
1074
|
-
var
|
|
1075
|
-
var
|
|
1073
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(client, instrumentationId) {
|
|
1074
|
+
var _this4 = this;
|
|
1076
1075
|
|
|
1077
1076
|
var start, poll;
|
|
1078
1077
|
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
@@ -1082,14 +1081,14 @@ exports.default = {
|
|
|
1082
1081
|
start = Date.now();
|
|
1083
1082
|
|
|
1084
1083
|
poll = function () {
|
|
1085
|
-
var
|
|
1084
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
1086
1085
|
var instrumentation;
|
|
1087
1086
|
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
1088
1087
|
while (1) {
|
|
1089
1088
|
switch (_context7.prev = _context7.next) {
|
|
1090
1089
|
case 0:
|
|
1091
1090
|
_context7.next = 2;
|
|
1092
|
-
return
|
|
1091
|
+
return _this4.getInstrumentation(client, instrumentationId);
|
|
1093
1092
|
|
|
1094
1093
|
case 2:
|
|
1095
1094
|
instrumentation = _context7.sent;
|
|
@@ -1125,11 +1124,11 @@ exports.default = {
|
|
|
1125
1124
|
return _context7.stop();
|
|
1126
1125
|
}
|
|
1127
1126
|
}
|
|
1128
|
-
}, _callee7,
|
|
1127
|
+
}, _callee7, _this4);
|
|
1129
1128
|
}));
|
|
1130
1129
|
|
|
1131
1130
|
return function poll() {
|
|
1132
|
-
return
|
|
1131
|
+
return _ref12.apply(this, arguments);
|
|
1133
1132
|
};
|
|
1134
1133
|
}();
|
|
1135
1134
|
|
|
@@ -1144,13 +1143,13 @@ exports.default = {
|
|
|
1144
1143
|
}));
|
|
1145
1144
|
|
|
1146
1145
|
function pollInstrumentation(_x16, _x17) {
|
|
1147
|
-
return
|
|
1146
|
+
return _ref11.apply(this, arguments);
|
|
1148
1147
|
}
|
|
1149
1148
|
|
|
1150
1149
|
return pollInstrumentation;
|
|
1151
1150
|
}(),
|
|
1152
1151
|
withRetries: function () {
|
|
1153
|
-
var
|
|
1152
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(action) {
|
|
1154
1153
|
var retriesLeft;
|
|
1155
1154
|
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
1156
1155
|
while (1) {
|
|
@@ -1205,14 +1204,14 @@ exports.default = {
|
|
|
1205
1204
|
}));
|
|
1206
1205
|
|
|
1207
1206
|
function withRetries(_x18) {
|
|
1208
|
-
return
|
|
1207
|
+
return _ref13.apply(this, arguments);
|
|
1209
1208
|
}
|
|
1210
1209
|
|
|
1211
1210
|
return withRetries;
|
|
1212
1211
|
}(),
|
|
1213
1212
|
pollProtection: function () {
|
|
1214
|
-
var
|
|
1215
|
-
var
|
|
1213
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(client, applicationId, protectionId, fragments) {
|
|
1214
|
+
var _this5 = this;
|
|
1216
1215
|
|
|
1217
1216
|
var start, poll;
|
|
1218
1217
|
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
@@ -1222,15 +1221,15 @@ exports.default = {
|
|
|
1222
1221
|
start = Date.now();
|
|
1223
1222
|
|
|
1224
1223
|
poll = function () {
|
|
1225
|
-
var
|
|
1224
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
1226
1225
|
var applicationProtection, state;
|
|
1227
1226
|
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
1228
1227
|
while (1) {
|
|
1229
1228
|
switch (_context10.prev = _context10.next) {
|
|
1230
1229
|
case 0:
|
|
1231
1230
|
_context10.next = 2;
|
|
1232
|
-
return
|
|
1233
|
-
return
|
|
1231
|
+
return _this5.withRetries(function () {
|
|
1232
|
+
return _this5.getApplicationProtection(client, applicationId, protectionId, fragments);
|
|
1234
1233
|
});
|
|
1235
1234
|
|
|
1236
1235
|
case 2:
|
|
@@ -1277,11 +1276,11 @@ exports.default = {
|
|
|
1277
1276
|
return _context10.stop();
|
|
1278
1277
|
}
|
|
1279
1278
|
}
|
|
1280
|
-
}, _callee10,
|
|
1279
|
+
}, _callee10, _this5);
|
|
1281
1280
|
}));
|
|
1282
1281
|
|
|
1283
1282
|
return function poll() {
|
|
1284
|
-
return
|
|
1283
|
+
return _ref15.apply(this, arguments);
|
|
1285
1284
|
};
|
|
1286
1285
|
}();
|
|
1287
1286
|
|
|
@@ -1296,7 +1295,7 @@ exports.default = {
|
|
|
1296
1295
|
}));
|
|
1297
1296
|
|
|
1298
1297
|
function pollProtection(_x19, _x20, _x21, _x22) {
|
|
1299
|
-
return
|
|
1298
|
+
return _ref14.apply(this, arguments);
|
|
1300
1299
|
}
|
|
1301
1300
|
|
|
1302
1301
|
return pollProtection;
|
|
@@ -1304,7 +1303,7 @@ exports.default = {
|
|
|
1304
1303
|
|
|
1305
1304
|
//
|
|
1306
1305
|
createApplication: function () {
|
|
1307
|
-
var
|
|
1306
|
+
var _ref16 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(client, data, fragments) {
|
|
1308
1307
|
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
1309
1308
|
while (1) {
|
|
1310
1309
|
switch (_context12.prev = _context12.next) {
|
|
@@ -1320,7 +1319,7 @@ exports.default = {
|
|
|
1320
1319
|
}));
|
|
1321
1320
|
|
|
1322
1321
|
function createApplication(_x23, _x24, _x25) {
|
|
1323
|
-
return
|
|
1322
|
+
return _ref16.apply(this, arguments);
|
|
1324
1323
|
}
|
|
1325
1324
|
|
|
1326
1325
|
return createApplication;
|
|
@@ -1328,7 +1327,7 @@ exports.default = {
|
|
|
1328
1327
|
|
|
1329
1328
|
//
|
|
1330
1329
|
duplicateApplication: function () {
|
|
1331
|
-
var
|
|
1330
|
+
var _ref17 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(client, data, fragments) {
|
|
1332
1331
|
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
1333
1332
|
while (1) {
|
|
1334
1333
|
switch (_context13.prev = _context13.next) {
|
|
@@ -1344,7 +1343,7 @@ exports.default = {
|
|
|
1344
1343
|
}));
|
|
1345
1344
|
|
|
1346
1345
|
function duplicateApplication(_x26, _x27, _x28) {
|
|
1347
|
-
return
|
|
1346
|
+
return _ref17.apply(this, arguments);
|
|
1348
1347
|
}
|
|
1349
1348
|
|
|
1350
1349
|
return duplicateApplication;
|
|
@@ -1352,7 +1351,7 @@ exports.default = {
|
|
|
1352
1351
|
|
|
1353
1352
|
//
|
|
1354
1353
|
removeApplication: function () {
|
|
1355
|
-
var
|
|
1354
|
+
var _ref18 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(client, id) {
|
|
1356
1355
|
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
1357
1356
|
while (1) {
|
|
1358
1357
|
switch (_context14.prev = _context14.next) {
|
|
@@ -1368,7 +1367,7 @@ exports.default = {
|
|
|
1368
1367
|
}));
|
|
1369
1368
|
|
|
1370
1369
|
function removeApplication(_x29, _x30) {
|
|
1371
|
-
return
|
|
1370
|
+
return _ref18.apply(this, arguments);
|
|
1372
1371
|
}
|
|
1373
1372
|
|
|
1374
1373
|
return removeApplication;
|
|
@@ -1376,7 +1375,7 @@ exports.default = {
|
|
|
1376
1375
|
|
|
1377
1376
|
//
|
|
1378
1377
|
removeProtection: function () {
|
|
1379
|
-
var
|
|
1378
|
+
var _ref19 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(client, id, appId, fragments) {
|
|
1380
1379
|
return regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
1381
1380
|
while (1) {
|
|
1382
1381
|
switch (_context15.prev = _context15.next) {
|
|
@@ -1392,7 +1391,7 @@ exports.default = {
|
|
|
1392
1391
|
}));
|
|
1393
1392
|
|
|
1394
1393
|
function removeProtection(_x31, _x32, _x33, _x34) {
|
|
1395
|
-
return
|
|
1394
|
+
return _ref19.apply(this, arguments);
|
|
1396
1395
|
}
|
|
1397
1396
|
|
|
1398
1397
|
return removeProtection;
|
|
@@ -1400,7 +1399,7 @@ exports.default = {
|
|
|
1400
1399
|
|
|
1401
1400
|
//
|
|
1402
1401
|
cancelProtection: function () {
|
|
1403
|
-
var
|
|
1402
|
+
var _ref20 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(client, id, appId, fragments) {
|
|
1404
1403
|
var mutation;
|
|
1405
1404
|
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
1406
1405
|
while (1) {
|
|
@@ -1422,7 +1421,7 @@ exports.default = {
|
|
|
1422
1421
|
}));
|
|
1423
1422
|
|
|
1424
1423
|
function cancelProtection(_x35, _x36, _x37, _x38) {
|
|
1425
|
-
return
|
|
1424
|
+
return _ref20.apply(this, arguments);
|
|
1426
1425
|
}
|
|
1427
1426
|
|
|
1428
1427
|
return cancelProtection;
|
|
@@ -1430,7 +1429,7 @@ exports.default = {
|
|
|
1430
1429
|
|
|
1431
1430
|
//
|
|
1432
1431
|
updateApplication: function () {
|
|
1433
|
-
var
|
|
1432
|
+
var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17(client, application, fragments) {
|
|
1434
1433
|
var mutation;
|
|
1435
1434
|
return regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
1436
1435
|
while (1) {
|
|
@@ -1452,7 +1451,7 @@ exports.default = {
|
|
|
1452
1451
|
}));
|
|
1453
1452
|
|
|
1454
1453
|
function updateApplication(_x39, _x40, _x41) {
|
|
1455
|
-
return
|
|
1454
|
+
return _ref21.apply(this, arguments);
|
|
1456
1455
|
}
|
|
1457
1456
|
|
|
1458
1457
|
return updateApplication;
|
|
@@ -1460,7 +1459,7 @@ exports.default = {
|
|
|
1460
1459
|
|
|
1461
1460
|
//
|
|
1462
1461
|
unlockApplication: function () {
|
|
1463
|
-
var
|
|
1462
|
+
var _ref22 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18(client, application, fragments) {
|
|
1464
1463
|
var mutation;
|
|
1465
1464
|
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
1466
1465
|
while (1) {
|
|
@@ -1482,7 +1481,7 @@ exports.default = {
|
|
|
1482
1481
|
}));
|
|
1483
1482
|
|
|
1484
1483
|
function unlockApplication(_x42, _x43, _x44) {
|
|
1485
|
-
return
|
|
1484
|
+
return _ref22.apply(this, arguments);
|
|
1486
1485
|
}
|
|
1487
1486
|
|
|
1488
1487
|
return unlockApplication;
|
|
@@ -1490,7 +1489,7 @@ exports.default = {
|
|
|
1490
1489
|
|
|
1491
1490
|
//
|
|
1492
1491
|
getApplication: function () {
|
|
1493
|
-
var
|
|
1492
|
+
var _ref23 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19(client, applicationId, fragments, params) {
|
|
1494
1493
|
var query;
|
|
1495
1494
|
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
1496
1495
|
while (1) {
|
|
@@ -1512,7 +1511,7 @@ exports.default = {
|
|
|
1512
1511
|
}));
|
|
1513
1512
|
|
|
1514
1513
|
function getApplication(_x45, _x46, _x47, _x48) {
|
|
1515
|
-
return
|
|
1514
|
+
return _ref23.apply(this, arguments);
|
|
1516
1515
|
}
|
|
1517
1516
|
|
|
1518
1517
|
return getApplication;
|
|
@@ -1520,7 +1519,7 @@ exports.default = {
|
|
|
1520
1519
|
|
|
1521
1520
|
//
|
|
1522
1521
|
getApplicationSource: function () {
|
|
1523
|
-
var
|
|
1522
|
+
var _ref24 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20(client, sourceId, fragments, limits) {
|
|
1524
1523
|
var query;
|
|
1525
1524
|
return regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
1526
1525
|
while (1) {
|
|
@@ -1542,7 +1541,7 @@ exports.default = {
|
|
|
1542
1541
|
}));
|
|
1543
1542
|
|
|
1544
1543
|
function getApplicationSource(_x49, _x50, _x51, _x52) {
|
|
1545
|
-
return
|
|
1544
|
+
return _ref24.apply(this, arguments);
|
|
1546
1545
|
}
|
|
1547
1546
|
|
|
1548
1547
|
return getApplicationSource;
|
|
@@ -1550,7 +1549,7 @@ exports.default = {
|
|
|
1550
1549
|
|
|
1551
1550
|
//
|
|
1552
1551
|
getApplicationProtections: function () {
|
|
1553
|
-
var
|
|
1552
|
+
var _ref25 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21(client, applicationId, params, fragments) {
|
|
1554
1553
|
var query;
|
|
1555
1554
|
return regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
1556
1555
|
while (1) {
|
|
@@ -1572,7 +1571,7 @@ exports.default = {
|
|
|
1572
1571
|
}));
|
|
1573
1572
|
|
|
1574
1573
|
function getApplicationProtections(_x53, _x54, _x55, _x56) {
|
|
1575
|
-
return
|
|
1574
|
+
return _ref25.apply(this, arguments);
|
|
1576
1575
|
}
|
|
1577
1576
|
|
|
1578
1577
|
return getApplicationProtections;
|
|
@@ -1580,7 +1579,7 @@ exports.default = {
|
|
|
1580
1579
|
|
|
1581
1580
|
//
|
|
1582
1581
|
getApplicationProtectionsCount: function () {
|
|
1583
|
-
var
|
|
1582
|
+
var _ref26 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22(client, applicationId, fragments) {
|
|
1584
1583
|
var query;
|
|
1585
1584
|
return regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
1586
1585
|
while (1) {
|
|
@@ -1602,7 +1601,7 @@ exports.default = {
|
|
|
1602
1601
|
}));
|
|
1603
1602
|
|
|
1604
1603
|
function getApplicationProtectionsCount(_x57, _x58, _x59) {
|
|
1605
|
-
return
|
|
1604
|
+
return _ref26.apply(this, arguments);
|
|
1606
1605
|
}
|
|
1607
1606
|
|
|
1608
1607
|
return getApplicationProtectionsCount;
|
|
@@ -1610,7 +1609,7 @@ exports.default = {
|
|
|
1610
1609
|
|
|
1611
1610
|
//
|
|
1612
1611
|
createTemplate: function () {
|
|
1613
|
-
var
|
|
1612
|
+
var _ref27 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23(client, template, fragments) {
|
|
1614
1613
|
var mutation;
|
|
1615
1614
|
return regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
1616
1615
|
while (1) {
|
|
@@ -1632,7 +1631,7 @@ exports.default = {
|
|
|
1632
1631
|
}));
|
|
1633
1632
|
|
|
1634
1633
|
function createTemplate(_x60, _x61, _x62) {
|
|
1635
|
-
return
|
|
1634
|
+
return _ref27.apply(this, arguments);
|
|
1636
1635
|
}
|
|
1637
1636
|
|
|
1638
1637
|
return createTemplate;
|
|
@@ -1640,7 +1639,7 @@ exports.default = {
|
|
|
1640
1639
|
|
|
1641
1640
|
//
|
|
1642
1641
|
removeTemplate: function () {
|
|
1643
|
-
var
|
|
1642
|
+
var _ref28 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee24(client, id) {
|
|
1644
1643
|
var mutation;
|
|
1645
1644
|
return regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
1646
1645
|
while (1) {
|
|
@@ -1662,7 +1661,7 @@ exports.default = {
|
|
|
1662
1661
|
}));
|
|
1663
1662
|
|
|
1664
1663
|
function removeTemplate(_x63, _x64) {
|
|
1665
|
-
return
|
|
1664
|
+
return _ref28.apply(this, arguments);
|
|
1666
1665
|
}
|
|
1667
1666
|
|
|
1668
1667
|
return removeTemplate;
|
|
@@ -1670,7 +1669,7 @@ exports.default = {
|
|
|
1670
1669
|
|
|
1671
1670
|
//
|
|
1672
1671
|
getTemplates: function () {
|
|
1673
|
-
var
|
|
1672
|
+
var _ref29 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25(client, fragments) {
|
|
1674
1673
|
var query;
|
|
1675
1674
|
return regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
1676
1675
|
while (1) {
|
|
@@ -1692,7 +1691,7 @@ exports.default = {
|
|
|
1692
1691
|
}));
|
|
1693
1692
|
|
|
1694
1693
|
function getTemplates(_x65, _x66) {
|
|
1695
|
-
return
|
|
1694
|
+
return _ref29.apply(this, arguments);
|
|
1696
1695
|
}
|
|
1697
1696
|
|
|
1698
1697
|
return getTemplates;
|
|
@@ -1700,7 +1699,7 @@ exports.default = {
|
|
|
1700
1699
|
|
|
1701
1700
|
//
|
|
1702
1701
|
getApplications: function () {
|
|
1703
|
-
var
|
|
1702
|
+
var _ref30 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26(client, fragments, params) {
|
|
1704
1703
|
var query;
|
|
1705
1704
|
return regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
1706
1705
|
while (1) {
|
|
@@ -1722,7 +1721,7 @@ exports.default = {
|
|
|
1722
1721
|
}));
|
|
1723
1722
|
|
|
1724
1723
|
function getApplications(_x67, _x68, _x69) {
|
|
1725
|
-
return
|
|
1724
|
+
return _ref30.apply(this, arguments);
|
|
1726
1725
|
}
|
|
1727
1726
|
|
|
1728
1727
|
return getApplications;
|
|
@@ -1730,7 +1729,7 @@ exports.default = {
|
|
|
1730
1729
|
|
|
1731
1730
|
//
|
|
1732
1731
|
addApplicationSource: function () {
|
|
1733
|
-
var
|
|
1732
|
+
var _ref31 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee27(client, applicationId, applicationSource, fragments) {
|
|
1734
1733
|
var mutation;
|
|
1735
1734
|
return regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
1736
1735
|
while (1) {
|
|
@@ -1754,7 +1753,7 @@ exports.default = {
|
|
|
1754
1753
|
}));
|
|
1755
1754
|
|
|
1756
1755
|
function addApplicationSource(_x70, _x71, _x72, _x73) {
|
|
1757
|
-
return
|
|
1756
|
+
return _ref31.apply(this, arguments);
|
|
1758
1757
|
}
|
|
1759
1758
|
|
|
1760
1759
|
return addApplicationSource;
|
|
@@ -1762,7 +1761,7 @@ exports.default = {
|
|
|
1762
1761
|
|
|
1763
1762
|
//
|
|
1764
1763
|
addApplicationSourceFromURL: function () {
|
|
1765
|
-
var
|
|
1764
|
+
var _ref32 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28(client, applicationId, url, fragments) {
|
|
1766
1765
|
var file, mutation;
|
|
1767
1766
|
return regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
1768
1767
|
while (1) {
|
|
@@ -1789,7 +1788,7 @@ exports.default = {
|
|
|
1789
1788
|
}));
|
|
1790
1789
|
|
|
1791
1790
|
function addApplicationSourceFromURL(_x74, _x75, _x76, _x77) {
|
|
1792
|
-
return
|
|
1791
|
+
return _ref32.apply(this, arguments);
|
|
1793
1792
|
}
|
|
1794
1793
|
|
|
1795
1794
|
return addApplicationSourceFromURL;
|
|
@@ -1797,7 +1796,7 @@ exports.default = {
|
|
|
1797
1796
|
|
|
1798
1797
|
//
|
|
1799
1798
|
updateApplicationSource: function () {
|
|
1800
|
-
var
|
|
1799
|
+
var _ref33 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee29(client, applicationSource, fragments) {
|
|
1801
1800
|
var mutation;
|
|
1802
1801
|
return regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
1803
1802
|
while (1) {
|
|
@@ -1819,7 +1818,7 @@ exports.default = {
|
|
|
1819
1818
|
}));
|
|
1820
1819
|
|
|
1821
1820
|
function updateApplicationSource(_x78, _x79, _x80) {
|
|
1822
|
-
return
|
|
1821
|
+
return _ref33.apply(this, arguments);
|
|
1823
1822
|
}
|
|
1824
1823
|
|
|
1825
1824
|
return updateApplicationSource;
|
|
@@ -1827,7 +1826,7 @@ exports.default = {
|
|
|
1827
1826
|
|
|
1828
1827
|
//
|
|
1829
1828
|
removeSourceFromApplication: function () {
|
|
1830
|
-
var
|
|
1829
|
+
var _ref34 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee30(client, sourceId, applicationId, fragments) {
|
|
1831
1830
|
var mutation;
|
|
1832
1831
|
return regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
1833
1832
|
while (1) {
|
|
@@ -1851,7 +1850,7 @@ exports.default = {
|
|
|
1851
1850
|
}));
|
|
1852
1851
|
|
|
1853
1852
|
function removeSourceFromApplication(_x81, _x82, _x83, _x84) {
|
|
1854
|
-
return
|
|
1853
|
+
return _ref34.apply(this, arguments);
|
|
1855
1854
|
}
|
|
1856
1855
|
|
|
1857
1856
|
return removeSourceFromApplication;
|
|
@@ -1859,7 +1858,7 @@ exports.default = {
|
|
|
1859
1858
|
|
|
1860
1859
|
//
|
|
1861
1860
|
applyTemplate: function () {
|
|
1862
|
-
var
|
|
1861
|
+
var _ref35 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee31(client, templateId, appId, fragments) {
|
|
1863
1862
|
var mutation;
|
|
1864
1863
|
return regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
1865
1864
|
while (1) {
|
|
@@ -1881,7 +1880,7 @@ exports.default = {
|
|
|
1881
1880
|
}));
|
|
1882
1881
|
|
|
1883
1882
|
function applyTemplate(_x85, _x86, _x87, _x88) {
|
|
1884
|
-
return
|
|
1883
|
+
return _ref35.apply(this, arguments);
|
|
1885
1884
|
}
|
|
1886
1885
|
|
|
1887
1886
|
return applyTemplate;
|
|
@@ -1889,7 +1888,7 @@ exports.default = {
|
|
|
1889
1888
|
|
|
1890
1889
|
//
|
|
1891
1890
|
updateTemplate: function () {
|
|
1892
|
-
var
|
|
1891
|
+
var _ref36 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee32(client, template, fragments) {
|
|
1893
1892
|
var mutation;
|
|
1894
1893
|
return regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
1895
1894
|
while (1) {
|
|
@@ -1911,13 +1910,13 @@ exports.default = {
|
|
|
1911
1910
|
}));
|
|
1912
1911
|
|
|
1913
1912
|
function updateTemplate(_x89, _x90, _x91) {
|
|
1914
|
-
return
|
|
1913
|
+
return _ref36.apply(this, arguments);
|
|
1915
1914
|
}
|
|
1916
1915
|
|
|
1917
1916
|
return updateTemplate;
|
|
1918
1917
|
}(),
|
|
1919
1918
|
getApplicationProfiling: function () {
|
|
1920
|
-
var
|
|
1919
|
+
var _ref37 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee33(client, applicationId) {
|
|
1921
1920
|
return regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
1922
1921
|
while (1) {
|
|
1923
1922
|
switch (_context33.prev = _context33.next) {
|
|
@@ -1933,13 +1932,13 @@ exports.default = {
|
|
|
1933
1932
|
}));
|
|
1934
1933
|
|
|
1935
1934
|
function getApplicationProfiling(_x92, _x93) {
|
|
1936
|
-
return
|
|
1935
|
+
return _ref37.apply(this, arguments);
|
|
1937
1936
|
}
|
|
1938
1937
|
|
|
1939
1938
|
return getApplicationProfiling;
|
|
1940
1939
|
}(),
|
|
1941
1940
|
deleteProfiling: function () {
|
|
1942
|
-
var
|
|
1941
|
+
var _ref38 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee34(client, profilingId) {
|
|
1943
1942
|
return regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
1944
1943
|
while (1) {
|
|
1945
1944
|
switch (_context34.prev = _context34.next) {
|
|
@@ -1957,7 +1956,7 @@ exports.default = {
|
|
|
1957
1956
|
}));
|
|
1958
1957
|
|
|
1959
1958
|
function deleteProfiling(_x94, _x95) {
|
|
1960
|
-
return
|
|
1959
|
+
return _ref38.apply(this, arguments);
|
|
1961
1960
|
}
|
|
1962
1961
|
|
|
1963
1962
|
return deleteProfiling;
|
|
@@ -1971,7 +1970,7 @@ exports.default = {
|
|
|
1971
1970
|
* @returns {Promise<*>}
|
|
1972
1971
|
*/
|
|
1973
1972
|
startInstrumentation: function () {
|
|
1974
|
-
var
|
|
1973
|
+
var _ref39 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee35(client, applicationId) {
|
|
1975
1974
|
var instrumentation;
|
|
1976
1975
|
return regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
1977
1976
|
while (1) {
|
|
@@ -2005,7 +2004,7 @@ exports.default = {
|
|
|
2005
2004
|
}));
|
|
2006
2005
|
|
|
2007
2006
|
function startInstrumentation(_x96, _x97) {
|
|
2008
|
-
return
|
|
2007
|
+
return _ref39.apply(this, arguments);
|
|
2009
2008
|
}
|
|
2010
2009
|
|
|
2011
2010
|
return startInstrumentation;
|
|
@@ -2013,8 +2012,8 @@ exports.default = {
|
|
|
2013
2012
|
|
|
2014
2013
|
//
|
|
2015
2014
|
createApplicationProtection: function () {
|
|
2016
|
-
var
|
|
2017
|
-
var
|
|
2015
|
+
var _ref40 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee36(client, applicationId, protectionOptions, fragments) {
|
|
2016
|
+
var _ref41, args, mutation;
|
|
2018
2017
|
|
|
2019
2018
|
return regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
2020
2019
|
while (1) {
|
|
@@ -2024,8 +2023,8 @@ exports.default = {
|
|
|
2024
2023
|
return introspection.mutation(client, 'createApplicationProtection');
|
|
2025
2024
|
|
|
2026
2025
|
case 2:
|
|
2027
|
-
|
|
2028
|
-
args =
|
|
2026
|
+
_ref41 = _context36.sent;
|
|
2027
|
+
args = _ref41.args;
|
|
2029
2028
|
_context36.next = 6;
|
|
2030
2029
|
return mutations.createApplicationProtection(applicationId, fragments, protectionOptions, args);
|
|
2031
2030
|
|
|
@@ -2042,7 +2041,7 @@ exports.default = {
|
|
|
2042
2041
|
}));
|
|
2043
2042
|
|
|
2044
2043
|
function createApplicationProtection(_x98, _x99, _x100, _x101) {
|
|
2045
|
-
return
|
|
2044
|
+
return _ref40.apply(this, arguments);
|
|
2046
2045
|
}
|
|
2047
2046
|
|
|
2048
2047
|
return createApplicationProtection;
|
|
@@ -2054,7 +2053,7 @@ exports.default = {
|
|
|
2054
2053
|
* @returns {Promise<object>}
|
|
2055
2054
|
*/
|
|
2056
2055
|
getInstrumentation: function () {
|
|
2057
|
-
var
|
|
2056
|
+
var _ref42 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee37(client, instrumentationId) {
|
|
2058
2057
|
return regeneratorRuntime.wrap(function _callee37$(_context37) {
|
|
2059
2058
|
while (1) {
|
|
2060
2059
|
switch (_context37.prev = _context37.next) {
|
|
@@ -2070,7 +2069,7 @@ exports.default = {
|
|
|
2070
2069
|
}));
|
|
2071
2070
|
|
|
2072
2071
|
function getInstrumentation(_x102, _x103) {
|
|
2073
|
-
return
|
|
2072
|
+
return _ref42.apply(this, arguments);
|
|
2074
2073
|
}
|
|
2075
2074
|
|
|
2076
2075
|
return getInstrumentation;
|
|
@@ -2078,7 +2077,7 @@ exports.default = {
|
|
|
2078
2077
|
|
|
2079
2078
|
//
|
|
2080
2079
|
getApplicationProtection: function () {
|
|
2081
|
-
var
|
|
2080
|
+
var _ref43 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee38(client, applicationId, protectionId, fragments) {
|
|
2082
2081
|
var query;
|
|
2083
2082
|
return regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
2084
2083
|
while (1) {
|
|
@@ -2100,7 +2099,7 @@ exports.default = {
|
|
|
2100
2099
|
}));
|
|
2101
2100
|
|
|
2102
2101
|
function getApplicationProtection(_x104, _x105, _x106, _x107) {
|
|
2103
|
-
return
|
|
2102
|
+
return _ref43.apply(this, arguments);
|
|
2104
2103
|
}
|
|
2105
2104
|
|
|
2106
2105
|
return getApplicationProtection;
|
|
@@ -2108,7 +2107,7 @@ exports.default = {
|
|
|
2108
2107
|
|
|
2109
2108
|
//
|
|
2110
2109
|
downloadSourceMapsRequest: function () {
|
|
2111
|
-
var
|
|
2110
|
+
var _ref44 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee39(client, protectionId) {
|
|
2112
2111
|
return regeneratorRuntime.wrap(function _callee39$(_context39) {
|
|
2113
2112
|
while (1) {
|
|
2114
2113
|
switch (_context39.prev = _context39.next) {
|
|
@@ -2124,13 +2123,13 @@ exports.default = {
|
|
|
2124
2123
|
}));
|
|
2125
2124
|
|
|
2126
2125
|
function downloadSourceMapsRequest(_x108, _x109) {
|
|
2127
|
-
return
|
|
2126
|
+
return _ref44.apply(this, arguments);
|
|
2128
2127
|
}
|
|
2129
2128
|
|
|
2130
2129
|
return downloadSourceMapsRequest;
|
|
2131
2130
|
}(),
|
|
2132
2131
|
downloadSymbolTableRequest: function () {
|
|
2133
|
-
var
|
|
2132
|
+
var _ref45 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee40(client, protectionId) {
|
|
2134
2133
|
return regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
2135
2134
|
while (1) {
|
|
2136
2135
|
switch (_context40.prev = _context40.next) {
|
|
@@ -2146,7 +2145,7 @@ exports.default = {
|
|
|
2146
2145
|
}));
|
|
2147
2146
|
|
|
2148
2147
|
function downloadSymbolTableRequest(_x110, _x111) {
|
|
2149
|
-
return
|
|
2148
|
+
return _ref45.apply(this, arguments);
|
|
2150
2149
|
}
|
|
2151
2150
|
|
|
2152
2151
|
return downloadSymbolTableRequest;
|
|
@@ -2154,7 +2153,7 @@ exports.default = {
|
|
|
2154
2153
|
|
|
2155
2154
|
//
|
|
2156
2155
|
downloadApplicationProtection: function () {
|
|
2157
|
-
var
|
|
2156
|
+
var _ref46 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee41(client, protectionId) {
|
|
2158
2157
|
return regeneratorRuntime.wrap(function _callee41$(_context41) {
|
|
2159
2158
|
while (1) {
|
|
2160
2159
|
switch (_context41.prev = _context41.next) {
|
|
@@ -2170,7 +2169,7 @@ exports.default = {
|
|
|
2170
2169
|
}));
|
|
2171
2170
|
|
|
2172
2171
|
function downloadApplicationProtection(_x112, _x113) {
|
|
2173
|
-
return
|
|
2172
|
+
return _ref46.apply(this, arguments);
|
|
2174
2173
|
}
|
|
2175
2174
|
|
|
2176
2175
|
return downloadApplicationProtection;
|
|
@@ -2194,7 +2193,7 @@ exports.default = {
|
|
|
2194
2193
|
* @returns {Boolean} true if the field is supported, false otherwise
|
|
2195
2194
|
*/
|
|
2196
2195
|
introspectFieldOnMethod: function () {
|
|
2197
|
-
var
|
|
2196
|
+
var _ref47 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee42(config, queryOrMutation, methodName, field) {
|
|
2198
2197
|
var instrospectionType, client, result, dataArg, isFieldSupported;
|
|
2199
2198
|
return regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
2200
2199
|
while (1) {
|
|
@@ -2234,7 +2233,7 @@ exports.default = {
|
|
|
2234
2233
|
}));
|
|
2235
2234
|
|
|
2236
2235
|
function introspectFieldOnMethod(_x114, _x115, _x116, _x117) {
|
|
2237
|
-
return
|
|
2236
|
+
return _ref47.apply(this, arguments);
|
|
2238
2237
|
}
|
|
2239
2238
|
|
|
2240
2239
|
return introspectFieldOnMethod;
|