@jwn-js/common 2.0.18 → 2.0.21
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/ApiError.d.ts +47 -47
- package/Jwt.d.ts +36 -36
- package/LICENSE +21 -21
- package/Memcached.d.ts +64 -64
- package/README.md +20 -20
- package/Server.d.ts +139 -139
- package/cookieParse.d.ts +4 -4
- package/cookieString.d.ts +9 -9
- package/docs/assets/highlight.css +1 -1
- package/docs/assets/main.js +2 -2
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +28 -2
- package/docs/classes/ApiError.html +8 -9
- package/docs/classes/AsyncJwt.html +4 -4
- package/docs/classes/Controller.html +7 -7
- package/docs/classes/Jwt.html +4 -4
- package/docs/classes/Memcached.html +8 -8
- package/docs/classes/Model.html +3 -3
- package/docs/classes/Server.html +9 -9
- package/docs/classes/Ssr.html +2 -2
- package/docs/classes/Web.html +3 -3
- package/docs/index.html +1 -1
- package/docs/interfaces/ApiErrorMessage.html +1 -1
- package/docs/interfaces/ContextSsr.html +9 -9
- package/docs/interfaces/ContextWeb.html +1 -1
- package/docs/interfaces/OptionsSsr.html +1 -1
- package/docs/interfaces/OptionsWeb.html +1 -1
- package/docs/interfaces/Route.html +1 -1
- package/docs/interfaces/Schema.html +1 -1
- package/docs/interfaces/ServerHandler.html +1 -1
- package/docs/interfaces/ServerOptions.html +1 -1
- package/docs/interfaces/ServerWebsocket.html +1 -1
- package/docs/modules.html +27 -27
- package/index.d.ts +904 -905
- package/jsonBody.d.ts +5 -5
- package/multipartBody.d.ts +27 -27
- package/package.json +5 -5
- package/readConfig.d.ts +4 -4
- package/readConfigSync.d.ts +4 -4
- package/staticBody.d.ts +17 -17
- package/urlencodedBody.d.ts +5 -5
package/jsonBody.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpResponse, HttpRequest } from 'uWebSockets.js';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @description
|
|
5
|
-
* Parser of json requests body
|
|
6
|
-
* @throws {ApiError}
|
|
7
|
-
*/
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* Parser of json requests body
|
|
6
|
+
* @throws {ApiError}
|
|
7
|
+
*/
|
|
8
8
|
declare const jsonBody: (res: HttpResponse, req: HttpRequest) => Promise<any>;
|
|
9
9
|
|
|
10
10
|
export { jsonBody };
|
package/multipartBody.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { Options } from 'formidable';
|
|
2
2
|
import { HttpResponse, HttpRequest } from 'uWebSockets.js';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* @description
|
|
6
|
-
* Parser of form urlencoded requests body
|
|
7
|
-
* @throws {ApiError}
|
|
8
|
-
*
|
|
9
|
-
* formidable1
|
|
10
|
-
* {
|
|
11
|
-
* size: 3451,
|
|
12
|
-
* path: 'C:\\Users\\PROFES~1\\AppData\\Local\\Temp\\upload_fa55df09b0f7fdb8fee94b87b7086573',
|
|
13
|
-
* name: 'logo.png',
|
|
14
|
-
* type: 'image/png',
|
|
15
|
-
* mtime: '2021-12-28T16:21:06.006Z'
|
|
16
|
-
* }
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* Migration to formidable2
|
|
20
|
-
* {
|
|
21
|
-
* size: 3451,
|
|
22
|
-
* filepath: 'C:\\Users\\PROFES~1\\AppData\\Local\\Temp\\4707bbd7d7f6bb8e59f9f3a00',
|
|
23
|
-
* newFilename: '4707bbd7d7f6bb8e59f9f3a00',
|
|
24
|
-
* mimetype: 'image/png',
|
|
25
|
-
* mtime: '2021-12-28T16:18:14.130Z',
|
|
26
|
-
* originalFilename: 'logo.png'
|
|
27
|
-
* }
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Parser of form urlencoded requests body
|
|
7
|
+
* @throws {ApiError}
|
|
8
|
+
*
|
|
9
|
+
* formidable1
|
|
10
|
+
* {
|
|
11
|
+
* size: 3451,
|
|
12
|
+
* path: 'C:\\Users\\PROFES~1\\AppData\\Local\\Temp\\upload_fa55df09b0f7fdb8fee94b87b7086573',
|
|
13
|
+
* name: 'logo.png',
|
|
14
|
+
* type: 'image/png',
|
|
15
|
+
* mtime: '2021-12-28T16:21:06.006Z'
|
|
16
|
+
* }
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* Migration to formidable2
|
|
20
|
+
* {
|
|
21
|
+
* size: 3451,
|
|
22
|
+
* filepath: 'C:\\Users\\PROFES~1\\AppData\\Local\\Temp\\4707bbd7d7f6bb8e59f9f3a00',
|
|
23
|
+
* newFilename: '4707bbd7d7f6bb8e59f9f3a00',
|
|
24
|
+
* mimetype: 'image/png',
|
|
25
|
+
* mtime: '2021-12-28T16:18:14.130Z',
|
|
26
|
+
* originalFilename: 'logo.png'
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
31
|
declare const multipartBody: (res: HttpResponse, req: HttpRequest, options?: Options) => Promise<any>;
|
|
32
32
|
|
|
33
33
|
export { multipartBody };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jwn-js/common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.21",
|
|
5
5
|
"description": "@jwn-js/common package",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"types": "./index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^4.23.0",
|
|
28
28
|
"@typescript-eslint/parser": "^4.26.1",
|
|
29
29
|
"chalk": "^4.1.1",
|
|
30
|
-
"esbuild": "^0.14.
|
|
30
|
+
"esbuild": "^0.14.39",
|
|
31
31
|
"eslint": "^7.26.0",
|
|
32
32
|
"fs-extra": "^10.0.0",
|
|
33
33
|
"jest": "^27.4.5",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"zlib": "^1.0.5"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"buildmsql": "^1.3.
|
|
47
|
-
"easy-ash": "^1.1.
|
|
46
|
+
"buildmsql": "^1.3.14",
|
|
47
|
+
"easy-ash": "^1.1.7",
|
|
48
48
|
"formidable": "2",
|
|
49
49
|
"memjs": "^1.3.0",
|
|
50
50
|
"reflect-metadata": "^0.1.13",
|
|
51
|
-
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.
|
|
51
|
+
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.10.0",
|
|
52
52
|
"vite-ssr-vue": "^1.0.2",
|
|
53
53
|
"xml-js": "^1.6.11"
|
|
54
54
|
}
|
package/readConfig.d.ts
CHANGED
package/readConfigSync.d.ts
CHANGED
package/staticBody.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { HttpResponse, HttpRequest } from 'uWebSockets.js';
|
|
2
2
|
|
|
3
|
-
declare const exts: Record<string, string>;
|
|
4
|
-
/**
|
|
5
|
-
* approved extensions
|
|
6
|
-
*/
|
|
7
|
-
declare const extensions: Array<string>;
|
|
8
|
-
/**
|
|
9
|
-
* Get extension from path
|
|
10
|
-
* @param path
|
|
11
|
-
* @return {string}
|
|
12
|
-
*/
|
|
13
|
-
declare const getExt: (path: string) => string;
|
|
14
|
-
/**
|
|
15
|
-
* Reed static files
|
|
16
|
-
* @param req
|
|
17
|
-
* @param res
|
|
18
|
-
* @param base
|
|
19
|
-
*/
|
|
3
|
+
declare const exts: Record<string, string>;
|
|
4
|
+
/**
|
|
5
|
+
* approved extensions
|
|
6
|
+
*/
|
|
7
|
+
declare const extensions: Array<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Get extension from path
|
|
10
|
+
* @param path
|
|
11
|
+
* @return {string}
|
|
12
|
+
*/
|
|
13
|
+
declare const getExt: (path: string) => string;
|
|
14
|
+
/**
|
|
15
|
+
* Reed static files
|
|
16
|
+
* @param req
|
|
17
|
+
* @param res
|
|
18
|
+
* @param base
|
|
19
|
+
*/
|
|
20
20
|
declare function staticBody(res: HttpResponse, req: HttpRequest, base: string): Promise<void>;
|
|
21
21
|
|
|
22
22
|
export { extensions, exts, getExt, staticBody };
|
package/urlencodedBody.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpResponse, HttpRequest } from 'uWebSockets.js';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @description
|
|
5
|
-
* Parser of form urlencoded requests body
|
|
6
|
-
* @throws {ApiError}
|
|
7
|
-
*/
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* Parser of form urlencoded requests body
|
|
6
|
+
* @throws {ApiError}
|
|
7
|
+
*/
|
|
8
8
|
declare const urlencodedBody: (res: HttpResponse, req: HttpRequest) => Promise<any>;
|
|
9
9
|
|
|
10
10
|
export { urlencodedBody };
|