more-proms 0.0.1
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/README.md +25 -0
- package/package.json +79 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# More proms
|
|
2
|
+
|
|
3
|
+
A collection of additional promise extending classes. Including a (from the outside) ResablePromise, CancelAblePromise and a latestLatent utility function.
|
|
4
|
+
|
|
5
|
+
> Please note that More proms is currently under development and not yet suited for production
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```shell
|
|
10
|
+
$ npm i more-proms
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import moreProms from "more-proms"
|
|
19
|
+
|
|
20
|
+
moreProms()
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Contribute
|
|
24
|
+
|
|
25
|
+
All feedback is appreciated. Create a pull request or write an issue.
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "more-proms",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A collection of additional promise extending classes. Including a (from the outside) ResablePromise, CancelAblePromise and a latestLatent utility function.",
|
|
5
|
+
"main": "./app/dist/esm/moreProms.mjs",
|
|
6
|
+
"types": "./app/dist/esm/moreProms.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
"node": {
|
|
9
|
+
"import": "./app/dist/esm/moreProms.mjs",
|
|
10
|
+
"require": "./app/dist/cjs/moreProms.js"
|
|
11
|
+
},
|
|
12
|
+
"default": "./app/dist/esm/moreProms.mjs"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "del-cli app/dist && concurrently \"npm run buildESM\" \"npm run buildCJS\" --raw",
|
|
16
|
+
"buildESM": "tsc -p ./tsconfig.prod.esm.json && mjsify app/dist esm cjs",
|
|
17
|
+
"buildCJS": "tsc -p ./tsconfig.prod.cjs.json && npm run buildCJS2",
|
|
18
|
+
"buildCJS2": "concurrently \"rollup --config rollup.node.prod.config.mjs\" \"rollup --config rollup.node.prod.cli.config.mjs\" --hide 0",
|
|
19
|
+
"dev": "npm run devWeb",
|
|
20
|
+
"devWeb": "concurrently \"rollup --config rollup.web.dev.config.mjs -w\" \"node devServer.mjs\" --raw ",
|
|
21
|
+
"devNode": "concurrently \"rollup --config rollup.node.dev.config.mjs -w\" \"rollup --config rollup.node.prod.cli.config.mjs\" \"wait-on repl/dist/crossPlatformSpecs-repl.js && echo && echo Run \\'npm run repl\\' to run repl.\" --raw",
|
|
22
|
+
"deploy": "npm run build && npm publish",
|
|
23
|
+
"repl": "node ./repl/dist/moreProms-repl.js",
|
|
24
|
+
"start": "npm run repl",
|
|
25
|
+
"buildTest": "rollup --config rollup.node.test.config.mjs",
|
|
26
|
+
"test": "npm run buildTest && jest"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/maximilianMairinger/moreProms.git"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"more",
|
|
34
|
+
"promises",
|
|
35
|
+
"collection",
|
|
36
|
+
"cancelable",
|
|
37
|
+
"promise",
|
|
38
|
+
"cancel",
|
|
39
|
+
"able",
|
|
40
|
+
"cancelablepromise",
|
|
41
|
+
"resolve",
|
|
42
|
+
"res",
|
|
43
|
+
"resable",
|
|
44
|
+
"resolveable",
|
|
45
|
+
"latent"
|
|
46
|
+
],
|
|
47
|
+
"author": "maximilianMairinger",
|
|
48
|
+
"license": "ISC",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/maximilianMairinger/moreProms/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://github.com/maximilianMairinger/moreProms#readme",
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
55
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
56
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
57
|
+
"@rollup/plugin-typescript": "^11.1.1",
|
|
58
|
+
"@types/jest": "^26.0.15",
|
|
59
|
+
"@types/node": "^13.13.4",
|
|
60
|
+
"builtins": "^5.0.1",
|
|
61
|
+
"concurrently": "^8.0.1",
|
|
62
|
+
"del-cli": "^5.0.0",
|
|
63
|
+
"detect-port": "^1.5.1",
|
|
64
|
+
"express": "^4.18.2",
|
|
65
|
+
"jest": "^26.6.3",
|
|
66
|
+
"mjsify": "^2.0.6",
|
|
67
|
+
"open": "^9.1.0",
|
|
68
|
+
"rollup": "^3.21.7",
|
|
69
|
+
"tslib": "2.0.0",
|
|
70
|
+
"typescript": "^5.0.4",
|
|
71
|
+
"wait-on": "^7.0.1",
|
|
72
|
+
"webpack-merge": "^5.0.9"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"commander": "^10.0.1",
|
|
76
|
+
"colorful-cli-logger": "^1.0.0",
|
|
77
|
+
"req-package-json": "^2.1.2"
|
|
78
|
+
}
|
|
79
|
+
}
|