wooks 0.0.1-beta.0
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/LICENSE +21 -0
- package/README.md +522 -0
- package/dist/src/composables/body.d.ts +17 -0
- package/dist/src/composables/body.d.ts.map +1 -0
- package/dist/src/composables/cookies.d.ts +13 -0
- package/dist/src/composables/cookies.d.ts.map +1 -0
- package/dist/src/composables/core-test.d.ts +19 -0
- package/dist/src/composables/core-test.d.ts.map +1 -0
- package/dist/src/composables/core.d.ts +30 -0
- package/dist/src/composables/core.d.ts.map +1 -0
- package/dist/src/composables/header-accept.d.ts +9 -0
- package/dist/src/composables/header-accept.d.ts.map +1 -0
- package/dist/src/composables/header-authorization.d.ts +20 -0
- package/dist/src/composables/header-authorization.d.ts.map +1 -0
- package/dist/src/composables/header-set-cache-control.d.ts +9 -0
- package/dist/src/composables/header-set-cache-control.d.ts.map +1 -0
- package/dist/src/composables/headers.d.ts +11 -0
- package/dist/src/composables/headers.d.ts.map +1 -0
- package/dist/src/composables/index.d.ts +11 -0
- package/dist/src/composables/index.d.ts.map +1 -0
- package/dist/src/composables/req-res.d.ts +34 -0
- package/dist/src/composables/req-res.d.ts.map +1 -0
- package/dist/src/composables/search-params.d.ts +13 -0
- package/dist/src/composables/search-params.d.ts.map +1 -0
- package/dist/src/composables/tests/body.spec.d.ts +2 -0
- package/dist/src/composables/tests/body.spec.d.ts.map +1 -0
- package/dist/src/composables/tests/cookies.spec.d.ts +2 -0
- package/dist/src/composables/tests/cookies.spec.d.ts.map +1 -0
- package/dist/src/composables/tests/core.spec.d.ts +2 -0
- package/dist/src/composables/tests/core.spec.d.ts.map +1 -0
- package/dist/src/composables/tests/headers.spec.d.ts +2 -0
- package/dist/src/composables/tests/headers.spec.d.ts.map +1 -0
- package/dist/src/composables/tests/req-res.spec.d.ts +2 -0
- package/dist/src/composables/tests/req-res.spec.d.ts.map +1 -0
- package/dist/src/composables/tests/search-params.spec.d.ts +2 -0
- package/dist/src/composables/tests/search-params.spec.d.ts.map +1 -0
- package/dist/src/content-types/index.d.ts +97 -0
- package/dist/src/content-types/index.d.ts.map +1 -0
- package/dist/src/e2e.spec.d.ts +2 -0
- package/dist/src/e2e.spec.d.ts.map +1 -0
- package/dist/src/errors/error-renderer.d.ts +9 -0
- package/dist/src/errors/error-renderer.d.ts.map +1 -0
- package/dist/src/errors/errors.spec.d.ts +2 -0
- package/dist/src/errors/errors.spec.d.ts.map +1 -0
- package/dist/src/errors/index.d.ts +3 -0
- package/dist/src/errors/index.d.ts.map +1 -0
- package/dist/src/errors/wooks-error.d.ts +20 -0
- package/dist/src/errors/wooks-error.d.ts.map +1 -0
- package/dist/src/http.d.ts +7 -0
- package/dist/src/http.d.ts.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/mime/extensions.d.ts +1184 -0
- package/dist/src/mime/extensions.d.ts.map +1 -0
- package/dist/src/mime/index.d.ts +2 -0
- package/dist/src/mime/index.d.ts.map +1 -0
- package/dist/src/mime/mime.spec.d.ts +2 -0
- package/dist/src/mime/mime.spec.d.ts.map +1 -0
- package/dist/src/response/core.d.ts +30 -0
- package/dist/src/response/core.d.ts.map +1 -0
- package/dist/src/response/factory.d.ts +4 -0
- package/dist/src/response/factory.d.ts.map +1 -0
- package/dist/src/response/index.d.ts +4 -0
- package/dist/src/response/index.d.ts.map +1 -0
- package/dist/src/response/renderer.d.ts +8 -0
- package/dist/src/response/renderer.d.ts.map +1 -0
- package/dist/src/response/response.spec.d.ts +2 -0
- package/dist/src/response/response.spec.d.ts.map +1 -0
- package/dist/src/serve-file/serve-file.d.ts +20 -0
- package/dist/src/serve-file/serve-file.d.ts.map +1 -0
- package/dist/src/serve-file/serve-file.spec.d.ts +2 -0
- package/dist/src/serve-file/serve-file.spec.d.ts.map +1 -0
- package/dist/src/server.d.ts +26 -0
- package/dist/src/server.d.ts.map +1 -0
- package/dist/src/status-codes/index.d.ts +135 -0
- package/dist/src/status-codes/index.d.ts.map +1 -0
- package/dist/src/types.d.ts +5 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils/banner.d.ts +2 -0
- package/dist/src/utils/banner.d.ts.map +1 -0
- package/dist/src/utils/body-compressor.d.ts +8 -0
- package/dist/src/utils/body-compressor.d.ts.map +1 -0
- package/dist/src/utils/cache-control.d.ts +14 -0
- package/dist/src/utils/cache-control.d.ts.map +1 -0
- package/dist/src/utils/panic.d.ts +2 -0
- package/dist/src/utils/panic.d.ts.map +1 -0
- package/dist/src/utils/set-cookie.d.ts +16 -0
- package/dist/src/utils/set-cookie.d.ts.map +1 -0
- package/dist/src/utils/tests/body-compressor.spec.d.ts +2 -0
- package/dist/src/utils/tests/body-compressor.spec.d.ts.map +1 -0
- package/dist/src/utils/tests/set-cookie.spec.d.ts +2 -0
- package/dist/src/utils/tests/set-cookie.spec.d.ts.map +1 -0
- package/dist/src/utils/tests/time.spec.d.ts +2 -0
- package/dist/src/utils/tests/time.spec.d.ts.map +1 -0
- package/dist/src/utils/tests/url-search-params.spec.d.ts +2 -0
- package/dist/src/utils/tests/url-search-params.spec.d.ts.map +1 -0
- package/dist/src/utils/time.d.ts +5 -0
- package/dist/src/utils/time.d.ts.map +1 -0
- package/dist/src/utils/url-search-params.d.ts +6 -0
- package/dist/src/utils/url-search-params.d.ts.map +1 -0
- package/dist/wooks.cjs.prod.js +2679 -0
- package/dist/wooks.d.ts +550 -0
- package/dist/wooks.esm-bundler.js +2644 -0
- package/index.js +2 -0
- package/package.json +86 -0
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wooks",
|
|
3
|
+
"version": "0.0.1-beta.0",
|
|
4
|
+
"description": "Web Application Framework with hooks",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "dist/wooks.esm-bundler.js",
|
|
7
|
+
"types": "dist/wooks.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"index.js",
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "node ./scripts/build",
|
|
14
|
+
"release": "node ./scripts/release",
|
|
15
|
+
"test": "jest --runInBand",
|
|
16
|
+
"test:cov": "jest --runInBand --coverage",
|
|
17
|
+
"lint": "eslint --ext .ts src/**/**.ts",
|
|
18
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
19
|
+
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/prostojs/wooks.git"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"http",
|
|
27
|
+
"wooks",
|
|
28
|
+
"web",
|
|
29
|
+
"framework",
|
|
30
|
+
"app",
|
|
31
|
+
"api",
|
|
32
|
+
"rest",
|
|
33
|
+
"restful",
|
|
34
|
+
"prostojs"
|
|
35
|
+
],
|
|
36
|
+
"buildOptions": {
|
|
37
|
+
"formats": [
|
|
38
|
+
"esm-bundler",
|
|
39
|
+
"cjs"
|
|
40
|
+
],
|
|
41
|
+
"filename": "wooks"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@prostojs/router": "^0.0.13"
|
|
45
|
+
},
|
|
46
|
+
"gitHooks": {
|
|
47
|
+
"commit-msg": "node scripts/verifyCommit.js"
|
|
48
|
+
},
|
|
49
|
+
"author": "Artem Maltsev",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/prostojs/wooks/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/prostojs/wooks#readme",
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@microsoft/api-extractor": "^7.15.1",
|
|
57
|
+
"@prostojs/dye": "^0.3.0",
|
|
58
|
+
"@rollup/plugin-commonjs": "^21.0.0",
|
|
59
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
60
|
+
"@rollup/plugin-replace": "^3.0.0",
|
|
61
|
+
"@types/jest": "^27.0.2",
|
|
62
|
+
"@types/node": "^16.10.3",
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
64
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
65
|
+
"brotli": "^1.3.2",
|
|
66
|
+
"conventional-changelog": "^3.1.24",
|
|
67
|
+
"conventional-changelog-cli": "^2.1.1",
|
|
68
|
+
"enquirer": "^2.3.6",
|
|
69
|
+
"eslint": "^7.32.0",
|
|
70
|
+
"eslint-config-prettier": "^8.3.0",
|
|
71
|
+
"eslint-plugin-import": "^2.24.2",
|
|
72
|
+
"execa": "^5.1.1",
|
|
73
|
+
"fs-extra": "^10.0.0",
|
|
74
|
+
"jest": "^27.2.5",
|
|
75
|
+
"minimist": "^1.2.6",
|
|
76
|
+
"rollup": "^2.58.0",
|
|
77
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
78
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
79
|
+
"semver": "^7.3.5",
|
|
80
|
+
"ts-jest": "^27.0.5",
|
|
81
|
+
"tslib": "^2.3.1",
|
|
82
|
+
"typescript": "^4.4.3",
|
|
83
|
+
"yorkie": "^2.0.0",
|
|
84
|
+
"zlib": "^1.0.5"
|
|
85
|
+
}
|
|
86
|
+
}
|