oro-sdk-apis 3.4.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,9 @@ function _regeneratorRuntime() {
19
19
  var exports = {},
20
20
  Op = Object.prototype,
21
21
  hasOwn = Op.hasOwnProperty,
22
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
23
+ obj[key] = desc.value;
24
+ },
22
25
  $Symbol = "function" == typeof Symbol ? Symbol : {},
23
26
  iteratorSymbol = $Symbol.iterator || "@@iterator",
24
27
  asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
@@ -42,40 +45,9 @@ function _regeneratorRuntime() {
42
45
  var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
43
46
  generator = Object.create(protoGenerator.prototype),
44
47
  context = new Context(tryLocsList || []);
45
- return generator._invoke = function (innerFn, self, context) {
46
- var state = "suspendedStart";
47
- return function (method, arg) {
48
- if ("executing" === state) throw new Error("Generator is already running");
49
- if ("completed" === state) {
50
- if ("throw" === method) throw arg;
51
- return doneResult();
52
- }
53
- for (context.method = method, context.arg = arg;;) {
54
- var delegate = context.delegate;
55
- if (delegate) {
56
- var delegateResult = maybeInvokeDelegate(delegate, context);
57
- if (delegateResult) {
58
- if (delegateResult === ContinueSentinel) continue;
59
- return delegateResult;
60
- }
61
- }
62
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
63
- if ("suspendedStart" === state) throw state = "completed", context.arg;
64
- context.dispatchException(context.arg);
65
- } else "return" === context.method && context.abrupt("return", context.arg);
66
- state = "executing";
67
- var record = tryCatch(innerFn, self, context);
68
- if ("normal" === record.type) {
69
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
70
- return {
71
- value: record.arg,
72
- done: context.done
73
- };
74
- }
75
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
76
- }
77
- };
78
- }(innerFn, self, context), generator;
48
+ return defineProperty(generator, "_invoke", {
49
+ value: makeInvokeMethod(innerFn, self, context)
50
+ }), generator;
79
51
  }
80
52
  function tryCatch(fn, obj, arg) {
81
53
  try {
@@ -129,13 +101,49 @@ function _regeneratorRuntime() {
129
101
  reject(record.arg);
130
102
  }
131
103
  var previousPromise;
132
- this._invoke = function (method, arg) {
133
- function callInvokeWithMethodAndArg() {
134
- return new PromiseImpl(function (resolve, reject) {
135
- invoke(method, arg, resolve, reject);
136
- });
104
+ defineProperty(this, "_invoke", {
105
+ value: function (method, arg) {
106
+ function callInvokeWithMethodAndArg() {
107
+ return new PromiseImpl(function (resolve, reject) {
108
+ invoke(method, arg, resolve, reject);
109
+ });
110
+ }
111
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
112
+ }
113
+ });
114
+ }
115
+ function makeInvokeMethod(innerFn, self, context) {
116
+ var state = "suspendedStart";
117
+ return function (method, arg) {
118
+ if ("executing" === state) throw new Error("Generator is already running");
119
+ if ("completed" === state) {
120
+ if ("throw" === method) throw arg;
121
+ return doneResult();
122
+ }
123
+ for (context.method = method, context.arg = arg;;) {
124
+ var delegate = context.delegate;
125
+ if (delegate) {
126
+ var delegateResult = maybeInvokeDelegate(delegate, context);
127
+ if (delegateResult) {
128
+ if (delegateResult === ContinueSentinel) continue;
129
+ return delegateResult;
130
+ }
131
+ }
132
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
133
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
134
+ context.dispatchException(context.arg);
135
+ } else "return" === context.method && context.abrupt("return", context.arg);
136
+ state = "executing";
137
+ var record = tryCatch(innerFn, self, context);
138
+ if ("normal" === record.type) {
139
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
140
+ return {
141
+ value: record.arg,
142
+ done: context.done
143
+ };
144
+ }
145
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
137
146
  }
138
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
139
147
  };
140
148
  }
141
149
  function maybeInvokeDelegate(delegate, context) {
@@ -191,7 +199,13 @@ function _regeneratorRuntime() {
191
199
  done: !0
192
200
  };
193
201
  }
194
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
202
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
203
+ value: GeneratorFunctionPrototype,
204
+ configurable: !0
205
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
206
+ value: GeneratorFunction,
207
+ configurable: !0
208
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
195
209
  var ctor = "function" == typeof genFun && genFun.constructor;
196
210
  return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
197
211
  }, exports.mark = function (genFun) {
@@ -212,8 +226,9 @@ function _regeneratorRuntime() {
212
226
  return this;
213
227
  }), define(Gp, "toString", function () {
214
228
  return "[object Generator]";
215
- }), exports.keys = function (object) {
216
- var keys = [];
229
+ }), exports.keys = function (val) {
230
+ var object = Object(val),
231
+ keys = [];
217
232
  for (var key in object) keys.push(key);
218
233
  return keys.reverse(), function next() {
219
234
  for (; keys.length;) {