jscrambler 6.0.1 → 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.
Files changed (2) hide show
  1. package/dist/index.js +163 -159
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
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"); } }; }();
8
+
7
9
  require('babel-polyfill');
8
10
 
9
11
  var _path = require('path');
@@ -154,45 +156,43 @@ exports.default = {
154
156
  */
155
157
  updateApplicationSources: function () {
156
158
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(client, applicationId, _ref) {
159
+ var _this = this;
160
+
157
161
  var sources = _ref.sources,
158
162
  filesSrc = _ref.filesSrc,
159
163
  cwd = _ref.cwd,
160
164
  appProfiling = _ref.appProfiling;
161
165
 
162
- var removeSourceRes, zipped, source, _filesSrc, i, l, content;
166
+ var promise, zipped, source, _filesSrc, i, l, content;
163
167
 
164
168
  return regeneratorRuntime.wrap(function _callee$(_context) {
165
169
  while (1) {
166
170
  switch (_context.prev = _context.next) {
167
171
  case 0:
172
+ promise = null;
173
+
168
174
  if (!(sources || filesSrc && filesSrc.length)) {
169
- _context.next = 7;
175
+ _context.next = 5;
170
176
  break;
171
177
  }
172
178
 
173
179
  if (!(appProfiling && appProfiling.data && appProfiling.data.state === 'READY')) {
174
- _context.next = 3;
180
+ _context.next = 4;
175
181
  break;
176
182
  }
177
183
 
178
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*.');
179
185
 
180
- case 3:
181
- _context.next = 5;
182
- return this.removeSourceFromApplication(client, '', applicationId);
183
-
184
- case 5:
185
- removeSourceRes = _context.sent;
186
-
186
+ case 4:
187
187
 
188
- errorHandler(removeSourceRes);
188
+ promise = this.removeSourceFromApplication(client, '', applicationId);
189
189
 
190
- case 7:
190
+ case 5:
191
191
  zipped = void 0;
192
192
  source = void 0;
193
193
 
194
194
  if (!(filesSrc && filesSrc.length)) {
195
- _context.next = 18;
195
+ _context.next = 16;
196
196
  break;
197
197
  }
198
198
 
@@ -210,17 +210,17 @@ exports.default = {
210
210
  console.log('Creating zip from source files');
211
211
  }
212
212
 
213
- _context.next = 15;
213
+ _context.next = 13;
214
214
  return (0, _zip.zip)(_filesSrc, cwd);
215
215
 
216
- case 15:
216
+ case 13:
217
217
  zipped = _context.sent;
218
- _context.next = 23;
218
+ _context.next = 21;
219
219
  break;
220
220
 
221
- case 18:
221
+ case 16:
222
222
  if (!sources) {
223
- _context.next = 23;
223
+ _context.next = 21;
224
224
  break;
225
225
  }
226
226
 
@@ -228,24 +228,24 @@ exports.default = {
228
228
  console.log('Creating zip from sources');
229
229
  }
230
230
 
231
- _context.next = 22;
231
+ _context.next = 20;
232
232
  return (0, _zip.zipSources)(sources);
233
233
 
234
- case 22:
234
+ case 20:
235
235
  zipped = _context.sent;
236
236
 
237
- case 23:
237
+ case 21:
238
238
  if (!zipped) {
239
- _context.next = 34;
239
+ _context.next = 28;
240
240
  break;
241
241
  }
242
242
 
243
- _context.next = 26;
243
+ _context.next = 24;
244
244
  return zipped.generateAsync({
245
245
  type: 'base64'
246
246
  });
247
247
 
248
- case 26:
248
+ case 24:
249
249
  content = _context.sent;
250
250
 
251
251
 
@@ -259,18 +259,18 @@ exports.default = {
259
259
  extension: 'zip'
260
260
  };
261
261
 
262
- _context.t0 = errorHandler;
263
- _context.next = 32;
264
- return this.addApplicationSource(client, applicationId, source);
262
+ promise.then(function (removeRes) {
263
+ errorHandler(removeRes);
265
264
 
266
- case 32:
267
- _context.t1 = _context.sent;
268
- (0, _context.t0)(_context.t1);
265
+ return _this.addApplicationSource(client, applicationId, source);
266
+ }).then(errorHandler).catch(function (e) {
267
+ console.warn('Update application sources failed with ' + e.message);
268
+ });
269
269
 
270
- case 34:
271
- return _context.abrupt('return', source);
270
+ case 28:
271
+ return _context.abrupt('return', { source: source, promise: promise });
272
272
 
273
- case 35:
273
+ case 29:
274
274
  case 'end':
275
275
  return _context.stop();
276
276
  }
@@ -330,9 +330,9 @@ exports.default = {
330
330
  //
331
331
  protectAndDownload: function () {
332
332
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(configPathOrObject, destCallback) {
333
- var _this = this;
333
+ var _this2 = this;
334
334
 
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, 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;
336
336
 
337
337
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
338
338
  while (1) {
@@ -382,10 +382,10 @@ exports.default = {
382
382
  throw new Error('Required *filesDest* not provided');
383
383
 
384
384
  case 12:
385
- source = void 0;
385
+ source = void 0, updateApplicationSourcePromise = void 0;
386
386
 
387
387
  if (skipSources) {
388
- _context2.next = 26;
388
+ _context2.next = 28;
389
389
  break;
390
390
  }
391
391
 
@@ -418,14 +418,16 @@ exports.default = {
418
418
  });
419
419
 
420
420
  case 23:
421
- source = _context2.sent;
422
- _context2.next = 27;
421
+ _ref4 = _context2.sent;
422
+ source = _ref4.source;
423
+ updateApplicationSourcePromise = _ref4.promise;
424
+ _context2.next = 29;
423
425
  break;
424
426
 
425
- case 26:
427
+ case 28:
426
428
  console.log('Update source files SKIPPED');
427
429
 
428
- case 27:
430
+ case 29:
429
431
  updateData = {
430
432
  _id: applicationId,
431
433
  debugMode: !!debugMode,
@@ -461,7 +463,7 @@ exports.default = {
461
463
  }
462
464
 
463
465
  if (!(updateData.parameters || updateData.applicationTypes || updateData.languageSpecifications || updateData.browsers || typeof updateData.areSubscribersOrdered !== 'undefined')) {
464
- _context2.next = 41;
466
+ _context2.next = 43;
465
467
  break;
466
468
  }
467
469
 
@@ -469,15 +471,15 @@ exports.default = {
469
471
  console.log('Updating parameters of protection');
470
472
  }
471
473
 
472
- _context2.next = 35;
474
+ _context2.next = 37;
473
475
  return intoObjectType(client, updateData, 'Application');
474
476
 
475
- case 35:
477
+ case 37:
476
478
  applicationUpdate = _context2.sent;
477
- _context2.next = 38;
479
+ _context2.next = 40;
478
480
  return this.updateApplication(client, applicationUpdate);
479
481
 
480
- case 38:
482
+ case 40:
481
483
  updateApplicationRes = _context2.sent;
482
484
 
483
485
  if (debug) {
@@ -486,7 +488,7 @@ exports.default = {
486
488
  }
487
489
  errorHandler(updateApplicationRes);
488
490
 
489
- case 41:
491
+ case 43:
490
492
 
491
493
  if (debug) {
492
494
  console.log('Creating Application Protection');
@@ -514,18 +516,20 @@ exports.default = {
514
516
  protectionOptions.inputSymbolTable = inputSymbolTableContents;
515
517
  }
516
518
 
517
- _context2.next = 47;
518
- return this.createApplicationProtection(client, applicationId, protectionOptions);
519
+ _context2.next = 49;
520
+ return Promise.all([this.createApplicationProtection(client, applicationId, protectionOptions), updateApplicationSourcePromise]);
519
521
 
520
- case 47:
521
- createApplicationProtectionRes = _context2.sent;
522
+ case 49:
523
+ _ref5 = _context2.sent;
524
+ _ref6 = _slicedToArray(_ref5, 1);
525
+ createApplicationProtectionRes = _ref6[0];
522
526
 
523
527
  errorHandler(createApplicationProtectionRes);
524
528
 
525
529
  protectionId = createApplicationProtectionRes.data.createApplicationProtection._id;
526
530
 
527
531
  onExitCancelProtection = function onExitCancelProtection() {
528
- _this.cancelProtection(client, protectionId, applicationId).then(function () {
532
+ _this2.cancelProtection(client, protectionId, applicationId).then(function () {
529
533
  return console.log('\n** Protection %s WAS CANCELLED **', protectionId);
530
534
  }).catch(function () {
531
535
  return debug && console.error(e);
@@ -540,15 +544,15 @@ exports.default = {
540
544
  _context2.t1 = client;
541
545
  _context2.t2 = applicationId;
542
546
  _context2.t3 = protectionId;
543
- _context2.next = 58;
547
+ _context2.next = 62;
544
548
  return (0, _getProtectionDefaultFragments2.default)(client);
545
549
 
546
- case 58:
550
+ case 62:
547
551
  _context2.t4 = _context2.sent;
548
- _context2.next = 61;
552
+ _context2.next = 65;
549
553
  return _context2.t0.pollProtection.call(_context2.t0, _context2.t1, _context2.t2, _context2.t3, _context2.t4);
550
554
 
551
- case 61:
555
+ case 65:
552
556
  protection = _context2.sent;
553
557
 
554
558
 
@@ -585,7 +589,7 @@ exports.default = {
585
589
  });
586
590
 
587
591
  if (!(protection.state === 'errored')) {
588
- _context2.next = 76;
592
+ _context2.next = 80;
589
593
  break;
590
594
  }
591
595
 
@@ -597,34 +601,34 @@ exports.default = {
597
601
  }
598
602
  throw new Error('Protection failed. For more information visit: ' + APP_URL + '.');
599
603
 
600
- case 76:
604
+ case 80:
601
605
  if (!(sourcesErrors.length > 0)) {
602
- _context2.next = 83;
606
+ _context2.next = 87;
603
607
  break;
604
608
  }
605
609
 
606
610
  if (!protection.bail) {
607
- _context2.next = 82;
611
+ _context2.next = 86;
608
612
  break;
609
613
  }
610
614
 
611
615
  printSourcesErrors(sourcesErrors);
612
616
  throw new Error('Your protection has failed.');
613
617
 
614
- case 82:
618
+ case 86:
615
619
  sourcesErrors.forEach(function (e) {
616
620
  return console.warn('Non-fatal error: "' + e.message + '" in ' + e.filename);
617
621
  });
618
622
 
619
- case 83:
623
+ case 87:
620
624
 
621
625
  if (debug) {
622
626
  console.log('Downloading protection result');
623
627
  }
624
- _context2.next = 86;
628
+ _context2.next = 90;
625
629
  return this.downloadApplicationProtection(client, protectionId);
626
630
 
627
- case 86:
631
+ case 90:
628
632
  download = _context2.sent;
629
633
 
630
634
 
@@ -634,10 +638,10 @@ exports.default = {
634
638
  console.log('Unzipping files');
635
639
  }
636
640
 
637
- _context2.next = 91;
641
+ _context2.next = 95;
638
642
  return (0, _zip.unzip)(download, filesDest || destCallback, stream);
639
643
 
640
- case 91:
644
+ case 95:
641
645
 
642
646
  if (debug) {
643
647
  console.log('Finished unzipping files');
@@ -647,7 +651,7 @@ exports.default = {
647
651
 
648
652
  return _context2.abrupt('return', protectionId);
649
653
 
650
- case 94:
654
+ case 98:
651
655
  case 'end':
652
656
  return _context2.stop();
653
657
  }
@@ -669,8 +673,8 @@ exports.default = {
669
673
  * @returns {Promise<string>}
670
674
  */
671
675
  instrumentAndDownload: function () {
672
- var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(configPathOrObject, destCallback) {
673
- var _this2 = this;
676
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(configPathOrObject, destCallback) {
677
+ var _this3 = this;
674
678
 
675
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;
676
680
 
@@ -750,7 +754,7 @@ exports.default = {
750
754
  errorHandler(instrumentation);
751
755
 
752
756
  onExitCancelInstrumentation = function onExitCancelInstrumentation() {
753
- _this2.deleteProfiling(client, instrumentation.data.id).then(function () {
757
+ _this3.deleteProfiling(client, instrumentation.data.id).then(function () {
754
758
  return console.log('\n** Instrumentation %s WAS CANCELLED **', instrumentation.data.id);
755
759
  }).catch(function () {
756
760
  return debug && console.error(e);
@@ -810,7 +814,7 @@ exports.default = {
810
814
  }));
811
815
 
812
816
  function instrumentAndDownload(_x6, _x7) {
813
- return _ref4.apply(this, arguments);
817
+ return _ref7.apply(this, arguments);
814
818
  }
815
819
 
816
820
  return instrumentAndDownload;
@@ -826,7 +830,7 @@ exports.default = {
826
830
  * @returns {Promise<string>} The previous state
827
831
  */
828
832
  setProfilingState: function () {
829
- var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(configPathOrObject, state, label, nextStepMessage) {
833
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(configPathOrObject, state, label, nextStepMessage) {
830
834
  var finalConfig, keys, host, port, basePath, protocol, cafile, applicationId, proxy, utc, jscramblerVersion, clientId, accessKey, secretKey, client, instrumentation, previousState;
831
835
  return regeneratorRuntime.wrap(function _callee4$(_context4) {
832
836
  while (1) {
@@ -893,13 +897,13 @@ exports.default = {
893
897
  }));
894
898
 
895
899
  function setProfilingState(_x8, _x9, _x10, _x11) {
896
- return _ref5.apply(this, arguments);
900
+ return _ref8.apply(this, arguments);
897
901
  }
898
902
 
899
903
  return setProfilingState;
900
904
  }(),
901
905
  downloadSourceMaps: function () {
902
- var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(configs, destCallback) {
906
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(configs, destCallback) {
903
907
  var keys, host, port, basePath, protocol, cafile, _configs$stream, stream, filesDest, filesSrc, protectionId, jscramblerVersion, utc, proxy, accessKey, secretKey, client, download;
904
908
 
905
909
  return regeneratorRuntime.wrap(function _callee5$(_context5) {
@@ -970,13 +974,13 @@ exports.default = {
970
974
  }));
971
975
 
972
976
  function downloadSourceMaps(_x12, _x13) {
973
- return _ref6.apply(this, arguments);
977
+ return _ref9.apply(this, arguments);
974
978
  }
975
979
 
976
980
  return downloadSourceMaps;
977
981
  }(),
978
982
  downloadSymbolTable: function () {
979
- var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(configs, destCallback) {
983
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(configs, destCallback) {
980
984
  var keys, host, port, basePath, protocol, cafile, _configs$stream2, stream, filesDest, filesSrc, protectionId, jscramblerVersion, utc, proxy, accessKey, secretKey, client, download;
981
985
 
982
986
  return regeneratorRuntime.wrap(function _callee6$(_context6) {
@@ -1051,7 +1055,7 @@ exports.default = {
1051
1055
  }));
1052
1056
 
1053
1057
  function downloadSymbolTable(_x14, _x15) {
1054
- return _ref7.apply(this, arguments);
1058
+ return _ref10.apply(this, arguments);
1055
1059
  }
1056
1060
 
1057
1061
  return downloadSymbolTable;
@@ -1066,8 +1070,8 @@ exports.default = {
1066
1070
  * @throws {Error} due to errors in instrumentation process or user cancel the operation
1067
1071
  */
1068
1072
  pollInstrumentation: function () {
1069
- var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(client, instrumentationId) {
1070
- var _this3 = this;
1073
+ var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(client, instrumentationId) {
1074
+ var _this4 = this;
1071
1075
 
1072
1076
  var start, poll;
1073
1077
  return regeneratorRuntime.wrap(function _callee8$(_context8) {
@@ -1077,14 +1081,14 @@ exports.default = {
1077
1081
  start = Date.now();
1078
1082
 
1079
1083
  poll = function () {
1080
- var _ref9 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
1084
+ var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
1081
1085
  var instrumentation;
1082
1086
  return regeneratorRuntime.wrap(function _callee7$(_context7) {
1083
1087
  while (1) {
1084
1088
  switch (_context7.prev = _context7.next) {
1085
1089
  case 0:
1086
1090
  _context7.next = 2;
1087
- return _this3.getInstrumentation(client, instrumentationId);
1091
+ return _this4.getInstrumentation(client, instrumentationId);
1088
1092
 
1089
1093
  case 2:
1090
1094
  instrumentation = _context7.sent;
@@ -1120,11 +1124,11 @@ exports.default = {
1120
1124
  return _context7.stop();
1121
1125
  }
1122
1126
  }
1123
- }, _callee7, _this3);
1127
+ }, _callee7, _this4);
1124
1128
  }));
1125
1129
 
1126
1130
  return function poll() {
1127
- return _ref9.apply(this, arguments);
1131
+ return _ref12.apply(this, arguments);
1128
1132
  };
1129
1133
  }();
1130
1134
 
@@ -1139,13 +1143,13 @@ exports.default = {
1139
1143
  }));
1140
1144
 
1141
1145
  function pollInstrumentation(_x16, _x17) {
1142
- return _ref8.apply(this, arguments);
1146
+ return _ref11.apply(this, arguments);
1143
1147
  }
1144
1148
 
1145
1149
  return pollInstrumentation;
1146
1150
  }(),
1147
1151
  withRetries: function () {
1148
- var _ref10 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(action) {
1152
+ var _ref13 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(action) {
1149
1153
  var retriesLeft;
1150
1154
  return regeneratorRuntime.wrap(function _callee9$(_context9) {
1151
1155
  while (1) {
@@ -1200,14 +1204,14 @@ exports.default = {
1200
1204
  }));
1201
1205
 
1202
1206
  function withRetries(_x18) {
1203
- return _ref10.apply(this, arguments);
1207
+ return _ref13.apply(this, arguments);
1204
1208
  }
1205
1209
 
1206
1210
  return withRetries;
1207
1211
  }(),
1208
1212
  pollProtection: function () {
1209
- var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(client, applicationId, protectionId, fragments) {
1210
- var _this4 = this;
1213
+ var _ref14 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(client, applicationId, protectionId, fragments) {
1214
+ var _this5 = this;
1211
1215
 
1212
1216
  var start, poll;
1213
1217
  return regeneratorRuntime.wrap(function _callee11$(_context11) {
@@ -1217,15 +1221,15 @@ exports.default = {
1217
1221
  start = Date.now();
1218
1222
 
1219
1223
  poll = function () {
1220
- var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
1224
+ var _ref15 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
1221
1225
  var applicationProtection, state;
1222
1226
  return regeneratorRuntime.wrap(function _callee10$(_context10) {
1223
1227
  while (1) {
1224
1228
  switch (_context10.prev = _context10.next) {
1225
1229
  case 0:
1226
1230
  _context10.next = 2;
1227
- return _this4.withRetries(function () {
1228
- return _this4.getApplicationProtection(client, applicationId, protectionId, fragments);
1231
+ return _this5.withRetries(function () {
1232
+ return _this5.getApplicationProtection(client, applicationId, protectionId, fragments);
1229
1233
  });
1230
1234
 
1231
1235
  case 2:
@@ -1272,11 +1276,11 @@ exports.default = {
1272
1276
  return _context10.stop();
1273
1277
  }
1274
1278
  }
1275
- }, _callee10, _this4);
1279
+ }, _callee10, _this5);
1276
1280
  }));
1277
1281
 
1278
1282
  return function poll() {
1279
- return _ref12.apply(this, arguments);
1283
+ return _ref15.apply(this, arguments);
1280
1284
  };
1281
1285
  }();
1282
1286
 
@@ -1291,7 +1295,7 @@ exports.default = {
1291
1295
  }));
1292
1296
 
1293
1297
  function pollProtection(_x19, _x20, _x21, _x22) {
1294
- return _ref11.apply(this, arguments);
1298
+ return _ref14.apply(this, arguments);
1295
1299
  }
1296
1300
 
1297
1301
  return pollProtection;
@@ -1299,7 +1303,7 @@ exports.default = {
1299
1303
 
1300
1304
  //
1301
1305
  createApplication: function () {
1302
- var _ref13 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(client, data, fragments) {
1306
+ var _ref16 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(client, data, fragments) {
1303
1307
  return regeneratorRuntime.wrap(function _callee12$(_context12) {
1304
1308
  while (1) {
1305
1309
  switch (_context12.prev = _context12.next) {
@@ -1315,7 +1319,7 @@ exports.default = {
1315
1319
  }));
1316
1320
 
1317
1321
  function createApplication(_x23, _x24, _x25) {
1318
- return _ref13.apply(this, arguments);
1322
+ return _ref16.apply(this, arguments);
1319
1323
  }
1320
1324
 
1321
1325
  return createApplication;
@@ -1323,7 +1327,7 @@ exports.default = {
1323
1327
 
1324
1328
  //
1325
1329
  duplicateApplication: function () {
1326
- var _ref14 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(client, data, fragments) {
1330
+ var _ref17 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(client, data, fragments) {
1327
1331
  return regeneratorRuntime.wrap(function _callee13$(_context13) {
1328
1332
  while (1) {
1329
1333
  switch (_context13.prev = _context13.next) {
@@ -1339,7 +1343,7 @@ exports.default = {
1339
1343
  }));
1340
1344
 
1341
1345
  function duplicateApplication(_x26, _x27, _x28) {
1342
- return _ref14.apply(this, arguments);
1346
+ return _ref17.apply(this, arguments);
1343
1347
  }
1344
1348
 
1345
1349
  return duplicateApplication;
@@ -1347,7 +1351,7 @@ exports.default = {
1347
1351
 
1348
1352
  //
1349
1353
  removeApplication: function () {
1350
- var _ref15 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(client, id) {
1354
+ var _ref18 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(client, id) {
1351
1355
  return regeneratorRuntime.wrap(function _callee14$(_context14) {
1352
1356
  while (1) {
1353
1357
  switch (_context14.prev = _context14.next) {
@@ -1363,7 +1367,7 @@ exports.default = {
1363
1367
  }));
1364
1368
 
1365
1369
  function removeApplication(_x29, _x30) {
1366
- return _ref15.apply(this, arguments);
1370
+ return _ref18.apply(this, arguments);
1367
1371
  }
1368
1372
 
1369
1373
  return removeApplication;
@@ -1371,7 +1375,7 @@ exports.default = {
1371
1375
 
1372
1376
  //
1373
1377
  removeProtection: function () {
1374
- var _ref16 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(client, id, appId, fragments) {
1378
+ var _ref19 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(client, id, appId, fragments) {
1375
1379
  return regeneratorRuntime.wrap(function _callee15$(_context15) {
1376
1380
  while (1) {
1377
1381
  switch (_context15.prev = _context15.next) {
@@ -1387,7 +1391,7 @@ exports.default = {
1387
1391
  }));
1388
1392
 
1389
1393
  function removeProtection(_x31, _x32, _x33, _x34) {
1390
- return _ref16.apply(this, arguments);
1394
+ return _ref19.apply(this, arguments);
1391
1395
  }
1392
1396
 
1393
1397
  return removeProtection;
@@ -1395,7 +1399,7 @@ exports.default = {
1395
1399
 
1396
1400
  //
1397
1401
  cancelProtection: function () {
1398
- var _ref17 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(client, id, appId, fragments) {
1402
+ var _ref20 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(client, id, appId, fragments) {
1399
1403
  var mutation;
1400
1404
  return regeneratorRuntime.wrap(function _callee16$(_context16) {
1401
1405
  while (1) {
@@ -1417,7 +1421,7 @@ exports.default = {
1417
1421
  }));
1418
1422
 
1419
1423
  function cancelProtection(_x35, _x36, _x37, _x38) {
1420
- return _ref17.apply(this, arguments);
1424
+ return _ref20.apply(this, arguments);
1421
1425
  }
1422
1426
 
1423
1427
  return cancelProtection;
@@ -1425,7 +1429,7 @@ exports.default = {
1425
1429
 
1426
1430
  //
1427
1431
  updateApplication: function () {
1428
- var _ref18 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17(client, application, fragments) {
1432
+ var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17(client, application, fragments) {
1429
1433
  var mutation;
1430
1434
  return regeneratorRuntime.wrap(function _callee17$(_context17) {
1431
1435
  while (1) {
@@ -1447,7 +1451,7 @@ exports.default = {
1447
1451
  }));
1448
1452
 
1449
1453
  function updateApplication(_x39, _x40, _x41) {
1450
- return _ref18.apply(this, arguments);
1454
+ return _ref21.apply(this, arguments);
1451
1455
  }
1452
1456
 
1453
1457
  return updateApplication;
@@ -1455,7 +1459,7 @@ exports.default = {
1455
1459
 
1456
1460
  //
1457
1461
  unlockApplication: function () {
1458
- var _ref19 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18(client, application, fragments) {
1462
+ var _ref22 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18(client, application, fragments) {
1459
1463
  var mutation;
1460
1464
  return regeneratorRuntime.wrap(function _callee18$(_context18) {
1461
1465
  while (1) {
@@ -1477,7 +1481,7 @@ exports.default = {
1477
1481
  }));
1478
1482
 
1479
1483
  function unlockApplication(_x42, _x43, _x44) {
1480
- return _ref19.apply(this, arguments);
1484
+ return _ref22.apply(this, arguments);
1481
1485
  }
1482
1486
 
1483
1487
  return unlockApplication;
@@ -1485,7 +1489,7 @@ exports.default = {
1485
1489
 
1486
1490
  //
1487
1491
  getApplication: function () {
1488
- var _ref20 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19(client, applicationId, fragments, params) {
1492
+ var _ref23 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19(client, applicationId, fragments, params) {
1489
1493
  var query;
1490
1494
  return regeneratorRuntime.wrap(function _callee19$(_context19) {
1491
1495
  while (1) {
@@ -1507,7 +1511,7 @@ exports.default = {
1507
1511
  }));
1508
1512
 
1509
1513
  function getApplication(_x45, _x46, _x47, _x48) {
1510
- return _ref20.apply(this, arguments);
1514
+ return _ref23.apply(this, arguments);
1511
1515
  }
1512
1516
 
1513
1517
  return getApplication;
@@ -1515,7 +1519,7 @@ exports.default = {
1515
1519
 
1516
1520
  //
1517
1521
  getApplicationSource: function () {
1518
- var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20(client, sourceId, fragments, limits) {
1522
+ var _ref24 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20(client, sourceId, fragments, limits) {
1519
1523
  var query;
1520
1524
  return regeneratorRuntime.wrap(function _callee20$(_context20) {
1521
1525
  while (1) {
@@ -1537,7 +1541,7 @@ exports.default = {
1537
1541
  }));
1538
1542
 
1539
1543
  function getApplicationSource(_x49, _x50, _x51, _x52) {
1540
- return _ref21.apply(this, arguments);
1544
+ return _ref24.apply(this, arguments);
1541
1545
  }
1542
1546
 
1543
1547
  return getApplicationSource;
@@ -1545,7 +1549,7 @@ exports.default = {
1545
1549
 
1546
1550
  //
1547
1551
  getApplicationProtections: function () {
1548
- var _ref22 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21(client, applicationId, params, fragments) {
1552
+ var _ref25 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21(client, applicationId, params, fragments) {
1549
1553
  var query;
1550
1554
  return regeneratorRuntime.wrap(function _callee21$(_context21) {
1551
1555
  while (1) {
@@ -1567,7 +1571,7 @@ exports.default = {
1567
1571
  }));
1568
1572
 
1569
1573
  function getApplicationProtections(_x53, _x54, _x55, _x56) {
1570
- return _ref22.apply(this, arguments);
1574
+ return _ref25.apply(this, arguments);
1571
1575
  }
1572
1576
 
1573
1577
  return getApplicationProtections;
@@ -1575,7 +1579,7 @@ exports.default = {
1575
1579
 
1576
1580
  //
1577
1581
  getApplicationProtectionsCount: function () {
1578
- var _ref23 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22(client, applicationId, fragments) {
1582
+ var _ref26 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22(client, applicationId, fragments) {
1579
1583
  var query;
1580
1584
  return regeneratorRuntime.wrap(function _callee22$(_context22) {
1581
1585
  while (1) {
@@ -1597,7 +1601,7 @@ exports.default = {
1597
1601
  }));
1598
1602
 
1599
1603
  function getApplicationProtectionsCount(_x57, _x58, _x59) {
1600
- return _ref23.apply(this, arguments);
1604
+ return _ref26.apply(this, arguments);
1601
1605
  }
1602
1606
 
1603
1607
  return getApplicationProtectionsCount;
@@ -1605,7 +1609,7 @@ exports.default = {
1605
1609
 
1606
1610
  //
1607
1611
  createTemplate: function () {
1608
- var _ref24 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23(client, template, fragments) {
1612
+ var _ref27 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23(client, template, fragments) {
1609
1613
  var mutation;
1610
1614
  return regeneratorRuntime.wrap(function _callee23$(_context23) {
1611
1615
  while (1) {
@@ -1627,7 +1631,7 @@ exports.default = {
1627
1631
  }));
1628
1632
 
1629
1633
  function createTemplate(_x60, _x61, _x62) {
1630
- return _ref24.apply(this, arguments);
1634
+ return _ref27.apply(this, arguments);
1631
1635
  }
1632
1636
 
1633
1637
  return createTemplate;
@@ -1635,7 +1639,7 @@ exports.default = {
1635
1639
 
1636
1640
  //
1637
1641
  removeTemplate: function () {
1638
- var _ref25 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee24(client, id) {
1642
+ var _ref28 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee24(client, id) {
1639
1643
  var mutation;
1640
1644
  return regeneratorRuntime.wrap(function _callee24$(_context24) {
1641
1645
  while (1) {
@@ -1657,7 +1661,7 @@ exports.default = {
1657
1661
  }));
1658
1662
 
1659
1663
  function removeTemplate(_x63, _x64) {
1660
- return _ref25.apply(this, arguments);
1664
+ return _ref28.apply(this, arguments);
1661
1665
  }
1662
1666
 
1663
1667
  return removeTemplate;
@@ -1665,7 +1669,7 @@ exports.default = {
1665
1669
 
1666
1670
  //
1667
1671
  getTemplates: function () {
1668
- var _ref26 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25(client, fragments) {
1672
+ var _ref29 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25(client, fragments) {
1669
1673
  var query;
1670
1674
  return regeneratorRuntime.wrap(function _callee25$(_context25) {
1671
1675
  while (1) {
@@ -1687,7 +1691,7 @@ exports.default = {
1687
1691
  }));
1688
1692
 
1689
1693
  function getTemplates(_x65, _x66) {
1690
- return _ref26.apply(this, arguments);
1694
+ return _ref29.apply(this, arguments);
1691
1695
  }
1692
1696
 
1693
1697
  return getTemplates;
@@ -1695,7 +1699,7 @@ exports.default = {
1695
1699
 
1696
1700
  //
1697
1701
  getApplications: function () {
1698
- var _ref27 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26(client, fragments, params) {
1702
+ var _ref30 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26(client, fragments, params) {
1699
1703
  var query;
1700
1704
  return regeneratorRuntime.wrap(function _callee26$(_context26) {
1701
1705
  while (1) {
@@ -1717,7 +1721,7 @@ exports.default = {
1717
1721
  }));
1718
1722
 
1719
1723
  function getApplications(_x67, _x68, _x69) {
1720
- return _ref27.apply(this, arguments);
1724
+ return _ref30.apply(this, arguments);
1721
1725
  }
1722
1726
 
1723
1727
  return getApplications;
@@ -1725,7 +1729,7 @@ exports.default = {
1725
1729
 
1726
1730
  //
1727
1731
  addApplicationSource: function () {
1728
- var _ref28 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee27(client, applicationId, applicationSource, fragments) {
1732
+ var _ref31 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee27(client, applicationId, applicationSource, fragments) {
1729
1733
  var mutation;
1730
1734
  return regeneratorRuntime.wrap(function _callee27$(_context27) {
1731
1735
  while (1) {
@@ -1749,7 +1753,7 @@ exports.default = {
1749
1753
  }));
1750
1754
 
1751
1755
  function addApplicationSource(_x70, _x71, _x72, _x73) {
1752
- return _ref28.apply(this, arguments);
1756
+ return _ref31.apply(this, arguments);
1753
1757
  }
1754
1758
 
1755
1759
  return addApplicationSource;
@@ -1757,7 +1761,7 @@ exports.default = {
1757
1761
 
1758
1762
  //
1759
1763
  addApplicationSourceFromURL: function () {
1760
- var _ref29 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28(client, applicationId, url, fragments) {
1764
+ var _ref32 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28(client, applicationId, url, fragments) {
1761
1765
  var file, mutation;
1762
1766
  return regeneratorRuntime.wrap(function _callee28$(_context28) {
1763
1767
  while (1) {
@@ -1784,7 +1788,7 @@ exports.default = {
1784
1788
  }));
1785
1789
 
1786
1790
  function addApplicationSourceFromURL(_x74, _x75, _x76, _x77) {
1787
- return _ref29.apply(this, arguments);
1791
+ return _ref32.apply(this, arguments);
1788
1792
  }
1789
1793
 
1790
1794
  return addApplicationSourceFromURL;
@@ -1792,7 +1796,7 @@ exports.default = {
1792
1796
 
1793
1797
  //
1794
1798
  updateApplicationSource: function () {
1795
- var _ref30 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee29(client, applicationSource, fragments) {
1799
+ var _ref33 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee29(client, applicationSource, fragments) {
1796
1800
  var mutation;
1797
1801
  return regeneratorRuntime.wrap(function _callee29$(_context29) {
1798
1802
  while (1) {
@@ -1814,7 +1818,7 @@ exports.default = {
1814
1818
  }));
1815
1819
 
1816
1820
  function updateApplicationSource(_x78, _x79, _x80) {
1817
- return _ref30.apply(this, arguments);
1821
+ return _ref33.apply(this, arguments);
1818
1822
  }
1819
1823
 
1820
1824
  return updateApplicationSource;
@@ -1822,7 +1826,7 @@ exports.default = {
1822
1826
 
1823
1827
  //
1824
1828
  removeSourceFromApplication: function () {
1825
- var _ref31 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee30(client, sourceId, applicationId, fragments) {
1829
+ var _ref34 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee30(client, sourceId, applicationId, fragments) {
1826
1830
  var mutation;
1827
1831
  return regeneratorRuntime.wrap(function _callee30$(_context30) {
1828
1832
  while (1) {
@@ -1846,7 +1850,7 @@ exports.default = {
1846
1850
  }));
1847
1851
 
1848
1852
  function removeSourceFromApplication(_x81, _x82, _x83, _x84) {
1849
- return _ref31.apply(this, arguments);
1853
+ return _ref34.apply(this, arguments);
1850
1854
  }
1851
1855
 
1852
1856
  return removeSourceFromApplication;
@@ -1854,7 +1858,7 @@ exports.default = {
1854
1858
 
1855
1859
  //
1856
1860
  applyTemplate: function () {
1857
- var _ref32 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee31(client, templateId, appId, fragments) {
1861
+ var _ref35 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee31(client, templateId, appId, fragments) {
1858
1862
  var mutation;
1859
1863
  return regeneratorRuntime.wrap(function _callee31$(_context31) {
1860
1864
  while (1) {
@@ -1876,7 +1880,7 @@ exports.default = {
1876
1880
  }));
1877
1881
 
1878
1882
  function applyTemplate(_x85, _x86, _x87, _x88) {
1879
- return _ref32.apply(this, arguments);
1883
+ return _ref35.apply(this, arguments);
1880
1884
  }
1881
1885
 
1882
1886
  return applyTemplate;
@@ -1884,7 +1888,7 @@ exports.default = {
1884
1888
 
1885
1889
  //
1886
1890
  updateTemplate: function () {
1887
- var _ref33 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee32(client, template, fragments) {
1891
+ var _ref36 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee32(client, template, fragments) {
1888
1892
  var mutation;
1889
1893
  return regeneratorRuntime.wrap(function _callee32$(_context32) {
1890
1894
  while (1) {
@@ -1906,13 +1910,13 @@ exports.default = {
1906
1910
  }));
1907
1911
 
1908
1912
  function updateTemplate(_x89, _x90, _x91) {
1909
- return _ref33.apply(this, arguments);
1913
+ return _ref36.apply(this, arguments);
1910
1914
  }
1911
1915
 
1912
1916
  return updateTemplate;
1913
1917
  }(),
1914
1918
  getApplicationProfiling: function () {
1915
- var _ref34 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee33(client, applicationId) {
1919
+ var _ref37 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee33(client, applicationId) {
1916
1920
  return regeneratorRuntime.wrap(function _callee33$(_context33) {
1917
1921
  while (1) {
1918
1922
  switch (_context33.prev = _context33.next) {
@@ -1928,13 +1932,13 @@ exports.default = {
1928
1932
  }));
1929
1933
 
1930
1934
  function getApplicationProfiling(_x92, _x93) {
1931
- return _ref34.apply(this, arguments);
1935
+ return _ref37.apply(this, arguments);
1932
1936
  }
1933
1937
 
1934
1938
  return getApplicationProfiling;
1935
1939
  }(),
1936
1940
  deleteProfiling: function () {
1937
- var _ref35 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee34(client, profilingId) {
1941
+ var _ref38 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee34(client, profilingId) {
1938
1942
  return regeneratorRuntime.wrap(function _callee34$(_context34) {
1939
1943
  while (1) {
1940
1944
  switch (_context34.prev = _context34.next) {
@@ -1952,7 +1956,7 @@ exports.default = {
1952
1956
  }));
1953
1957
 
1954
1958
  function deleteProfiling(_x94, _x95) {
1955
- return _ref35.apply(this, arguments);
1959
+ return _ref38.apply(this, arguments);
1956
1960
  }
1957
1961
 
1958
1962
  return deleteProfiling;
@@ -1966,7 +1970,7 @@ exports.default = {
1966
1970
  * @returns {Promise<*>}
1967
1971
  */
1968
1972
  startInstrumentation: function () {
1969
- var _ref36 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee35(client, applicationId) {
1973
+ var _ref39 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee35(client, applicationId) {
1970
1974
  var instrumentation;
1971
1975
  return regeneratorRuntime.wrap(function _callee35$(_context35) {
1972
1976
  while (1) {
@@ -2000,7 +2004,7 @@ exports.default = {
2000
2004
  }));
2001
2005
 
2002
2006
  function startInstrumentation(_x96, _x97) {
2003
- return _ref36.apply(this, arguments);
2007
+ return _ref39.apply(this, arguments);
2004
2008
  }
2005
2009
 
2006
2010
  return startInstrumentation;
@@ -2008,8 +2012,8 @@ exports.default = {
2008
2012
 
2009
2013
  //
2010
2014
  createApplicationProtection: function () {
2011
- var _ref37 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee36(client, applicationId, protectionOptions, fragments) {
2012
- var _ref38, args, mutation;
2015
+ var _ref40 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee36(client, applicationId, protectionOptions, fragments) {
2016
+ var _ref41, args, mutation;
2013
2017
 
2014
2018
  return regeneratorRuntime.wrap(function _callee36$(_context36) {
2015
2019
  while (1) {
@@ -2019,8 +2023,8 @@ exports.default = {
2019
2023
  return introspection.mutation(client, 'createApplicationProtection');
2020
2024
 
2021
2025
  case 2:
2022
- _ref38 = _context36.sent;
2023
- args = _ref38.args;
2026
+ _ref41 = _context36.sent;
2027
+ args = _ref41.args;
2024
2028
  _context36.next = 6;
2025
2029
  return mutations.createApplicationProtection(applicationId, fragments, protectionOptions, args);
2026
2030
 
@@ -2037,7 +2041,7 @@ exports.default = {
2037
2041
  }));
2038
2042
 
2039
2043
  function createApplicationProtection(_x98, _x99, _x100, _x101) {
2040
- return _ref37.apply(this, arguments);
2044
+ return _ref40.apply(this, arguments);
2041
2045
  }
2042
2046
 
2043
2047
  return createApplicationProtection;
@@ -2049,7 +2053,7 @@ exports.default = {
2049
2053
  * @returns {Promise<object>}
2050
2054
  */
2051
2055
  getInstrumentation: function () {
2052
- var _ref39 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee37(client, instrumentationId) {
2056
+ var _ref42 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee37(client, instrumentationId) {
2053
2057
  return regeneratorRuntime.wrap(function _callee37$(_context37) {
2054
2058
  while (1) {
2055
2059
  switch (_context37.prev = _context37.next) {
@@ -2065,7 +2069,7 @@ exports.default = {
2065
2069
  }));
2066
2070
 
2067
2071
  function getInstrumentation(_x102, _x103) {
2068
- return _ref39.apply(this, arguments);
2072
+ return _ref42.apply(this, arguments);
2069
2073
  }
2070
2074
 
2071
2075
  return getInstrumentation;
@@ -2073,7 +2077,7 @@ exports.default = {
2073
2077
 
2074
2078
  //
2075
2079
  getApplicationProtection: function () {
2076
- var _ref40 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee38(client, applicationId, protectionId, fragments) {
2080
+ var _ref43 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee38(client, applicationId, protectionId, fragments) {
2077
2081
  var query;
2078
2082
  return regeneratorRuntime.wrap(function _callee38$(_context38) {
2079
2083
  while (1) {
@@ -2095,7 +2099,7 @@ exports.default = {
2095
2099
  }));
2096
2100
 
2097
2101
  function getApplicationProtection(_x104, _x105, _x106, _x107) {
2098
- return _ref40.apply(this, arguments);
2102
+ return _ref43.apply(this, arguments);
2099
2103
  }
2100
2104
 
2101
2105
  return getApplicationProtection;
@@ -2103,7 +2107,7 @@ exports.default = {
2103
2107
 
2104
2108
  //
2105
2109
  downloadSourceMapsRequest: function () {
2106
- var _ref41 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee39(client, protectionId) {
2110
+ var _ref44 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee39(client, protectionId) {
2107
2111
  return regeneratorRuntime.wrap(function _callee39$(_context39) {
2108
2112
  while (1) {
2109
2113
  switch (_context39.prev = _context39.next) {
@@ -2119,13 +2123,13 @@ exports.default = {
2119
2123
  }));
2120
2124
 
2121
2125
  function downloadSourceMapsRequest(_x108, _x109) {
2122
- return _ref41.apply(this, arguments);
2126
+ return _ref44.apply(this, arguments);
2123
2127
  }
2124
2128
 
2125
2129
  return downloadSourceMapsRequest;
2126
2130
  }(),
2127
2131
  downloadSymbolTableRequest: function () {
2128
- var _ref42 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee40(client, protectionId) {
2132
+ var _ref45 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee40(client, protectionId) {
2129
2133
  return regeneratorRuntime.wrap(function _callee40$(_context40) {
2130
2134
  while (1) {
2131
2135
  switch (_context40.prev = _context40.next) {
@@ -2141,7 +2145,7 @@ exports.default = {
2141
2145
  }));
2142
2146
 
2143
2147
  function downloadSymbolTableRequest(_x110, _x111) {
2144
- return _ref42.apply(this, arguments);
2148
+ return _ref45.apply(this, arguments);
2145
2149
  }
2146
2150
 
2147
2151
  return downloadSymbolTableRequest;
@@ -2149,7 +2153,7 @@ exports.default = {
2149
2153
 
2150
2154
  //
2151
2155
  downloadApplicationProtection: function () {
2152
- var _ref43 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee41(client, protectionId) {
2156
+ var _ref46 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee41(client, protectionId) {
2153
2157
  return regeneratorRuntime.wrap(function _callee41$(_context41) {
2154
2158
  while (1) {
2155
2159
  switch (_context41.prev = _context41.next) {
@@ -2165,7 +2169,7 @@ exports.default = {
2165
2169
  }));
2166
2170
 
2167
2171
  function downloadApplicationProtection(_x112, _x113) {
2168
- return _ref43.apply(this, arguments);
2172
+ return _ref46.apply(this, arguments);
2169
2173
  }
2170
2174
 
2171
2175
  return downloadApplicationProtection;
@@ -2189,7 +2193,7 @@ exports.default = {
2189
2193
  * @returns {Boolean} true if the field is supported, false otherwise
2190
2194
  */
2191
2195
  introspectFieldOnMethod: function () {
2192
- var _ref44 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee42(config, queryOrMutation, methodName, field) {
2196
+ var _ref47 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee42(config, queryOrMutation, methodName, field) {
2193
2197
  var instrospectionType, client, result, dataArg, isFieldSupported;
2194
2198
  return regeneratorRuntime.wrap(function _callee42$(_context42) {
2195
2199
  while (1) {
@@ -2229,7 +2233,7 @@ exports.default = {
2229
2233
  }));
2230
2234
 
2231
2235
  function introspectFieldOnMethod(_x114, _x115, _x116, _x117) {
2232
- return _ref44.apply(this, arguments);
2236
+ return _ref47.apply(this, arguments);
2233
2237
  }
2234
2238
 
2235
2239
  return introspectFieldOnMethod;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscrambler",
3
3
  "description": "Jscrambler API client.",
4
- "version": "6.0.1",
4
+ "version": "6.0.4",
5
5
  "homepage": "https://github.com/jscrambler/jscrambler",
6
6
  "author": {
7
7
  "name": "magalhas",