Skip to content

Commit

Permalink
feat: publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenHuuLich committed Dec 27, 2022
1 parent cc88a0c commit fc54154
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
> ℹ️
Before submitting an issue to this repo - Ensure it's a **issue with the code in this repo**, you may meet some issue from `rollup` config - please take a look in this document [Rollup](https://rollupjs.org/guide/en/)
Before submitting an issue to this repo - Ensure it's a **issue with the code in this repo**, you may meet some issue from `rollup` config - please take a look in this document [Rollup](https://rollupjs.org/guide/en/) and vite [Vite](https://vitejs.dev/guide/)

## Why
Being a front-end engineer, especially deal with asynchronous coding, with some context special, queue loop stack in default browser not run like what you want.
Expand All @@ -10,6 +10,7 @@ So I write this lib for difference mode: `single` `parallel` `combine`

- With `AsyncQueue` mode single


- With `AsyncQueue` mode parallel

- With `AsyncQueue` mode combine
Expand All @@ -30,7 +31,7 @@ $ cd csslayout
$ yarn
```

## How is work
## Usage

```javascript
import { createAsyncQueue } from "AsyncQueue";
Expand Down
37 changes: 33 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asyncqueue",
"private": true,
"name": "asyncqueue-custom",
"private": false,
"version": "0.1.0",
"type": "module",
"scripts": {
Expand All @@ -11,5 +11,34 @@
"devDependencies": {
"typescript": "^4.9.3",
"vite": "^4.0.0"
}
}
},
"description": "> ℹ️\r Before submitting an issue to this repo - Ensure it's a **issue with the code in this repo**, you may meet some issue from `rollup` config - please take a look in this document [Rollup](https://rollupjs.org/guide/en/) and vite [Vite](https://vitejs.dev/guide/)",
"main": "index.js",
"dependencies": {
"nanoid": "^3.3.4",
"esbuild": "^0.16.11",
"is-core-module": "^2.11.0",
"function-bind": "^1.1.1",
"path-parse": "^1.0.7",
"picocolors": "^1.0.0",
"has": "^1.0.3",
"postcss": "^8.4.20",
"resolve": "^1.22.1",
"rollup": "^3.8.1",
"supports-preserve-symlinks-flag": "^1.0.0",
"source-map-js": "^1.0.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/b0yblake/AsyncQueue.git"
},
"keywords": [
"asycn-queue"
],
"author": "b0yblake",
"license": "ISC",
"bugs": {
"url": "https://github.com/b0yblake/AsyncQueue/issues"
},
"homepage": "https://github.com/b0yblake/AsyncQueue#readme"
}
2 changes: 1 addition & 1 deletion src/model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* type of the callback, except generic type on input and output
* type of the callback, except capture generic type on input and output
*/
export type Callback<T> = () => Promise<T>;

Expand Down

0 comments on commit fc54154

Please sign in to comment.