@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.
Files changed (41) hide show
  1. package/ApiError.d.ts +47 -47
  2. package/Jwt.d.ts +36 -36
  3. package/LICENSE +21 -21
  4. package/Memcached.d.ts +64 -64
  5. package/README.md +20 -20
  6. package/Server.d.ts +139 -139
  7. package/cookieParse.d.ts +4 -4
  8. package/cookieString.d.ts +9 -9
  9. package/docs/assets/highlight.css +1 -1
  10. package/docs/assets/main.js +2 -2
  11. package/docs/assets/search.js +1 -1
  12. package/docs/assets/style.css +28 -2
  13. package/docs/classes/ApiError.html +8 -9
  14. package/docs/classes/AsyncJwt.html +4 -4
  15. package/docs/classes/Controller.html +7 -7
  16. package/docs/classes/Jwt.html +4 -4
  17. package/docs/classes/Memcached.html +8 -8
  18. package/docs/classes/Model.html +3 -3
  19. package/docs/classes/Server.html +9 -9
  20. package/docs/classes/Ssr.html +2 -2
  21. package/docs/classes/Web.html +3 -3
  22. package/docs/index.html +1 -1
  23. package/docs/interfaces/ApiErrorMessage.html +1 -1
  24. package/docs/interfaces/ContextSsr.html +9 -9
  25. package/docs/interfaces/ContextWeb.html +1 -1
  26. package/docs/interfaces/OptionsSsr.html +1 -1
  27. package/docs/interfaces/OptionsWeb.html +1 -1
  28. package/docs/interfaces/Route.html +1 -1
  29. package/docs/interfaces/Schema.html +1 -1
  30. package/docs/interfaces/ServerHandler.html +1 -1
  31. package/docs/interfaces/ServerOptions.html +1 -1
  32. package/docs/interfaces/ServerWebsocket.html +1 -1
  33. package/docs/modules.html +27 -27
  34. package/index.d.ts +904 -905
  35. package/jsonBody.d.ts +5 -5
  36. package/multipartBody.d.ts +27 -27
  37. package/package.json +5 -5
  38. package/readConfig.d.ts +4 -4
  39. package/readConfigSync.d.ts +4 -4
  40. package/staticBody.d.ts +17 -17
  41. 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 };
@@ -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.18",
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.8",
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.4",
47
- "easy-ash": "^1.1.6",
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.6.0",
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
@@ -1,7 +1,7 @@
1
- /**
2
- * @description
3
- * Read connect.json
4
- */
1
+ /**
2
+ * @description
3
+ * Read connect.json
4
+ */
5
5
  declare const readConfig: (jsonfile: string) => Promise<any>;
6
6
 
7
7
  export { readConfig };
@@ -1,7 +1,7 @@
1
- /**
2
- * @description
3
- * Read connect.json
4
- */
1
+ /**
2
+ * @description
3
+ * Read connect.json
4
+ */
5
5
  declare const readConfigSync: (jsonfile: string) => any;
6
6
 
7
7
  export { readConfigSync };
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 };
@@ -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 };