@aws-amplify/core 4.7.7-unstable.7 → 4.7.7

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.
@@ -1,383 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __generator = (this && this.__generator) || function (thisArg, body) {
11
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
- function verb(n) { return function (v) { return step([n, v]); }; }
14
- function step(op) {
15
- if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
17
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
- if (y = 0, t) op = [op[0] & 2, t.value];
19
- switch (op[0]) {
20
- case 0: case 1: t = op; break;
21
- case 4: _.label++; return { value: op[1], done: false };
22
- case 5: _.label++; y = op[1]; op = [0]; continue;
23
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
- default:
25
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
- if (t[2]) _.ops.pop();
30
- _.trys.pop(); continue;
31
- }
32
- op = body.call(thisArg, _);
33
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
- }
36
- };
37
- var __values = (this && this.__values) || function(o) {
38
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
39
- if (m) return m.call(o);
40
- if (o && typeof o.length === "number") return {
41
- next: function () {
42
- if (o && i >= o.length) o = void 0;
43
- return { value: o && o[i++], done: !o };
44
- }
45
- };
46
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
47
- };
48
- /**
49
- * @private For internal Amplify use.
50
- *
51
- * Creates a new scope for promises, observables, and other types of work or
52
- * processes that may be running in the background. This manager provides
53
- * an singular entrypoint to request termination and await completion.
54
- *
55
- * As work completes on its own prior to close, the manager removes them
56
- * from the registry to avoid holding references to completed jobs.
57
- */
58
- var BackgroundProcessManager = /** @class */ (function () {
59
- /**
60
- * Creates a new manager for promises, observables, and other types
61
- * of work that may be running in the background. This manager provides
62
- * a centralized mechanism to request termination and await completion.
63
- */
64
- function BackgroundProcessManager() {
65
- /**
66
- * A string indicating whether the manager is accepting new work ("Open"),
67
- * waiting for work to complete ("Closing"), or fully done with all
68
- * submitted work and *not* accepting new jobs ("Closed").
69
- */
70
- this._state = BackgroundProcessManagerState.Open;
71
- /**
72
- * The list of outstanding jobs we'll need to wait for upon `close()`
73
- */
74
- this.jobs = new Set();
75
- }
76
- BackgroundProcessManager.prototype.add = function (jobOrDescription, optionalDescription) {
77
- var job;
78
- var description;
79
- if (typeof jobOrDescription === 'string') {
80
- job = undefined;
81
- description = jobOrDescription;
82
- }
83
- else {
84
- job = jobOrDescription;
85
- description = optionalDescription;
86
- }
87
- var error = this.closedFailure(description);
88
- if (error)
89
- return error;
90
- if (job === undefined) {
91
- return this.addHook(description);
92
- }
93
- else if (typeof job === 'function') {
94
- return this.addFunction(job, description);
95
- }
96
- else if (job instanceof BackgroundProcessManager) {
97
- return this.addManager(job, description);
98
- }
99
- else {
100
- throw new Error('If `job` is provided, it must be an Observable, Function, or BackgroundProcessManager.');
101
- }
102
- };
103
- /**
104
- * Adds a **cleaner** function that doesn't immediately get executed.
105
- * Instead, the caller gets a **terminate** function back. The *cleaner* is
106
- * invoked only once the mananger *closes* or the returned **terminate**
107
- * function is called.
108
- *
109
- * @param clean The cleanup function.
110
- * @param description Optional description to help identify pending jobs.
111
- * @returns A terminate function.
112
- */
113
- BackgroundProcessManager.prototype.addCleaner = function (clean, description) {
114
- var _this = this;
115
- var _a = this.addHook(description), resolve = _a.resolve, onTerminate = _a.onTerminate;
116
- var proxy = function () { return __awaiter(_this, void 0, void 0, function () {
117
- return __generator(this, function (_a) {
118
- switch (_a.label) {
119
- case 0: return [4 /*yield*/, clean()];
120
- case 1:
121
- _a.sent();
122
- resolve();
123
- return [2 /*return*/];
124
- }
125
- });
126
- }); };
127
- onTerminate.then(proxy);
128
- return proxy;
129
- };
130
- BackgroundProcessManager.prototype.addFunction = function (job, description) {
131
- // the function we call when we want to try to terminate this job.
132
- var terminate;
133
- // the promise the job can opt into listening to for termination.
134
- var onTerminate = new Promise(function (resolve) {
135
- terminate = resolve;
136
- });
137
- // finally! start the job.
138
- var jobResult = job(onTerminate);
139
- // depending on what the job gives back, register the result
140
- // so we can monitor for completion.
141
- if (typeof (jobResult === null || jobResult === void 0 ? void 0 : jobResult.then) === 'function') {
142
- this.registerPromise(jobResult, terminate, description);
143
- }
144
- // At the end of the day, or you know, method call, it doesn't matter
145
- // what the return value is at all; we just pass it through to the
146
- // caller.
147
- return jobResult;
148
- };
149
- BackgroundProcessManager.prototype.addManager = function (manager, description) {
150
- var _this = this;
151
- this.addCleaner(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
152
- switch (_a.label) {
153
- case 0: return [4 /*yield*/, manager.close()];
154
- case 1: return [2 /*return*/, _a.sent()];
155
- }
156
- }); }); }, description);
157
- };
158
- /**
159
- * Creates and registers a fabricated job for processes that need to operate
160
- * with callbacks/hooks. The returned `resolve` and `reject`
161
- * functions can be used to signal the job is done successfully or not.
162
- * The returned `onTerminate` is a promise that will resolve when the
163
- * manager is requesting the termination of the job.
164
- *
165
- * @param description Optional description to help identify pending jobs.
166
- * @returns `{ resolve, reject, onTerminate }`
167
- */
168
- BackgroundProcessManager.prototype.addHook = function (description) {
169
- // the resolve/reject functions we'll provide to the caller to signal
170
- // the state of the job.
171
- var resolve;
172
- var reject;
173
- // the underlying promise we'll use to manage it, pretty much like
174
- // any other promise.
175
- var promise = new Promise(function (res, rej) {
176
- resolve = res;
177
- reject = rej;
178
- });
179
- // the function we call when we want to try to terminate this job.
180
- var terminate;
181
- // the promise the job can opt into listening to for termination.
182
- var onTerminate = new Promise(function (resolveTerminate) {
183
- terminate = resolveTerminate;
184
- });
185
- this.registerPromise(promise, terminate, description);
186
- return {
187
- resolve: resolve,
188
- reject: reject,
189
- onTerminate: onTerminate,
190
- };
191
- };
192
- /**
193
- * Adds a Promise based job to the list of jobs for monitoring and listens
194
- * for either a success or failure, upon which the job is considered "done"
195
- * and removed from the registry.
196
- *
197
- * @param promise A promise that is on its way to being returned to a
198
- * caller, which needs to be tracked as a background job.
199
- * @param terminate The termination function to register, which can be
200
- * invoked to request the job stop.
201
- * @param description Optional description to help identify pending jobs.
202
- */
203
- BackgroundProcessManager.prototype.registerPromise = function (promise, terminate, description) {
204
- var _this = this;
205
- var jobEntry = { promise: promise, terminate: terminate, description: description };
206
- this.jobs.add(jobEntry);
207
- // in all of my testing, it is safe to multi-subscribe to a promise.
208
- // so, rather than create another layer of promising, we're just going
209
- // to hook into the promise we already have, and when it's done
210
- // (successfully or not), we no longer need to wait for it upon close.
211
- //
212
- // sorry this is a bit hand-wavy:
213
- //
214
- // i believe we use `.then` and `.catch` instead of `.finally` because
215
- // `.finally` is invoked in a different order in the sequence, and this
216
- // breaks assumptions throughout and causes failures.
217
- promise
218
- .then(function () {
219
- _this.jobs.delete(jobEntry);
220
- })
221
- .catch(function () {
222
- _this.jobs.delete(jobEntry);
223
- });
224
- };
225
- Object.defineProperty(BackgroundProcessManager.prototype, "length", {
226
- /**
227
- * The number of jobs being waited on.
228
- *
229
- * We don't use this for anything. It's just informational for the caller,
230
- * and can be used in logging and testing.
231
- *
232
- * @returns the number of jobs.
233
- */
234
- get: function () {
235
- return this.jobs.size;
236
- },
237
- enumerable: true,
238
- configurable: true
239
- });
240
- Object.defineProperty(BackgroundProcessManager.prototype, "state", {
241
- /**
242
- * The execution state of the manager. One of:
243
- *
244
- * 1. "Open" -> Accepting new jobs
245
- * 1. "Closing" -> Not accepting new work. Waiting for jobs to complete.
246
- * 1. "Closed" -> Not accepting new work. All submitted jobs are complete.
247
- */
248
- get: function () {
249
- return this._state;
250
- },
251
- enumerable: true,
252
- configurable: true
253
- });
254
- Object.defineProperty(BackgroundProcessManager.prototype, "pending", {
255
- /**
256
- * The registered `description` of all still-pending jobs.
257
- *
258
- * @returns descriptions as an array.
259
- */
260
- get: function () {
261
- return Array.from(this.jobs).map(function (job) { return job.description; });
262
- },
263
- enumerable: true,
264
- configurable: true
265
- });
266
- Object.defineProperty(BackgroundProcessManager.prototype, "isOpen", {
267
- /**
268
- * Whether the manager is accepting new jobs.
269
- */
270
- get: function () {
271
- return this._state === BackgroundProcessManagerState.Open;
272
- },
273
- enumerable: true,
274
- configurable: true
275
- });
276
- Object.defineProperty(BackgroundProcessManager.prototype, "isClosing", {
277
- /**
278
- * Whether the manager is rejecting new work, but still waiting for
279
- * submitted work to complete.
280
- */
281
- get: function () {
282
- return this._state === BackgroundProcessManagerState.Closing;
283
- },
284
- enumerable: true,
285
- configurable: true
286
- });
287
- Object.defineProperty(BackgroundProcessManager.prototype, "isClosed", {
288
- /**
289
- * Whether the manager is rejecting work and done waiting for submitted
290
- * work to complete.
291
- */
292
- get: function () {
293
- return this._state === BackgroundProcessManagerState.Closed;
294
- },
295
- enumerable: true,
296
- configurable: true
297
- });
298
- BackgroundProcessManager.prototype.closedFailure = function (description) {
299
- if (!this.isOpen) {
300
- return Promise.reject(new Error([
301
- 'The manager is closing or closed, which occurs after `close()` has been called.',
302
- "This error occurred trying to add \"" + description + "\".",
303
- "Pending jobs: [\n" + this.pending
304
- .map(function (t) { return ' ' + t; })
305
- .join(',\n') + "\n]",
306
- ].join('\n')));
307
- }
308
- };
309
- /**
310
- * Signals jobs to stop (for those that accept interruptions) and waits
311
- * for confirmation that jobs have stopped.
312
- *
313
- * This immediately puts the manager into a closing state and just begins
314
- * to reject new work. After all work in the manager is complete, the
315
- * manager goes into a `Completed` state and `close()` returns.
316
- *
317
- * @returns The settled results of each job's promise.
318
- */
319
- BackgroundProcessManager.prototype.close = function () {
320
- return __awaiter(this, void 0, void 0, function () {
321
- var _a, _b, job, results;
322
- var e_1, _c;
323
- return __generator(this, function (_d) {
324
- switch (_d.label) {
325
- case 0:
326
- // prevents more jobs from being added
327
- this._state = BackgroundProcessManagerState.Closing;
328
- try {
329
- for (_a = __values(Array.from(this.jobs)), _b = _a.next(); !_b.done; _b = _a.next()) {
330
- job = _b.value;
331
- try {
332
- job.terminate();
333
- }
334
- catch (error) {
335
- // Due to potential races with a job's natural completion, it's
336
- // reasonable to expect the termination call to fail. Hence,
337
- // not logging as an error.
338
- console.warn("Failed to send termination signal to job. Error: " + error.message, job);
339
- }
340
- }
341
- }
342
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
343
- finally {
344
- try {
345
- if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
346
- }
347
- finally { if (e_1) throw e_1.error; }
348
- }
349
- return [4 /*yield*/, Promise.allSettled(Array.from(this.jobs).map(function (j) { return j.promise; }))];
350
- case 1:
351
- results = _d.sent();
352
- // At this point, we're already *not* accepting new work, and all
353
- // pending work is done. It's safe to set state to `Closed`. Any
354
- // process that's checking this property will be able to safely operate
355
- // on this value at this point.
356
- this._state = BackgroundProcessManagerState.Closed;
357
- return [2 /*return*/, results];
358
- }
359
- });
360
- });
361
- };
362
- return BackgroundProcessManager;
363
- }());
364
- export { BackgroundProcessManager };
365
- /**
366
- * All possible states a `BackgroundProcessManager` instance can be in.
367
- */
368
- export var BackgroundProcessManagerState;
369
- (function (BackgroundProcessManagerState) {
370
- /**
371
- * Accepting new jobs.
372
- */
373
- BackgroundProcessManagerState["Open"] = "Open";
374
- /**
375
- * Not accepting new jobs. Waiting for submitted jobs to complete.
376
- */
377
- BackgroundProcessManagerState["Closing"] = "Closing";
378
- /**
379
- * Not accepting new jobs. All submitted jobs are complete.
380
- */
381
- BackgroundProcessManagerState["Closed"] = "Closed";
382
- })(BackgroundProcessManagerState || (BackgroundProcessManagerState = {}));
383
- //# sourceMappingURL=BackgroundProcessManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackgroundProcessManager.js","sourceRoot":"","sources":["../../src/Util/BackgroundProcessManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;GASG;AACH;IAaC;;;;OAIG;IACH;QAjBA;;;;WAIG;QACK,WAAM,GAAG,6BAA6B,CAAC,IAAI,CAAC;QAEpD;;WAEG;QACK,SAAI,GAAG,IAAI,GAAG,EAAY,CAAC;IAOpB,CAAC;IAyDhB,sCAAG,GAAH,UAAI,gBAAiB,EAAE,mBAAoB;QAC1C,IAAI,GAAG,CAAC;QACR,IAAI,WAAmB,CAAC;QAExB,IAAI,OAAO,gBAAgB,KAAK,QAAQ,EAAE;YACzC,GAAG,GAAG,SAAS,CAAC;YAChB,WAAW,GAAG,gBAAgB,CAAC;SAC/B;aAAM;YACN,GAAG,GAAG,gBAAgB,CAAC;YACvB,WAAW,GAAG,mBAAmB,CAAC;SAClC;QAED,IAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;QAC9C,IAAI,KAAK;YAAE,OA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