@shware/http 0.2.21 → 0.2.22
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/dist/index.cjs +0 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +0 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -21,17 +21,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
var index_exports = {};
|
|
23
23
|
__export(index_exports, {
|
|
24
|
-
AppErrorReason: () => import_reason.AppErrorReason,
|
|
25
|
-
AuthenticationErrorReason: () => import_reason.AuthenticationErrorReason,
|
|
26
|
-
ErrorReason: () => import_reason.ErrorReason,
|
|
27
|
-
ModerationErrorReason: () => import_reason.ModerationErrorReason,
|
|
28
|
-
MultipartErrorReason: () => import_reason.MultipartErrorReason,
|
|
29
|
-
NetworkErrorReason: () => import_reason.NetworkErrorReason,
|
|
30
|
-
StatusErrorReason: () => import_reason.StatusErrorReason,
|
|
31
24
|
hasText: () => import_string.hasText
|
|
32
25
|
});
|
|
33
26
|
module.exports = __toCommonJS(index_exports);
|
|
34
|
-
var import_reason = require("./reason.cjs");
|
|
35
27
|
__reExport(index_exports, require("./detail.cjs"), module.exports);
|
|
36
28
|
__reExport(index_exports, require("./status.cjs"), module.exports);
|
|
37
29
|
__reExport(index_exports, require("./vaild.cjs"), module.exports);
|
|
@@ -40,13 +32,6 @@ __reExport(index_exports, require("./response.cjs"), module.exports);
|
|
|
40
32
|
var import_string = require("./utils/string.cjs");
|
|
41
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
42
34
|
0 && (module.exports = {
|
|
43
|
-
AppErrorReason,
|
|
44
|
-
AuthenticationErrorReason,
|
|
45
|
-
ErrorReason,
|
|
46
|
-
ModerationErrorReason,
|
|
47
|
-
MultipartErrorReason,
|
|
48
|
-
NetworkErrorReason,
|
|
49
|
-
StatusErrorReason,
|
|
50
35
|
hasText,
|
|
51
36
|
...require("./detail.cjs"),
|
|
52
37
|
...require("./status.cjs"),
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @example\n * import { Details, Status } from '@repo/error';\n *\n * Status.adapter = () => new Error('Error');\n *\n * const details = Details.new()\n * .requestInfo({ requestId: '1234567890', servingData: '/v1/tests' })\n * .errorInfo({ reason: 'ACCOUNT_LOCKED' });\n *\n * throw Status.alreadyExists('xxx').error(details);\n */\n\nexport {\n NetworkErrorReason,\n StatusErrorReason,\n AuthenticationErrorReason,\n ModerationErrorReason,\n MultipartErrorReason,\n AppErrorReason,\n ErrorReason,\n} from './reason';\n\nexport * from './detail';\nexport * from './status';\nexport * from './vaild';\nexport * from './snowflake';\nexport * from './response';\nexport { hasText } from './utils/string';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @example\n * import { Details, Status } from '@repo/error';\n *\n * Status.adapter = () => new Error('Error');\n *\n * const details = Details.new()\n * .requestInfo({ requestId: '1234567890', servingData: '/v1/tests' })\n * .errorInfo({ reason: 'ACCOUNT_LOCKED' });\n *\n * throw Status.alreadyExists('xxx').error(details);\n */\n\nexport type {\n NetworkErrorReason,\n StatusErrorReason,\n AuthenticationErrorReason,\n ModerationErrorReason,\n MultipartErrorReason,\n AppErrorReason,\n ErrorReason,\n} from './reason';\n\nexport * from './detail';\nexport * from './status';\nexport * from './vaild';\nexport * from './snowflake';\nexport * from './response';\nexport { hasText } from './utils/string';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBA,0BAAc,yBAvBd;AAwBA,0BAAc,yBAxBd;AAyBA,0BAAc,wBAzBd;AA0BA,0BAAc,4BA1Bd;AA2BA,0BAAc,2BA3Bd;AA4BA,oBAAwB;","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
import {
|
|
3
|
-
NetworkErrorReason,
|
|
4
|
-
StatusErrorReason,
|
|
5
|
-
AuthenticationErrorReason,
|
|
6
|
-
ModerationErrorReason,
|
|
7
|
-
MultipartErrorReason,
|
|
8
|
-
AppErrorReason,
|
|
9
|
-
ErrorReason
|
|
10
|
-
} from "./reason.mjs";
|
|
11
2
|
export * from "./detail.mjs";
|
|
12
3
|
export * from "./status.mjs";
|
|
13
4
|
export * from "./vaild.mjs";
|
|
@@ -15,13 +6,6 @@ export * from "./snowflake.mjs";
|
|
|
15
6
|
export * from "./response.mjs";
|
|
16
7
|
import { hasText } from "./utils/string.mjs";
|
|
17
8
|
export {
|
|
18
|
-
AppErrorReason,
|
|
19
|
-
AuthenticationErrorReason,
|
|
20
|
-
ErrorReason,
|
|
21
|
-
ModerationErrorReason,
|
|
22
|
-
MultipartErrorReason,
|
|
23
|
-
NetworkErrorReason,
|
|
24
|
-
StatusErrorReason,
|
|
25
9
|
hasText
|
|
26
10
|
};
|
|
27
11
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @example\n * import { Details, Status } from '@repo/error';\n *\n * Status.adapter = () => new Error('Error');\n *\n * const details = Details.new()\n * .requestInfo({ requestId: '1234567890', servingData: '/v1/tests' })\n * .errorInfo({ reason: 'ACCOUNT_LOCKED' });\n *\n * throw Status.alreadyExists('xxx').error(details);\n */\n\nexport {\n NetworkErrorReason,\n StatusErrorReason,\n AuthenticationErrorReason,\n ModerationErrorReason,\n MultipartErrorReason,\n AppErrorReason,\n ErrorReason,\n} from './reason';\n\nexport * from './detail';\nexport * from './status';\nexport * from './vaild';\nexport * from './snowflake';\nexport * from './response';\nexport { hasText } from './utils/string';\n"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @example\n * import { Details, Status } from '@repo/error';\n *\n * Status.adapter = () => new Error('Error');\n *\n * const details = Details.new()\n * .requestInfo({ requestId: '1234567890', servingData: '/v1/tests' })\n * .errorInfo({ reason: 'ACCOUNT_LOCKED' });\n *\n * throw Status.alreadyExists('xxx').error(details);\n */\n\nexport type {\n NetworkErrorReason,\n StatusErrorReason,\n AuthenticationErrorReason,\n ModerationErrorReason,\n MultipartErrorReason,\n AppErrorReason,\n ErrorReason,\n} from './reason';\n\nexport * from './detail';\nexport * from './status';\nexport * from './vaild';\nexport * from './snowflake';\nexport * from './response';\nexport { hasText } from './utils/string';\n"],"mappings":";AAuBA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,SAAS,eAAe;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shware/http",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/jest": "^29.5.14",
|
|
33
|
-
"@types/node": "^22.
|
|
33
|
+
"@types/node": "^22.15.18",
|
|
34
34
|
"jest": "^29.7.0",
|
|
35
|
-
"ts-jest": "^29.3.
|
|
36
|
-
"typescript": "^5.8.
|
|
35
|
+
"ts-jest": "^29.3.4",
|
|
36
|
+
"typescript": "^5.8.3"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"zod": "^3.24.
|
|
39
|
+
"zod": "^3.24.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"hono": "^4.7.
|
|
42
|
+
"hono": "^4.7.9"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"hono": {
|