@nocobase/plugin-async-task-manager 1.9.0-beta.4 → 1.9.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/ISSUES.md +31 -0
  2. package/dist/client/index.d.ts +17 -4
  3. package/dist/client/index.js +1 -1
  4. package/dist/client/locale.d.ts +9 -1
  5. package/dist/common/collections/asyncTasks.d.ts +25 -0
  6. package/dist/common/collections/asyncTasks.js +97 -0
  7. package/dist/common/constants.d.ts +73 -0
  8. package/dist/common/constants.js +86 -0
  9. package/dist/common/types.d.ts +11 -0
  10. package/dist/common/types.js +24 -0
  11. package/dist/externalVersion.js +7 -5
  12. package/dist/server/base-task-manager.d.ts +21 -15
  13. package/dist/server/base-task-manager.js +230 -101
  14. package/dist/server/collections/asyncTasks.d.ts +11 -0
  15. package/dist/server/collections/asyncTasks.js +43 -0
  16. package/dist/server/command-task-type.d.ts +9 -0
  17. package/dist/server/command-task-type.js +19 -8
  18. package/dist/server/interfaces/async-task-manager.d.ts +11 -48
  19. package/dist/server/interfaces/task.d.ts +25 -23
  20. package/dist/server/interfaces/task.js +28 -0
  21. package/dist/server/plugin.d.ts +2 -5
  22. package/dist/server/plugin.js +15 -129
  23. package/dist/server/resourcers/async-tasks.d.ts +3 -2
  24. package/dist/server/resourcers/async-tasks.js +44 -27
  25. package/dist/server/task-type.d.ts +10 -62
  26. package/dist/server/task-type.js +66 -121
  27. package/package.json +2 -2
  28. package/dist/client/TaskResultRendererManager.d.ts +0 -6
  29. package/dist/node_modules/p-queue/dist/index.d.ts +0 -101
  30. package/dist/node_modules/p-queue/dist/index.js +0 -1
  31. package/dist/node_modules/p-queue/dist/lower-bound.d.ts +0 -1
  32. package/dist/node_modules/p-queue/dist/lower-bound.js +0 -21
  33. package/dist/node_modules/p-queue/dist/options.d.ts +0 -64
  34. package/dist/node_modules/p-queue/dist/options.js +0 -2
  35. package/dist/node_modules/p-queue/dist/priority-queue.d.ts +0 -12
  36. package/dist/node_modules/p-queue/dist/priority-queue.js +0 -32
  37. package/dist/node_modules/p-queue/dist/queue.d.ts +0 -7
  38. package/dist/node_modules/p-queue/dist/queue.js +0 -2
  39. package/dist/node_modules/p-queue/license +0 -9
  40. package/dist/node_modules/p-queue/node_modules/eventemitter3/index.d.ts +0 -134
  41. package/dist/node_modules/p-queue/node_modules/eventemitter3/index.js +0 -336
  42. package/dist/node_modules/p-queue/node_modules/eventemitter3/package.json +0 -56
  43. package/dist/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.js +0 -340
  44. package/dist/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.min.js +0 -1
  45. package/dist/node_modules/p-queue/package.json +0 -1
  46. package/dist/node_modules/uuid/dist/bin/uuid +0 -2
  47. package/dist/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  48. package/dist/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  49. package/dist/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  50. package/dist/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  51. package/dist/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  52. package/dist/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  53. package/dist/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  54. package/dist/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  55. package/dist/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  56. package/dist/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  57. package/dist/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  58. package/dist/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  59. package/dist/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  60. package/dist/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  61. package/dist/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  62. package/dist/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  63. package/dist/node_modules/uuid/dist/esm-browser/index.js +0 -9
  64. package/dist/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  65. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -4
  66. package/dist/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  67. package/dist/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  68. package/dist/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  69. package/dist/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  70. package/dist/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  71. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  72. package/dist/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  73. package/dist/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  74. package/dist/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  75. package/dist/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  76. package/dist/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  77. package/dist/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  78. package/dist/node_modules/uuid/dist/esm-browser/version.js +0 -11
  79. package/dist/node_modules/uuid/dist/esm-node/index.js +0 -9
  80. package/dist/node_modules/uuid/dist/esm-node/md5.js +0 -13
  81. package/dist/node_modules/uuid/dist/esm-node/native.js +0 -4
  82. package/dist/node_modules/uuid/dist/esm-node/nil.js +0 -1
  83. package/dist/node_modules/uuid/dist/esm-node/parse.js +0 -35
  84. package/dist/node_modules/uuid/dist/esm-node/regex.js +0 -1
  85. package/dist/node_modules/uuid/dist/esm-node/rng.js +0 -12
  86. package/dist/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  87. package/dist/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  88. package/dist/node_modules/uuid/dist/esm-node/v1.js +0 -95
  89. package/dist/node_modules/uuid/dist/esm-node/v3.js +0 -4
  90. package/dist/node_modules/uuid/dist/esm-node/v35.js +0 -66
  91. package/dist/node_modules/uuid/dist/esm-node/v4.js +0 -29
  92. package/dist/node_modules/uuid/dist/esm-node/v5.js +0 -4
  93. package/dist/node_modules/uuid/dist/esm-node/validate.js +0 -7
  94. package/dist/node_modules/uuid/dist/esm-node/version.js +0 -11
  95. package/dist/node_modules/uuid/dist/index.js +0 -1
  96. package/dist/node_modules/uuid/dist/md5-browser.js +0 -223
  97. package/dist/node_modules/uuid/dist/md5.js +0 -23
  98. package/dist/node_modules/uuid/dist/native-browser.js +0 -11
  99. package/dist/node_modules/uuid/dist/native.js +0 -15
  100. package/dist/node_modules/uuid/dist/nil.js +0 -8
  101. package/dist/node_modules/uuid/dist/parse.js +0 -45
  102. package/dist/node_modules/uuid/dist/regex.js +0 -8
  103. package/dist/node_modules/uuid/dist/rng-browser.js +0 -25
  104. package/dist/node_modules/uuid/dist/rng.js +0 -24
  105. package/dist/node_modules/uuid/dist/sha1-browser.js +0 -104
  106. package/dist/node_modules/uuid/dist/sha1.js +0 -23
  107. package/dist/node_modules/uuid/dist/stringify.js +0 -44
  108. package/dist/node_modules/uuid/dist/uuid-bin.js +0 -85
  109. package/dist/node_modules/uuid/dist/v1.js +0 -107
  110. package/dist/node_modules/uuid/dist/v3.js +0 -16
  111. package/dist/node_modules/uuid/dist/v35.js +0 -80
  112. package/dist/node_modules/uuid/dist/v4.js +0 -43
  113. package/dist/node_modules/uuid/dist/v5.js +0 -16
  114. package/dist/node_modules/uuid/dist/validate.js +0 -17
  115. package/dist/node_modules/uuid/dist/version.js +0 -21
  116. package/dist/node_modules/uuid/package.json +0 -1
@@ -1,340 +0,0 @@
1
- (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.EventEmitter3 = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- 'use strict';
3
-
4
- var has = Object.prototype.hasOwnProperty
5
- , prefix = '~';
6
-
7
- /**
8
- * Constructor to create a storage for our `EE` objects.
9
- * An `Events` instance is a plain object whose properties are event names.
10
- *
11
- * @constructor
12
- * @private
13
- */
14
- function Events() {}
15
-
16
- //
17
- // We try to not inherit from `Object.prototype`. In some engines creating an
18
- // instance in this way is faster than calling `Object.create(null)` directly.
19
- // If `Object.create(null)` is not supported we prefix the event names with a
20
- // character to make sure that the built-in object properties are not
21
- // overridden or used as an attack vector.
22
- //
23
- if (Object.create) {
24
- Events.prototype = Object.create(null);
25
-
26
- //
27
- // This hack is needed because the `__proto__` property is still inherited in
28
- // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
29
- //
30
- if (!new Events().__proto__) prefix = false;
31
- }
32
-
33
- /**
34
- * Representation of a single event listener.
35
- *
36
- * @param {Function} fn The listener function.
37
- * @param {*} context The context to invoke the listener with.
38
- * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
39
- * @constructor
40
- * @private
41
- */
42
- function EE(fn, context, once) {
43
- this.fn = fn;
44
- this.context = context;
45
- this.once = once || false;
46
- }
47
-
48
- /**
49
- * Add a listener for a given event.
50
- *
51
- * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
52
- * @param {(String|Symbol)} event The event name.
53
- * @param {Function} fn The listener function.
54
- * @param {*} context The context to invoke the listener with.
55
- * @param {Boolean} once Specify if the listener is a one-time listener.
56
- * @returns {EventEmitter}
57
- * @private
58
- */
59
- function addListener(emitter, event, fn, context, once) {
60
- if (typeof fn !== 'function') {
61
- throw new TypeError('The listener must be a function');
62
- }
63
-
64
- var listener = new EE(fn, context || emitter, once)
65
- , evt = prefix ? prefix + event : event;
66
-
67
- if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
68
- else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
69
- else emitter._events[evt] = [emitter._events[evt], listener];
70
-
71
- return emitter;
72
- }
73
-
74
- /**
75
- * Clear event by name.
76
- *
77
- * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
78
- * @param {(String|Symbol)} evt The Event name.
79
- * @private
80
- */
81
- function clearEvent(emitter, evt) {
82
- if (--emitter._eventsCount === 0) emitter._events = new Events();
83
- else delete emitter._events[evt];
84
- }
85
-
86
- /**
87
- * Minimal `EventEmitter` interface that is molded against the Node.js
88
- * `EventEmitter` interface.
89
- *
90
- * @constructor
91
- * @public
92
- */
93
- function EventEmitter() {
94
- this._events = new Events();
95
- this._eventsCount = 0;
96
- }
97
-
98
- /**
99
- * Return an array listing the events for which the emitter has registered
100
- * listeners.
101
- *
102
- * @returns {Array}
103
- * @public
104
- */
105
- EventEmitter.prototype.eventNames = function eventNames() {
106
- var names = []
107
- , events
108
- , name;
109
-
110
- if (this._eventsCount === 0) return names;
111
-
112
- for (name in (events = this._events)) {
113
- if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
114
- }
115
-
116
- if (Object.getOwnPropertySymbols) {
117
- return names.concat(Object.getOwnPropertySymbols(events));
118
- }
119
-
120
- return names;
121
- };
122
-
123
- /**
124
- * Return the listeners registered for a given event.
125
- *
126
- * @param {(String|Symbol)} event The event name.
127
- * @returns {Array} The registered listeners.
128
- * @public
129
- */
130
- EventEmitter.prototype.listeners = function listeners(event) {
131
- var evt = prefix ? prefix + event : event
132
- , handlers = this._events[evt];
133
-
134
- if (!handlers) return [];
135
- if (handlers.fn) return [handlers.fn];
136
-
137
- for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {
138
- ee[i] = handlers[i].fn;
139
- }
140
-
141
- return ee;
142
- };
143
-
144
- /**
145
- * Return the number of listeners listening to a given event.
146
- *
147
- * @param {(String|Symbol)} event The event name.
148
- * @returns {Number} The number of listeners.
149
- * @public
150
- */
151
- EventEmitter.prototype.listenerCount = function listenerCount(event) {
152
- var evt = prefix ? prefix + event : event
153
- , listeners = this._events[evt];
154
-
155
- if (!listeners) return 0;
156
- if (listeners.fn) return 1;
157
- return listeners.length;
158
- };
159
-
160
- /**
161
- * Calls each of the listeners registered for a given event.
162
- *
163
- * @param {(String|Symbol)} event The event name.
164
- * @returns {Boolean} `true` if the event had listeners, else `false`.
165
- * @public
166
- */
167
- EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
168
- var evt = prefix ? prefix + event : event;
169
-
170
- if (!this._events[evt]) return false;
171
-
172
- var listeners = this._events[evt]
173
- , len = arguments.length
174
- , args
175
- , i;
176
-
177
- if (listeners.fn) {
178
- if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
179
-
180
- switch (len) {
181
- case 1: return listeners.fn.call(listeners.context), true;
182
- case 2: return listeners.fn.call(listeners.context, a1), true;
183
- case 3: return listeners.fn.call(listeners.context, a1, a2), true;
184
- case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
185
- case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
186
- case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
187
- }
188
-
189
- for (i = 1, args = new Array(len -1); i < len; i++) {
190
- args[i - 1] = arguments[i];
191
- }
192
-
193
- listeners.fn.apply(listeners.context, args);
194
- } else {
195
- var length = listeners.length
196
- , j;
197
-
198
- for (i = 0; i < length; i++) {
199
- if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
200
-
201
- switch (len) {
202
- case 1: listeners[i].fn.call(listeners[i].context); break;
203
- case 2: listeners[i].fn.call(listeners[i].context, a1); break;
204
- case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
205
- case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
206
- default:
207
- if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
208
- args[j - 1] = arguments[j];
209
- }
210
-
211
- listeners[i].fn.apply(listeners[i].context, args);
212
- }
213
- }
214
- }
215
-
216
- return true;
217
- };
218
-
219
- /**
220
- * Add a listener for a given event.
221
- *
222
- * @param {(String|Symbol)} event The event name.
223
- * @param {Function} fn The listener function.
224
- * @param {*} [context=this] The context to invoke the listener with.
225
- * @returns {EventEmitter} `this`.
226
- * @public
227
- */
228
- EventEmitter.prototype.on = function on(event, fn, context) {
229
- return addListener(this, event, fn, context, false);
230
- };
231
-
232
- /**
233
- * Add a one-time listener for a given event.
234
- *
235
- * @param {(String|Symbol)} event The event name.
236
- * @param {Function} fn The listener function.
237
- * @param {*} [context=this] The context to invoke the listener with.
238
- * @returns {EventEmitter} `this`.
239
- * @public
240
- */
241
- EventEmitter.prototype.once = function once(event, fn, context) {
242
- return addListener(this, event, fn, context, true);
243
- };
244
-
245
- /**
246
- * Remove the listeners of a given event.
247
- *
248
- * @param {(String|Symbol)} event The event name.
249
- * @param {Function} fn Only remove the listeners that match this function.
250
- * @param {*} context Only remove the listeners that have this context.
251
- * @param {Boolean} once Only remove one-time listeners.
252
- * @returns {EventEmitter} `this`.
253
- * @public
254
- */
255
- EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
256
- var evt = prefix ? prefix + event : event;
257
-
258
- if (!this._events[evt]) return this;
259
- if (!fn) {
260
- clearEvent(this, evt);
261
- return this;
262
- }
263
-
264
- var listeners = this._events[evt];
265
-
266
- if (listeners.fn) {
267
- if (
268
- listeners.fn === fn &&
269
- (!once || listeners.once) &&
270
- (!context || listeners.context === context)
271
- ) {
272
- clearEvent(this, evt);
273
- }
274
- } else {
275
- for (var i = 0, events = [], length = listeners.length; i < length; i++) {
276
- if (
277
- listeners[i].fn !== fn ||
278
- (once && !listeners[i].once) ||
279
- (context && listeners[i].context !== context)
280
- ) {
281
- events.push(listeners[i]);
282
- }
283
- }
284
-
285
- //
286
- // Reset the array, or remove it completely if we have no more listeners.
287
- //
288
- if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
289
- else clearEvent(this, evt);
290
- }
291
-
292
- return this;
293
- };
294
-
295
- /**
296
- * Remove all listeners, or those of the specified event.
297
- *
298
- * @param {(String|Symbol)} [event] The event name.
299
- * @returns {EventEmitter} `this`.
300
- * @public
301
- */
302
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
303
- var evt;
304
-
305
- if (event) {
306
- evt = prefix ? prefix + event : event;
307
- if (this._events[evt]) clearEvent(this, evt);
308
- } else {
309
- this._events = new Events();
310
- this._eventsCount = 0;
311
- }
312
-
313
- return this;
314
- };
315
-
316
- //
317
- // Alias methods names because people roll like that.
318
- //
319
- EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
320
- EventEmitter.prototype.addListener = EventEmitter.prototype.on;
321
-
322
- //
323
- // Expose the prefix.
324
- //
325
- EventEmitter.prefixed = prefix;
326
-
327
- //
328
- // Allow `EventEmitter` to be imported as module namespace.
329
- //
330
- EventEmitter.EventEmitter = EventEmitter;
331
-
332
- //
333
- // Expose the module.
334
- //
335
- if ('undefined' !== typeof module) {
336
- module.exports = EventEmitter;
337
- }
338
-
339
- },{}]},{},[1])(1)
340
- });
@@ -1 +0,0 @@
1
- !function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EventEmitter3=e()}(function(){return function i(s,f,c){function u(t,e){if(!f[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(a)return a(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=f[t]={exports:{}};s[t][0].call(o.exports,function(e){return u(s[t][1][e]||e)},o,o.exports,i,s,f,c)}return f[t].exports}for(var a="function"==typeof require&&require,e=0;e<c.length;e++)u(c[e]);return u}({1:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,v="~";function o(){}function f(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var i=new f(n,r||e,o),s=v?v+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],i]:e._events[s].push(i):(e._events[s]=i,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(v=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(v?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=v?v+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,i=new Array(o);r<o;r++)i[r]=n[r].fn;return i},s.prototype.listenerCount=function(e){var t=v?v+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,o,i){var s=v?v+e:e;if(!this._events[s])return!1;var f,c=this._events[s],u=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,r,o,i),!0}for(p=1,f=new Array(u-1);p<u;p++)f[p-1]=arguments[p];c.fn.apply(c.context,f)}else for(var a,l=c.length,p=0;p<l;p++)switch(c[p].once&&this.removeListener(e,c[p].fn,void 0,!0),u){case 1:c[p].fn.call(c[p].context);break;case 2:c[p].fn.call(c[p].context,t);break;case 3:c[p].fn.call(c[p].context,t,n);break;case 4:c[p].fn.call(c[p].context,t,n,r);break;default:if(!f)for(a=1,f=new Array(u-1);a<u;a++)f[a-1]=arguments[a];c[p].fn.apply(c[p].context,f)}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){var o=v?v+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var i=this._events[o];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||u(this,o);else{for(var s=0,f=[],c=i.length;s<c;s++)(i[s].fn!==t||r&&!i[s].once||n&&i[s].context!==n)&&f.push(i[s]);f.length?this._events[o]=1===f.length?f[0]:f:u(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=v?v+e:e,this._events[t]&&u(this,t)):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=v,s.EventEmitter=s,void 0!==t&&(t.exports=s)},{}]},{},[1])(1)});
@@ -1 +0,0 @@
1
- {"name":"p-queue","version":"6.6.2","description":"Promise queue with concurrency control","license":"MIT","repository":"sindresorhus/p-queue","funding":"https://github.com/sponsors/sindresorhus","main":"dist/index.js","engines":{"node":">=8"},"scripts":{"build":"del dist && tsc","test":"xo && npm run build && nyc ava","bench":"ts-node bench.ts","prepublishOnly":"npm run build"},"files":["dist"],"types":"dist/index.d.ts","keywords":["promise","queue","enqueue","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","priority","priorityqueue","fifo","job","task","async","await","promises","bluebird"],"dependencies":{"eventemitter3":"^4.0.4","p-timeout":"^3.2.0"},"devDependencies":{"@sindresorhus/tsconfig":"^0.7.0","@types/benchmark":"^1.0.33","@types/node":"^14.6.0","ava":"^2.0.0","benchmark":"^2.1.4","codecov":"^3.7.2","del-cli":"^3.0.1","delay":"^4.4.0","in-range":"^2.0.0","nyc":"^15.1.0","random-int":"^2.0.1","time-span":"^4.0.0","ts-node":"^9.0.0","typescript":"^4.0.2","xo":"^0.33.0"},"ava":{"babel":false,"compileEnhancements":false,"extensions":["ts"],"require":["ts-node/register"],"files":["test/**"]},"xo":{"rules":{"@typescript-eslint/member-ordering":"off","node/no-unsupported-features/es-syntax":"off","@typescript-eslint/no-floating-promises":"off","import/no-named-default":"off","@typescript-eslint/no-invalid-void-type":"off"}},"nyc":{"extension":[".ts"]},"_lastModified":"2025-07-14T14:23:13.608Z"}
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- require('../uuid-bin');
@@ -1,79 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "NIL", {
7
- enumerable: true,
8
- get: function get() {
9
- return _nil.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "parse", {
13
- enumerable: true,
14
- get: function get() {
15
- return _parse.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "stringify", {
19
- enumerable: true,
20
- get: function get() {
21
- return _stringify.default;
22
- }
23
- });
24
- Object.defineProperty(exports, "v1", {
25
- enumerable: true,
26
- get: function get() {
27
- return _v.default;
28
- }
29
- });
30
- Object.defineProperty(exports, "v3", {
31
- enumerable: true,
32
- get: function get() {
33
- return _v2.default;
34
- }
35
- });
36
- Object.defineProperty(exports, "v4", {
37
- enumerable: true,
38
- get: function get() {
39
- return _v3.default;
40
- }
41
- });
42
- Object.defineProperty(exports, "v5", {
43
- enumerable: true,
44
- get: function get() {
45
- return _v4.default;
46
- }
47
- });
48
- Object.defineProperty(exports, "validate", {
49
- enumerable: true,
50
- get: function get() {
51
- return _validate.default;
52
- }
53
- });
54
- Object.defineProperty(exports, "version", {
55
- enumerable: true,
56
- get: function get() {
57
- return _version.default;
58
- }
59
- });
60
-
61
- var _v = _interopRequireDefault(require("./v1.js"));
62
-
63
- var _v2 = _interopRequireDefault(require("./v3.js"));
64
-
65
- var _v3 = _interopRequireDefault(require("./v4.js"));
66
-
67
- var _v4 = _interopRequireDefault(require("./v5.js"));
68
-
69
- var _nil = _interopRequireDefault(require("./nil.js"));
70
-
71
- var _version = _interopRequireDefault(require("./version.js"));
72
-
73
- var _validate = _interopRequireDefault(require("./validate.js"));
74
-
75
- var _stringify = _interopRequireDefault(require("./stringify.js"));
76
-
77
- var _parse = _interopRequireDefault(require("./parse.js"));
78
-
79
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,223 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- /*
9
- * Browser-compatible JavaScript MD5
10
- *
11
- * Modification of JavaScript MD5
12
- * https://github.com/blueimp/JavaScript-MD5
13
- *
14
- * Copyright 2011, Sebastian Tschan
15
- * https://blueimp.net
16
- *
17
- * Licensed under the MIT license:
18
- * https://opensource.org/licenses/MIT
19
- *
20
- * Based on
21
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
22
- * Digest Algorithm, as defined in RFC 1321.
23
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
24
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
25
- * Distributed under the BSD License
26
- * See http://pajhome.org.uk/crypt/md5 for more info.
27
- */
28
- function md5(bytes) {
29
- if (typeof bytes === 'string') {
30
- const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
31
-
32
- bytes = new Uint8Array(msg.length);
33
-
34
- for (let i = 0; i < msg.length; ++i) {
35
- bytes[i] = msg.charCodeAt(i);
36
- }
37
- }
38
-
39
- return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
40
- }
41
- /*
42
- * Convert an array of little-endian words to an array of bytes
43
- */
44
-
45
-
46
- function md5ToHexEncodedArray(input) {
47
- const output = [];
48
- const length32 = input.length * 32;
49
- const hexTab = '0123456789abcdef';
50
-
51
- for (let i = 0; i < length32; i += 8) {
52
- const x = input[i >> 5] >>> i % 32 & 0xff;
53
- const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
54
- output.push(hex);
55
- }
56
-
57
- return output;
58
- }
59
- /**
60
- * Calculate output length with padding and bit length
61
- */
62
-
63
-
64
- function getOutputLength(inputLength8) {
65
- return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
66
- }
67
- /*
68
- * Calculate the MD5 of an array of little-endian words, and a bit length.
69
- */
70
-
71
-
72
- function wordsToMd5(x, len) {
73
- /* append padding */
74
- x[len >> 5] |= 0x80 << len % 32;
75
- x[getOutputLength(len) - 1] = len;
76
- let a = 1732584193;
77
- let b = -271733879;
78
- let c = -1732584194;
79
- let d = 271733878;
80
-
81
- for (let i = 0; i < x.length; i += 16) {
82
- const olda = a;
83
- const oldb = b;
84
- const oldc = c;
85
- const oldd = d;
86
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
87
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
88
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
89
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
90
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
91
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
92
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
93
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
94
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
95
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
96
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
97
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
98
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
99
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
100
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
101
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
102
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
103
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
104
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
105
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
106
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
107
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
108
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
109
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
110
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
111
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
112
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
113
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
114
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
115
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
116
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
117
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
118
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
119
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
120
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
121
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
122
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
123
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
124
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
125
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
126
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
127
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
128
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
129
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
130
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
131
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
132
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
133
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
134
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
135
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
136
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
137
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
138
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
139
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
140
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
141
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
142
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
143
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
144
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
145
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
146
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
147
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
148
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
149
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
150
- a = safeAdd(a, olda);
151
- b = safeAdd(b, oldb);
152
- c = safeAdd(c, oldc);
153
- d = safeAdd(d, oldd);
154
- }
155
-
156
- return [a, b, c, d];
157
- }
158
- /*
159
- * Convert an array bytes to an array of little-endian words
160
- * Characters >255 have their high-byte silently ignored.
161
- */
162
-
163
-
164
- function bytesToWords(input) {
165
- if (input.length === 0) {
166
- return [];
167
- }
168
-
169
- const length8 = input.length * 8;
170
- const output = new Uint32Array(getOutputLength(length8));
171
-
172
- for (let i = 0; i < length8; i += 8) {
173
- output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
174
- }
175
-
176
- return output;
177
- }
178
- /*
179
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
180
- * to work around bugs in some JS interpreters.
181
- */
182
-
183
-
184
- function safeAdd(x, y) {
185
- const lsw = (x & 0xffff) + (y & 0xffff);
186
- const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
187
- return msw << 16 | lsw & 0xffff;
188
- }
189
- /*
190
- * Bitwise rotate a 32-bit number to the left.
191
- */
192
-
193
-
194
- function bitRotateLeft(num, cnt) {
195
- return num << cnt | num >>> 32 - cnt;
196
- }
197
- /*
198
- * These functions implement the four basic operations the algorithm uses.
199
- */
200
-
201
-
202
- function md5cmn(q, a, b, x, s, t) {
203
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
204
- }
205
-
206
- function md5ff(a, b, c, d, x, s, t) {
207
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
208
- }
209
-
210
- function md5gg(a, b, c, d, x, s, t) {
211
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
212
- }
213
-
214
- function md5hh(a, b, c, d, x, s, t) {
215
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
216
- }
217
-
218
- function md5ii(a, b, c, d, x, s, t) {
219
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
220
- }
221
-
222
- var _default = md5;
223
- exports.default = _default;
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
8
- var _default = {
9
- randomUUID
10
- };
11
- exports.default = _default;
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = '00000000-0000-0000-0000-000000000000';
8
- exports.default = _default;