@shware/http 1.0.3 → 1.0.4
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/error/index.cjs +63 -0
- package/dist/error/index.cjs.map +1 -0
- package/dist/error/index.d.cts +19 -0
- package/dist/error/index.d.ts +19 -0
- package/dist/error/index.mjs +35 -0
- package/dist/error/index.mjs.map +1 -0
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/error/index.ts
|
|
21
|
+
var error_exports = {};
|
|
22
|
+
__export(error_exports, {
|
|
23
|
+
CheckoutCreateError: () => CheckoutCreateError,
|
|
24
|
+
LoginCanceledError: () => LoginCanceledError,
|
|
25
|
+
LoginTimeoutError: () => LoginTimeoutError,
|
|
26
|
+
PurchaseError: () => PurchaseError
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(error_exports);
|
|
29
|
+
var LoginTimeoutError = class extends Error {
|
|
30
|
+
constructor(timeout) {
|
|
31
|
+
super(`Login timeout after ${timeout}ms`);
|
|
32
|
+
this.name = "LoginTimeoutError";
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var LoginCanceledError = class extends Error {
|
|
36
|
+
constructor() {
|
|
37
|
+
super("Login canceled by user");
|
|
38
|
+
this.name = "LoginCanceledError";
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var CheckoutCreateError = class extends Error {
|
|
42
|
+
constructor() {
|
|
43
|
+
super("Failed to create checkout session");
|
|
44
|
+
this.name = "SessionCreateError";
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var PurchaseError = /* @__PURE__ */ ((PurchaseError2) => {
|
|
48
|
+
PurchaseError2["LOGIN_TIMEOUT"] = "LOGIN_TIMEOUT";
|
|
49
|
+
PurchaseError2["LOGIN_CANCELED"] = "LOGIN_CANCELED";
|
|
50
|
+
PurchaseError2["CHECKOUT_CANCELED"] = "CHECKOUT_CANCELED";
|
|
51
|
+
PurchaseError2["CHECKOUT_CREATE_FAILED"] = "CHECKOUT_CREATE_FAILED";
|
|
52
|
+
PurchaseError2["CHECKOUT_SESSION_ID_NOT_FOUND"] = "CHECKOUT_SESSION_ID_NOT_FOUND";
|
|
53
|
+
PurchaseError2["UNKNOWN"] = "UNKNOWN";
|
|
54
|
+
return PurchaseError2;
|
|
55
|
+
})(PurchaseError || {});
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
CheckoutCreateError,
|
|
59
|
+
LoginCanceledError,
|
|
60
|
+
LoginTimeoutError,
|
|
61
|
+
PurchaseError
|
|
62
|
+
});
|
|
63
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/error/index.ts"],"sourcesContent":["export class LoginTimeoutError extends Error {\n constructor(timeout: number) {\n super(`Login timeout after ${timeout}ms`);\n this.name = 'LoginTimeoutError';\n }\n}\n\nexport class LoginCanceledError extends Error {\n constructor() {\n super('Login canceled by user');\n this.name = 'LoginCanceledError';\n }\n}\n\nexport class CheckoutCreateError extends Error {\n constructor() {\n super('Failed to create checkout session');\n this.name = 'SessionCreateError';\n }\n}\n\nexport enum PurchaseError {\n LOGIN_TIMEOUT = 'LOGIN_TIMEOUT',\n LOGIN_CANCELED = 'LOGIN_CANCELED',\n CHECKOUT_CANCELED = 'CHECKOUT_CANCELED',\n CHECKOUT_CREATE_FAILED = 'CHECKOUT_CREATE_FAILED',\n CHECKOUT_SESSION_ID_NOT_FOUND = 'CHECKOUT_SESSION_ID_NOT_FOUND',\n UNKNOWN = 'UNKNOWN',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,oBAAN,cAAgC,MAAM;AAAA,EAC3C,YAAY,SAAiB;AAC3B,UAAM,uBAAuB,OAAO,IAAI;AACxC,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,qBAAN,cAAiC,MAAM;AAAA,EAC5C,cAAc;AACZ,UAAM,wBAAwB;AAC9B,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,sBAAN,cAAkC,MAAM;AAAA,EAC7C,cAAc;AACZ,UAAM,mCAAmC;AACzC,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,mBAAgB;AAChB,EAAAA,eAAA,oBAAiB;AACjB,EAAAA,eAAA,uBAAoB;AACpB,EAAAA,eAAA,4BAAyB;AACzB,EAAAA,eAAA,mCAAgC;AAChC,EAAAA,eAAA,aAAU;AANA,SAAAA;AAAA,GAAA;","names":["PurchaseError"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare class LoginTimeoutError extends Error {
|
|
2
|
+
constructor(timeout: number);
|
|
3
|
+
}
|
|
4
|
+
declare class LoginCanceledError extends Error {
|
|
5
|
+
constructor();
|
|
6
|
+
}
|
|
7
|
+
declare class CheckoutCreateError extends Error {
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
declare enum PurchaseError {
|
|
11
|
+
LOGIN_TIMEOUT = "LOGIN_TIMEOUT",
|
|
12
|
+
LOGIN_CANCELED = "LOGIN_CANCELED",
|
|
13
|
+
CHECKOUT_CANCELED = "CHECKOUT_CANCELED",
|
|
14
|
+
CHECKOUT_CREATE_FAILED = "CHECKOUT_CREATE_FAILED",
|
|
15
|
+
CHECKOUT_SESSION_ID_NOT_FOUND = "CHECKOUT_SESSION_ID_NOT_FOUND",
|
|
16
|
+
UNKNOWN = "UNKNOWN"
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { CheckoutCreateError, LoginCanceledError, LoginTimeoutError, PurchaseError };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare class LoginTimeoutError extends Error {
|
|
2
|
+
constructor(timeout: number);
|
|
3
|
+
}
|
|
4
|
+
declare class LoginCanceledError extends Error {
|
|
5
|
+
constructor();
|
|
6
|
+
}
|
|
7
|
+
declare class CheckoutCreateError extends Error {
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
declare enum PurchaseError {
|
|
11
|
+
LOGIN_TIMEOUT = "LOGIN_TIMEOUT",
|
|
12
|
+
LOGIN_CANCELED = "LOGIN_CANCELED",
|
|
13
|
+
CHECKOUT_CANCELED = "CHECKOUT_CANCELED",
|
|
14
|
+
CHECKOUT_CREATE_FAILED = "CHECKOUT_CREATE_FAILED",
|
|
15
|
+
CHECKOUT_SESSION_ID_NOT_FOUND = "CHECKOUT_SESSION_ID_NOT_FOUND",
|
|
16
|
+
UNKNOWN = "UNKNOWN"
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { CheckoutCreateError, LoginCanceledError, LoginTimeoutError, PurchaseError };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/error/index.ts
|
|
2
|
+
var LoginTimeoutError = class extends Error {
|
|
3
|
+
constructor(timeout) {
|
|
4
|
+
super(`Login timeout after ${timeout}ms`);
|
|
5
|
+
this.name = "LoginTimeoutError";
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
var LoginCanceledError = class extends Error {
|
|
9
|
+
constructor() {
|
|
10
|
+
super("Login canceled by user");
|
|
11
|
+
this.name = "LoginCanceledError";
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
var CheckoutCreateError = class extends Error {
|
|
15
|
+
constructor() {
|
|
16
|
+
super("Failed to create checkout session");
|
|
17
|
+
this.name = "SessionCreateError";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var PurchaseError = /* @__PURE__ */ ((PurchaseError2) => {
|
|
21
|
+
PurchaseError2["LOGIN_TIMEOUT"] = "LOGIN_TIMEOUT";
|
|
22
|
+
PurchaseError2["LOGIN_CANCELED"] = "LOGIN_CANCELED";
|
|
23
|
+
PurchaseError2["CHECKOUT_CANCELED"] = "CHECKOUT_CANCELED";
|
|
24
|
+
PurchaseError2["CHECKOUT_CREATE_FAILED"] = "CHECKOUT_CREATE_FAILED";
|
|
25
|
+
PurchaseError2["CHECKOUT_SESSION_ID_NOT_FOUND"] = "CHECKOUT_SESSION_ID_NOT_FOUND";
|
|
26
|
+
PurchaseError2["UNKNOWN"] = "UNKNOWN";
|
|
27
|
+
return PurchaseError2;
|
|
28
|
+
})(PurchaseError || {});
|
|
29
|
+
export {
|
|
30
|
+
CheckoutCreateError,
|
|
31
|
+
LoginCanceledError,
|
|
32
|
+
LoginTimeoutError,
|
|
33
|
+
PurchaseError
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/error/index.ts"],"sourcesContent":["export class LoginTimeoutError extends Error {\n constructor(timeout: number) {\n super(`Login timeout after ${timeout}ms`);\n this.name = 'LoginTimeoutError';\n }\n}\n\nexport class LoginCanceledError extends Error {\n constructor() {\n super('Login canceled by user');\n this.name = 'LoginCanceledError';\n }\n}\n\nexport class CheckoutCreateError extends Error {\n constructor() {\n super('Failed to create checkout session');\n this.name = 'SessionCreateError';\n }\n}\n\nexport enum PurchaseError {\n LOGIN_TIMEOUT = 'LOGIN_TIMEOUT',\n LOGIN_CANCELED = 'LOGIN_CANCELED',\n CHECKOUT_CANCELED = 'CHECKOUT_CANCELED',\n CHECKOUT_CREATE_FAILED = 'CHECKOUT_CREATE_FAILED',\n CHECKOUT_SESSION_ID_NOT_FOUND = 'CHECKOUT_SESSION_ID_NOT_FOUND',\n UNKNOWN = 'UNKNOWN',\n}\n"],"mappings":";AAAO,IAAM,oBAAN,cAAgC,MAAM;AAAA,EAC3C,YAAY,SAAiB;AAC3B,UAAM,uBAAuB,OAAO,IAAI;AACxC,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,qBAAN,cAAiC,MAAM;AAAA,EAC5C,cAAc;AACZ,UAAM,wBAAwB;AAC9B,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,sBAAN,cAAkC,MAAM;AAAA,EAC7C,cAAc;AACZ,UAAM,mCAAmC;AACzC,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,mBAAgB;AAChB,EAAAA,eAAA,oBAAiB;AACjB,EAAAA,eAAA,uBAAoB;AACpB,EAAAA,eAAA,4BAAyB;AACzB,EAAAA,eAAA,mCAAgC;AAChC,EAAAA,eAAA,aAAU;AANA,SAAAA;AAAA,GAAA;","names":["PurchaseError"]}
|
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
// src/index.ts
|
|
32
32
|
var index_exports = {};
|
|
33
33
|
__export(index_exports, {
|
|
34
|
+
CheckoutCreateError: () => import_error.CheckoutCreateError,
|
|
35
|
+
LoginCanceledError: () => import_error.LoginCanceledError,
|
|
36
|
+
LoginTimeoutError: () => import_error.LoginTimeoutError,
|
|
34
37
|
MAX_LENGTH: () => MAX_LENGTH,
|
|
38
|
+
PurchaseError: () => import_error.PurchaseError,
|
|
35
39
|
TokenBucket: () => import_token_bucket.TokenBucket,
|
|
36
40
|
hasText: () => import_string.hasText,
|
|
37
41
|
invariant: () => import_invariant.invariant,
|
|
@@ -50,9 +54,14 @@ var import_timing = require("./utils/timing.cjs");
|
|
|
50
54
|
var import_webhook = require("./webhook.cjs");
|
|
51
55
|
var import_invariant = require("./utils/invariant.cjs");
|
|
52
56
|
var import_token_bucket = require("./utils/token-bucket.cjs");
|
|
57
|
+
var import_error = require("./error/index.cjs");
|
|
53
58
|
// Annotate the CommonJS export names for ESM import in node:
|
|
54
59
|
0 && (module.exports = {
|
|
60
|
+
CheckoutCreateError,
|
|
61
|
+
LoginCanceledError,
|
|
62
|
+
LoginTimeoutError,
|
|
55
63
|
MAX_LENGTH,
|
|
64
|
+
PurchaseError,
|
|
56
65
|
TokenBucket,
|
|
57
66
|
hasText,
|
|
58
67
|
invariant,
|
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 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 * as MAX_LENGTH from './max-length/index';\nexport { hasText } from './utils/string';\nexport { timing } from './utils/timing';\nexport { verifyStandardWebhook } from './webhook';\nexport { invariant } from './utils/invariant';\nexport { TokenBucket, type TokenBucketOptions } from './utils/token-bucket';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBA,0BAAc,yBAvBd;AAwBA,0BAAc,yBAxBd;AAyBA,0BAAc,wBAzBd;AA0BA,0BAAc,4BA1Bd;AA2BA,0BAAc,2BA3Bd;AA4BA,iBAA4B;AAC5B,oBAAwB;AACxB,oBAAuB;AACvB,qBAAsC;AACtC,uBAA0B;AAC1B,0BAAqD;","names":[]}
|
|
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 * as MAX_LENGTH from './max-length/index';\nexport { hasText } from './utils/string';\nexport { timing } from './utils/timing';\nexport { verifyStandardWebhook } from './webhook';\nexport { invariant } from './utils/invariant';\nexport { TokenBucket, type TokenBucketOptions } from './utils/token-bucket';\n\nexport {\n LoginTimeoutError,\n LoginCanceledError,\n CheckoutCreateError,\n PurchaseError,\n} from './error/index';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBA,0BAAc,yBAvBd;AAwBA,0BAAc,yBAxBd;AAyBA,0BAAc,wBAzBd;AA0BA,0BAAc,4BA1Bd;AA2BA,0BAAc,2BA3Bd;AA4BA,iBAA4B;AAC5B,oBAAwB;AACxB,oBAAuB;AACvB,qBAAsC;AACtC,uBAA0B;AAC1B,0BAAqD;AAErD,mBAKO;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -10,5 +10,6 @@ export { timing } from './utils/timing.cjs';
|
|
|
10
10
|
export { verifyStandardWebhook } from './webhook.cjs';
|
|
11
11
|
export { invariant } from './utils/invariant.cjs';
|
|
12
12
|
export { TokenBucket, TokenBucketOptions } from './utils/token-bucket.cjs';
|
|
13
|
+
export { CheckoutCreateError, LoginCanceledError, LoginTimeoutError, PurchaseError } from './error/index.cjs';
|
|
13
14
|
import 'zod/v4-mini';
|
|
14
15
|
import 'zod/v4/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export { timing } from './utils/timing.js';
|
|
|
10
10
|
export { verifyStandardWebhook } from './webhook.js';
|
|
11
11
|
export { invariant } from './utils/invariant.js';
|
|
12
12
|
export { TokenBucket, TokenBucketOptions } from './utils/token-bucket.js';
|
|
13
|
+
export { CheckoutCreateError, LoginCanceledError, LoginTimeoutError, PurchaseError } from './error/index.js';
|
|
13
14
|
import 'zod/v4-mini';
|
|
14
15
|
import 'zod/v4/core';
|
package/dist/index.mjs
CHANGED
|
@@ -10,8 +10,18 @@ import { timing } from "./utils/timing.mjs";
|
|
|
10
10
|
import { verifyStandardWebhook } from "./webhook.mjs";
|
|
11
11
|
import { invariant } from "./utils/invariant.mjs";
|
|
12
12
|
import { TokenBucket } from "./utils/token-bucket.mjs";
|
|
13
|
+
import {
|
|
14
|
+
LoginTimeoutError,
|
|
15
|
+
LoginCanceledError,
|
|
16
|
+
CheckoutCreateError,
|
|
17
|
+
PurchaseError
|
|
18
|
+
} from "./error/index.mjs";
|
|
13
19
|
export {
|
|
20
|
+
CheckoutCreateError,
|
|
21
|
+
LoginCanceledError,
|
|
22
|
+
LoginTimeoutError,
|
|
14
23
|
MAX_LENGTH,
|
|
24
|
+
PurchaseError,
|
|
15
25
|
TokenBucket,
|
|
16
26
|
hasText,
|
|
17
27
|
invariant,
|
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 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 * as MAX_LENGTH from './max-length/index';\nexport { hasText } from './utils/string';\nexport { timing } from './utils/timing';\nexport { verifyStandardWebhook } from './webhook';\nexport { invariant } from './utils/invariant';\nexport { TokenBucket, type TokenBucketOptions } from './utils/token-bucket';\n"],"mappings":";AAuBA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,YAAY,gBAAgB;AAC5B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,6BAA6B;AACtC,SAAS,iBAAiB;AAC1B,SAAS,mBAA4C;","names":[]}
|
|
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 * as MAX_LENGTH from './max-length/index';\nexport { hasText } from './utils/string';\nexport { timing } from './utils/timing';\nexport { verifyStandardWebhook } from './webhook';\nexport { invariant } from './utils/invariant';\nexport { TokenBucket, type TokenBucketOptions } from './utils/token-bucket';\n\nexport {\n LoginTimeoutError,\n LoginCanceledError,\n CheckoutCreateError,\n PurchaseError,\n} from './error/index';\n"],"mappings":";AAuBA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,YAAY,gBAAgB;AAC5B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,6BAA6B;AACtC,SAAS,iBAAiB;AAC1B,SAAS,mBAA4C;AAErD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|