Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "asygen", | ||
"description": "0-Deps, simple and fast async generator library for browser and NodeJS", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"type": "module", | ||
@@ -67,7 +67,7 @@ "types": "build/index.d.ts", | ||
"@types/node": "^20.3.1", | ||
"@typescript-eslint/eslint-plugin": "^5.59.11", | ||
"@typescript-eslint/parser": "^5.59.11", | ||
"@typescript-eslint/eslint-plugin": "^6.3.0", | ||
"@typescript-eslint/parser": "^6.3.0", | ||
"eslint": "^8.42.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"fast-glob": "^3.2.12", | ||
@@ -77,4 +77,3 @@ "husky": "^8.0.3", | ||
"jest": "^29.5.0", | ||
"prettier": "^2.8.8", | ||
"pretty-quick": "^3.1.3", | ||
"prettier": "^3.0.1", | ||
"ts-jest": "^29.1.0", | ||
@@ -81,0 +80,0 @@ "typescript": "^5.1.3" |
@@ -11,3 +11,3 @@ import { createQueue } from './queue.js'; | ||
} | ||
}) | ||
}), | ||
).then(async () => queue.done({ value: null, done: true })); | ||
@@ -14,0 +14,0 @@ |
@@ -17,3 +17,3 @@ import { createQueue } from './queue.js'; | ||
await queue.push({ value, done: false }).promise; | ||
}) | ||
}), | ||
).then(async (value) => queue.done({ value, done: true })); | ||
@@ -20,0 +20,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { defer, Deferred, Status } from './defer.js'; | ||
import { defer, Deferred } from './defer.js'; | ||
@@ -45,4 +45,4 @@ export const createQueue = <T, E = Error>() => { | ||
[...pendingQueue, ...resolvedQueue, ...requestQueue].map( | ||
(d) => d.promise | ||
) | ||
(d) => d.promise, | ||
), | ||
); | ||
@@ -49,0 +49,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16
40183