@alwatr/async-queue 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.3.4](https://github.com/Alwatr/nanolib/compare/@alwatr/async-queue@1.3.3...@alwatr/async-queue@1.3.4) (2024-10-11)
7
+
8
+ ### Miscellaneous Chores
9
+
10
+ * include LICENSE and LEGAL files to publish ([09f366f](https://github.com/Alwatr/nanolib/commit/09f366f680bfa9fb26acb2cd1ccbc68c5a9e9ad8)) by @AliMD
11
+
12
+ ## [1.3.3](https://github.com/Alwatr/nanolib/compare/@alwatr/async-queue@1.3.2...@alwatr/async-queue@1.3.3) (2024-10-11)
13
+
14
+ **Note:** Version bump only for package @alwatr/async-queue
15
+
6
16
  ## [1.3.2](https://github.com/Alwatr/nanolib/compare/@alwatr/async-queue@1.3.1...@alwatr/async-queue@1.3.2) (2024-10-10)
7
17
 
8
18
  ### Dependencies update
package/dist/main.cjs CHANGED
@@ -1,3 +1,116 @@
1
- /* @alwatr/async-queue v1.3.2 */
2
- "use strict";var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var p=(i,e)=>{for(var o in e)t(i,o,{get:e[o],enumerable:!0})},c=(i,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of m(e))!h.call(i,s)&&s!==o&&t(i,s,{get:()=>e[s],enumerable:!(r=a(e,s))||r.enumerable});return i};var l=i=>c(t({},"__esModule",{value:!0}),i);var q={};p(q,{AsyncQueue:()=>n});module.exports=l(q);var u=require("@alwatr/flatomise"),_=require("@alwatr/package-tracer");_.packageTracer.add("@alwatr/async-queue","1.3.2");var n=class{constructor(){this.queue__={}}async push(e,o){let r=(0,u.newFlatomise)(),s=this.queue__[e];this.queue__[e]=r.promise;try{await s}catch{}return setTimeout(()=>{o().then(r.resolve,r.reject).then(()=>{this.queue__[e]===r.promise&&delete this.queue__[e]})},0),r.promise}isRunning(e){return this.queue__[e]!==void 0}waitForFinish(e){return this.queue__[e]??Promise.resolve()}waitForAllFinish(){return Promise.all(Object.values(this.queue__))}};0&&(module.exports={AsyncQueue});
1
+ /* @alwatr/async-queue v1.3.4 */
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/main.ts
22
+ var main_exports = {};
23
+ __export(main_exports, {
24
+ AsyncQueue: () => AsyncQueue
25
+ });
26
+ module.exports = __toCommonJS(main_exports);
27
+ var import_flatomise = require("@alwatr/flatomise");
28
+ var import_package_tracer = require("@alwatr/package-tracer");
29
+ import_package_tracer.packageTracer.add("@alwatr/async-queue", "1.3.4");
30
+ var AsyncQueue = class {
31
+ constructor() {
32
+ /**
33
+ * A record of task IDs and their corresponding last queued task promises.
34
+ */
35
+ this.queue__ = {};
36
+ }
37
+ /**
38
+ * Push a async task to the queue.
39
+ *
40
+ * @param taskId task id
41
+ * @param task async task
42
+ * @returns A promise that resolves when the task is done.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * const queue = new AsyncQueue();
47
+ *
48
+ * function longTask() {
49
+ * queue.push('longTaskId', async () => {
50
+ * // ...
51
+ * });
52
+ * ```
53
+ */
54
+ async push(taskId, task) {
55
+ const flatomise = (0, import_flatomise.newFlatomise)();
56
+ const previousTaskPromise = this.queue__[taskId];
57
+ this.queue__[taskId] = flatomise.promise;
58
+ try {
59
+ await previousTaskPromise;
60
+ } catch (_e) {
61
+ }
62
+ setTimeout(() => {
63
+ task().then(flatomise.resolve, flatomise.reject).then(() => {
64
+ if (this.queue__[taskId] === flatomise.promise) {
65
+ delete this.queue__[taskId];
66
+ }
67
+ });
68
+ }, 0);
69
+ return flatomise.promise;
70
+ }
71
+ /**
72
+ * Check if the task running in the queue.
73
+ *
74
+ * @param taskId task id
75
+ * @returns true if the task is running, otherwise false.
76
+ * @example
77
+ * ```typescript
78
+ * if (queue.isRunning('longTaskId')) {
79
+ * // ...
80
+ * }
81
+ * ```
82
+ */
83
+ isRunning(taskId) {
84
+ return this.queue__[taskId] !== void 0;
85
+ }
86
+ /**
87
+ * Wait for the all tasks in the queue to finish.
88
+ *
89
+ * @param taskId task id
90
+ * @returns A promise that resolves when all tasks are done.
91
+ * @example
92
+ * ```typescript
93
+ * await queue.waitForFinish('longTaskId');
94
+ * ```
95
+ */
96
+ waitForFinish(taskId) {
97
+ return this.queue__[taskId] ?? Promise.resolve();
98
+ }
99
+ /**
100
+ * Wait for the all tasks in the queue to finish.
101
+ * @returns A promise that resolves when all tasks are done.
102
+ * @example
103
+ * ```typescript
104
+ * await queue.waitForAllFinish();
105
+ * ```
106
+ */
107
+ waitForAllFinish() {
108
+ return Promise.all(Object.values(this.queue__));
109
+ }
110
+ };
111
+ // Annotate the CommonJS export names for ESM import in node:
112
+ 0 && (module.exports = {
113
+ AsyncQueue
114
+ });
115
+ /*! For license information please see main.cjs.LEGAL.txt */
3
116
  //# sourceMappingURL=main.cjs.map
File without changes
package/dist/main.cjs.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/main.ts"],
4
4
  "sourcesContent": ["import {newFlatomise} from '@alwatr/flatomise';\nimport {packageTracer} from '@alwatr/package-tracer';\n\npackageTracer.add(__package_name__, __package_version__);\n\n/**\n * A queue that executes async tasks in order like mutex and semaphore methodology\n *\n * @example\n * ```ts\n * const queue = new AsyncQueue();\n *\n * function longTask() {\n * queue.push('longTaskId', async () => {\n * // ...\n * });\n * }\n * ```\n */\nexport class AsyncQueue {\n /**\n * A record of task IDs and their corresponding last queued task promises.\n */\n private queue__: DictionaryOpt<Promise<unknown>> = {};\n\n /**\n * Push a async task to the queue.\n *\n * @param taskId task id\n * @param task async task\n * @returns A promise that resolves when the task is done.\n *\n * @example\n * ```typescript\n * const queue = new AsyncQueue();\n *\n * function longTask() {\n * queue.push('longTaskId', async () => {\n * // ...\n * });\n * ```\n */\n async push<T>(taskId: string, task: () => Promise<T>): Promise<T> {\n const flatomise = newFlatomise<T>();\n\n const previousTaskPromise = this.queue__[taskId];\n this.queue__[taskId] = flatomise.promise;\n\n try {\n await previousTaskPromise;\n }\n catch (_e) {\n // ignore\n }\n\n setTimeout(() => {\n task()\n .then(flatomise.resolve, flatomise.reject)\n .then(() => {\n if (this.queue__[taskId] === flatomise.promise) {\n delete this.queue__[taskId];\n }\n });\n }, 0);\n\n return flatomise.promise;\n }\n\n /**\n * Check if the task running in the queue.\n *\n * @param taskId task id\n * @returns true if the task is running, otherwise false.\n * @example\n * ```typescript\n * if (queue.isRunning('longTaskId')) {\n * // ...\n * }\n * ```\n */\n isRunning(taskId: string): boolean {\n return this.queue__[taskId] !== undefined;\n }\n\n /**\n * Wait for the all tasks in the queue to finish.\n *\n * @param taskId task id\n * @returns A promise that resolves when all tasks are done.\n * @example\n * ```typescript\n * await queue.waitForFinish('longTaskId');\n * ```\n */\n waitForFinish(taskId: string): Promise<unknown> {\n return this.queue__[taskId] ?? Promise.resolve();\n }\n\n /**\n * Wait for the all tasks in the queue to finish.\n * @returns A promise that resolves when all tasks are done.\n * @example\n * ```typescript\n * await queue.waitForAllFinish();\n * ```\n */\n waitForAllFinish(): Promise<unknown[]> {\n return Promise.all(Object.values(this.queue__));\n }\n}\n"],
5
- "mappings": ";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA2B,6BAC3BC,EAA4B,kCAE5B,gBAAc,IAAI,sBAAkB,OAAmB,EAgBhD,IAAMH,EAAN,KAAiB,CAAjB,cAIL,KAAQ,QAA2C,CAAC,EAmBpD,MAAM,KAAQI,EAAgBC,EAAoC,CAChE,IAAMC,KAAY,gBAAgB,EAE5BC,EAAsB,KAAK,QAAQH,CAAM,EAC/C,KAAK,QAAQA,CAAM,EAAIE,EAAU,QAEjC,GAAI,CACF,MAAMC,CACR,MACW,CAEX,CAEA,kBAAW,IAAM,CACfF,EAAK,EACF,KAAKC,EAAU,QAASA,EAAU,MAAM,EACxC,KAAK,IAAM,CACN,KAAK,QAAQF,CAAM,IAAME,EAAU,SACrC,OAAO,KAAK,QAAQF,CAAM,CAE9B,CAAC,CACL,EAAG,CAAC,EAEGE,EAAU,OACnB,CAcA,UAAUF,EAAyB,CACjC,OAAO,KAAK,QAAQA,CAAM,IAAM,MAClC,CAYA,cAAcA,EAAkC,CAC9C,OAAO,KAAK,QAAQA,CAAM,GAAK,QAAQ,QAAQ,CACjD,CAUA,kBAAuC,CACrC,OAAO,QAAQ,IAAI,OAAO,OAAO,KAAK,OAAO,CAAC,CAChD,CACF",
6
- "names": ["main_exports", "__export", "AsyncQueue", "__toCommonJS", "import_flatomise", "import_package_tracer", "taskId", "task", "flatomise", "previousTaskPromise"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA2B;AAC3B,4BAA4B;AAE5B,oCAAc,IAAI,uBAAkB,OAAmB;AAgBhD,IAAM,aAAN,MAAiB;AAAA,EAAjB;AAIL;AAAA;AAAA;AAAA,SAAQ,UAA2C,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBpD,MAAM,KAAQ,QAAgB,MAAoC;AAChE,UAAM,gBAAY,+BAAgB;AAElC,UAAM,sBAAsB,KAAK,QAAQ,MAAM;AAC/C,SAAK,QAAQ,MAAM,IAAI,UAAU;AAEjC,QAAI;AACF,YAAM;AAAA,IACR,SACO,IAAI;AAAA,IAEX;AAEA,eAAW,MAAM;AACf,WAAK,EACF,KAAK,UAAU,SAAS,UAAU,MAAM,EACxC,KAAK,MAAM;AACV,YAAI,KAAK,QAAQ,MAAM,MAAM,UAAU,SAAS;AAC9C,iBAAO,KAAK,QAAQ,MAAM;AAAA,QAC5B;AAAA,MACF,CAAC;AAAA,IACL,GAAG,CAAC;AAEJ,WAAO,UAAU;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,UAAU,QAAyB;AACjC,WAAO,KAAK,QAAQ,MAAM,MAAM;AAAA,EAClC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,cAAc,QAAkC;AAC9C,WAAO,KAAK,QAAQ,MAAM,KAAK,QAAQ,QAAQ;AAAA,EACjD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,mBAAuC;AACrC,WAAO,QAAQ,IAAI,OAAO,OAAO,KAAK,OAAO,CAAC;AAAA,EAChD;AACF;",
6
+ "names": []
7
7
  }
package/dist/main.mjs CHANGED
@@ -1,3 +1,92 @@
1
- /* @alwatr/async-queue v1.3.2 */
2
- import{newFlatomise as t}from"@alwatr/flatomise";import{packageTracer as n}from"@alwatr/package-tracer";n.add("@alwatr/async-queue","1.3.2");var r=class{constructor(){this.queue__={}}async push(e,s){let i=t(),o=this.queue__[e];this.queue__[e]=i.promise;try{await o}catch{}return setTimeout(()=>{s().then(i.resolve,i.reject).then(()=>{this.queue__[e]===i.promise&&delete this.queue__[e]})},0),i.promise}isRunning(e){return this.queue__[e]!==void 0}waitForFinish(e){return this.queue__[e]??Promise.resolve()}waitForAllFinish(){return Promise.all(Object.values(this.queue__))}};export{r as AsyncQueue};
1
+ /* @alwatr/async-queue v1.3.4 */
2
+
3
+ // src/main.ts
4
+ import { newFlatomise } from "@alwatr/flatomise";
5
+ import { packageTracer } from "@alwatr/package-tracer";
6
+ packageTracer.add("@alwatr/async-queue", "1.3.4");
7
+ var AsyncQueue = class {
8
+ constructor() {
9
+ /**
10
+ * A record of task IDs and their corresponding last queued task promises.
11
+ */
12
+ this.queue__ = {};
13
+ }
14
+ /**
15
+ * Push a async task to the queue.
16
+ *
17
+ * @param taskId task id
18
+ * @param task async task
19
+ * @returns A promise that resolves when the task is done.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * const queue = new AsyncQueue();
24
+ *
25
+ * function longTask() {
26
+ * queue.push('longTaskId', async () => {
27
+ * // ...
28
+ * });
29
+ * ```
30
+ */
31
+ async push(taskId, task) {
32
+ const flatomise = newFlatomise();
33
+ const previousTaskPromise = this.queue__[taskId];
34
+ this.queue__[taskId] = flatomise.promise;
35
+ try {
36
+ await previousTaskPromise;
37
+ } catch (_e) {
38
+ }
39
+ setTimeout(() => {
40
+ task().then(flatomise.resolve, flatomise.reject).then(() => {
41
+ if (this.queue__[taskId] === flatomise.promise) {
42
+ delete this.queue__[taskId];
43
+ }
44
+ });
45
+ }, 0);
46
+ return flatomise.promise;
47
+ }
48
+ /**
49
+ * Check if the task running in the queue.
50
+ *
51
+ * @param taskId task id
52
+ * @returns true if the task is running, otherwise false.
53
+ * @example
54
+ * ```typescript
55
+ * if (queue.isRunning('longTaskId')) {
56
+ * // ...
57
+ * }
58
+ * ```
59
+ */
60
+ isRunning(taskId) {
61
+ return this.queue__[taskId] !== void 0;
62
+ }
63
+ /**
64
+ * Wait for the all tasks in the queue to finish.
65
+ *
66
+ * @param taskId task id
67
+ * @returns A promise that resolves when all tasks are done.
68
+ * @example
69
+ * ```typescript
70
+ * await queue.waitForFinish('longTaskId');
71
+ * ```
72
+ */
73
+ waitForFinish(taskId) {
74
+ return this.queue__[taskId] ?? Promise.resolve();
75
+ }
76
+ /**
77
+ * Wait for the all tasks in the queue to finish.
78
+ * @returns A promise that resolves when all tasks are done.
79
+ * @example
80
+ * ```typescript
81
+ * await queue.waitForAllFinish();
82
+ * ```
83
+ */
84
+ waitForAllFinish() {
85
+ return Promise.all(Object.values(this.queue__));
86
+ }
87
+ };
88
+ export {
89
+ AsyncQueue
90
+ };
91
+ /*! For license information please see main.mjs.LEGAL.txt */
3
92
  //# sourceMappingURL=main.mjs.map
File without changes
package/dist/main.mjs.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/main.ts"],
4
4
  "sourcesContent": ["import {newFlatomise} from '@alwatr/flatomise';\nimport {packageTracer} from '@alwatr/package-tracer';\n\npackageTracer.add(__package_name__, __package_version__);\n\n/**\n * A queue that executes async tasks in order like mutex and semaphore methodology\n *\n * @example\n * ```ts\n * const queue = new AsyncQueue();\n *\n * function longTask() {\n * queue.push('longTaskId', async () => {\n * // ...\n * });\n * }\n * ```\n */\nexport class AsyncQueue {\n /**\n * A record of task IDs and their corresponding last queued task promises.\n */\n private queue__: DictionaryOpt<Promise<unknown>> = {};\n\n /**\n * Push a async task to the queue.\n *\n * @param taskId task id\n * @param task async task\n * @returns A promise that resolves when the task is done.\n *\n * @example\n * ```typescript\n * const queue = new AsyncQueue();\n *\n * function longTask() {\n * queue.push('longTaskId', async () => {\n * // ...\n * });\n * ```\n */\n async push<T>(taskId: string, task: () => Promise<T>): Promise<T> {\n const flatomise = newFlatomise<T>();\n\n const previousTaskPromise = this.queue__[taskId];\n this.queue__[taskId] = flatomise.promise;\n\n try {\n await previousTaskPromise;\n }\n catch (_e) {\n // ignore\n }\n\n setTimeout(() => {\n task()\n .then(flatomise.resolve, flatomise.reject)\n .then(() => {\n if (this.queue__[taskId] === flatomise.promise) {\n delete this.queue__[taskId];\n }\n });\n }, 0);\n\n return flatomise.promise;\n }\n\n /**\n * Check if the task running in the queue.\n *\n * @param taskId task id\n * @returns true if the task is running, otherwise false.\n * @example\n * ```typescript\n * if (queue.isRunning('longTaskId')) {\n * // ...\n * }\n * ```\n */\n isRunning(taskId: string): boolean {\n return this.queue__[taskId] !== undefined;\n }\n\n /**\n * Wait for the all tasks in the queue to finish.\n *\n * @param taskId task id\n * @returns A promise that resolves when all tasks are done.\n * @example\n * ```typescript\n * await queue.waitForFinish('longTaskId');\n * ```\n */\n waitForFinish(taskId: string): Promise<unknown> {\n return this.queue__[taskId] ?? Promise.resolve();\n }\n\n /**\n * Wait for the all tasks in the queue to finish.\n * @returns A promise that resolves when all tasks are done.\n * @example\n * ```typescript\n * await queue.waitForAllFinish();\n * ```\n */\n waitForAllFinish(): Promise<unknown[]> {\n return Promise.all(Object.values(this.queue__));\n }\n}\n"],
5
- "mappings": ";AAAA,OAAQ,gBAAAA,MAAmB,oBAC3B,OAAQ,iBAAAC,MAAoB,yBAE5BA,EAAc,IAAI,sBAAkB,OAAmB,EAgBhD,IAAMC,EAAN,KAAiB,CAAjB,cAIL,KAAQ,QAA2C,CAAC,EAmBpD,MAAM,KAAQC,EAAgBC,EAAoC,CAChE,IAAMC,EAAYL,EAAgB,EAE5BM,EAAsB,KAAK,QAAQH,CAAM,EAC/C,KAAK,QAAQA,CAAM,EAAIE,EAAU,QAEjC,GAAI,CACF,MAAMC,CACR,MACW,CAEX,CAEA,kBAAW,IAAM,CACfF,EAAK,EACF,KAAKC,EAAU,QAASA,EAAU,MAAM,EACxC,KAAK,IAAM,CACN,KAAK,QAAQF,CAAM,IAAME,EAAU,SACrC,OAAO,KAAK,QAAQF,CAAM,CAE9B,CAAC,CACL,EAAG,CAAC,EAEGE,EAAU,OACnB,CAcA,UAAUF,EAAyB,CACjC,OAAO,KAAK,QAAQA,CAAM,IAAM,MAClC,CAYA,cAAcA,EAAkC,CAC9C,OAAO,KAAK,QAAQA,CAAM,GAAK,QAAQ,QAAQ,CACjD,CAUA,kBAAuC,CACrC,OAAO,QAAQ,IAAI,OAAO,OAAO,KAAK,OAAO,CAAC,CAChD,CACF",
6
- "names": ["newFlatomise", "packageTracer", "AsyncQueue", "taskId", "task", "flatomise", "previousTaskPromise"]
5
+ "mappings": ";;;AAAA,SAAQ,oBAAmB;AAC3B,SAAQ,qBAAoB;AAE5B,cAAc,IAAI,uBAAkB,OAAmB;AAgBhD,IAAM,aAAN,MAAiB;AAAA,EAAjB;AAIL;AAAA;AAAA;AAAA,SAAQ,UAA2C,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBpD,MAAM,KAAQ,QAAgB,MAAoC;AAChE,UAAM,YAAY,aAAgB;AAElC,UAAM,sBAAsB,KAAK,QAAQ,MAAM;AAC/C,SAAK,QAAQ,MAAM,IAAI,UAAU;AAEjC,QAAI;AACF,YAAM;AAAA,IACR,SACO,IAAI;AAAA,IAEX;AAEA,eAAW,MAAM;AACf,WAAK,EACF,KAAK,UAAU,SAAS,UAAU,MAAM,EACxC,KAAK,MAAM;AACV,YAAI,KAAK,QAAQ,MAAM,MAAM,UAAU,SAAS;AAC9C,iBAAO,KAAK,QAAQ,MAAM;AAAA,QAC5B;AAAA,MACF,CAAC;AAAA,IACL,GAAG,CAAC;AAEJ,WAAO,UAAU;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,UAAU,QAAyB;AACjC,WAAO,KAAK,QAAQ,MAAM,MAAM;AAAA,EAClC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,cAAc,QAAkC;AAC9C,WAAO,KAAK,QAAQ,MAAM,KAAK,QAAQ,QAAQ;AAAA,EACjD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,mBAAuC;AACrC,WAAO,QAAQ,IAAI,OAAO,OAAO,KAAK,OAAO,CAAC;AAAA,EAChD;AACF;",
6
+ "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/async-queue",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "A queue that executes async tasks in order like mutex and semaphore methodology for javascript and typescript.",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "keywords": [
@@ -41,7 +41,8 @@
41
41
  },
42
42
  "license": "AGPL-3.0-only",
43
43
  "files": [
44
- "**/*.{js,mjs,cjs,map,d.ts,html,md}",
44
+ "**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}",
45
+ "LICENSE",
45
46
  "!demo/**/*"
46
47
  ],
47
48
  "publishConfig": {
@@ -74,16 +75,16 @@
74
75
  "clean": "rm -rfv dist *.tsbuildinfo"
75
76
  },
76
77
  "dependencies": {
77
- "@alwatr/flatomise": "^1.2.2",
78
- "@alwatr/package-tracer": "^1.0.2"
78
+ "@alwatr/flatomise": "^1.2.4",
79
+ "@alwatr/package-tracer": "^1.0.4"
79
80
  },
80
81
  "devDependencies": {
81
- "@alwatr/nano-build": "^1.6.0",
82
- "@alwatr/prettier-config": "^1.0.5",
83
- "@alwatr/tsconfig-base": "^1.3.1",
84
- "@alwatr/type-helper": "^2.0.1",
82
+ "@alwatr/nano-build": "^2.0.1",
83
+ "@alwatr/prettier-config": "^1.0.6",
84
+ "@alwatr/tsconfig-base": "^1.3.2",
85
+ "@alwatr/type-helper": "^2.0.2",
85
86
  "jest": "^29.7.0",
86
87
  "typescript": "^5.6.3"
87
88
  },
88
- "gitHead": "6ad24764eae1b88d7d1bb19217578b02b8c22aaf"
89
+ "gitHead": "2a35f99b0347aacdccf3b6f28b30ca902f02a2f1"
89
90
  }