@alwatr/async-queue 1.3.1 → 1.3.2
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 +6 -0
- package/README.md +1 -1
- package/dist/main.cjs +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.2](https://github.com/Alwatr/nanolib/compare/@alwatr/async-queue@1.3.1...@alwatr/async-queue@1.3.2) (2024-10-10)
|
|
7
|
+
|
|
8
|
+
### Dependencies update
|
|
9
|
+
|
|
10
|
+
* bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot]
|
|
11
|
+
|
|
6
12
|
## [1.3.1](https://github.com/Alwatr/nanolib/compare/@alwatr/async-queue@1.3.0...@alwatr/async-queue@1.3.1) (2024-10-08)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @alwatr/async-queue
|
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ Output:
|
|
|
54
54
|
|
|
55
55
|
## Sponsors
|
|
56
56
|
|
|
57
|
-
The following companies, organizations, and individuals support
|
|
57
|
+
The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
|
|
58
58
|
|
|
59
59
|
[](https://exirstudio.com)
|
|
60
60
|
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @alwatr/async-queue v1.3.
|
|
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.
|
|
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});
|
|
3
3
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @alwatr/async-queue v1.3.
|
|
2
|
-
import{newFlatomise as t}from"@alwatr/flatomise";import{packageTracer as n}from"@alwatr/package-tracer";n.add("@alwatr/async-queue","1.3.
|
|
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};
|
|
3
3
|
//# sourceMappingURL=main.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/async-queue",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
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": [
|
|
@@ -74,16 +74,16 @@
|
|
|
74
74
|
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@alwatr/flatomise": "^1.2.
|
|
78
|
-
"@alwatr/package-tracer": "^1.0.
|
|
77
|
+
"@alwatr/flatomise": "^1.2.2",
|
|
78
|
+
"@alwatr/package-tracer": "^1.0.2"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@alwatr/nano-build": "^1.
|
|
81
|
+
"@alwatr/nano-build": "^1.6.0",
|
|
82
82
|
"@alwatr/prettier-config": "^1.0.5",
|
|
83
|
-
"@alwatr/tsconfig-base": "^1.3.
|
|
84
|
-
"@alwatr/type-helper": "^2.0.
|
|
83
|
+
"@alwatr/tsconfig-base": "^1.3.1",
|
|
84
|
+
"@alwatr/type-helper": "^2.0.1",
|
|
85
85
|
"jest": "^29.7.0",
|
|
86
|
-
"typescript": "^5.6.
|
|
86
|
+
"typescript": "^5.6.3"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "6ad24764eae1b88d7d1bb19217578b02b8c22aaf"
|
|
89
89
|
}
|