@shware/http 2.10.0 → 2.10.1
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 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,7 +48,6 @@ __export(index_exports, {
|
|
|
48
48
|
getErrorInfo: () => import_parse.getErrorInfo,
|
|
49
49
|
getErrorMessage: () => import_parse.getErrorMessage,
|
|
50
50
|
getFieldViolations: () => import_parse.getFieldViolations,
|
|
51
|
-
getGeolocation: () => import_geolocation.getGeolocation,
|
|
52
51
|
getNextPageParam: () => import_response.getNextPageParam,
|
|
53
52
|
getPreviousPageParam: () => import_response.getPreviousPageParam,
|
|
54
53
|
initialPageParam: () => import_response.initialPageParam,
|
|
@@ -65,7 +64,6 @@ var import_response = require("./response.cjs");
|
|
|
65
64
|
var import_snowflake = require("./snowflake.cjs");
|
|
66
65
|
var MAX_LENGTH = __toESM(require("./max-length/index.cjs"), 1);
|
|
67
66
|
var import_timing = require("./utils/timing.cjs");
|
|
68
|
-
var import_geolocation = require("./utils/geolocation.cjs");
|
|
69
67
|
var import_google_tag_gateway = require("./utils/google-tag-gateway.cjs");
|
|
70
68
|
var import_iso_3601_1 = require("./iso/iso_3601_1.cjs");
|
|
71
69
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -88,7 +86,6 @@ var import_iso_3601_1 = require("./iso/iso_3601_1.cjs");
|
|
|
88
86
|
getErrorInfo,
|
|
89
87
|
getErrorMessage,
|
|
90
88
|
getFieldViolations,
|
|
91
|
-
getGeolocation,
|
|
92
89
|
getNextPageParam,
|
|
93
90
|
getPreviousPageParam,
|
|
94
91
|
initialPageParam,
|
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 LoginTimeoutError,\n LoginCanceledError,\n CheckoutCreateError,\n PurchaseError,\n} from './error/index';\nexport type { ErrorReason, ResolvedErrorReason } from './error/reason';\nexport {\n DetailType,\n Details,\n type ErrorInfo,\n type RetryInfo,\n type DebugInfo,\n type QuotaFailure,\n type PreconditionFailure,\n type BadRequest,\n type RequestInfo,\n type ResourceInfo,\n type Help,\n type LocalizedMessage,\n type Detail,\n} from './error/detail';\nexport { Status, StatusError, type ErrorBody } from './error/status';\nexport { getErrorInfo, getErrorMessage, getFieldViolations } from './error/parse';\nexport {\n Items,\n Pages,\n Cursor,\n pageParamsSchema,\n initialPageParam,\n getPreviousPageParam,\n getNextPageParam,\n} from './response';\nexport type {\n Empty,\n EntityId,\n Entity,\n Response,\n InitParams,\n NextParams,\n PrevParams,\n PageParams,\n ParentPageParams,\n Page,\n InfinitePageData,\n} from './response';\n\nexport { UidGenerator, uid } from './snowflake';\n\nexport * as MAX_LENGTH from './max-length/index';\nexport { timing } from './utils/timing';\nexport {
|
|
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 LoginTimeoutError,\n LoginCanceledError,\n CheckoutCreateError,\n PurchaseError,\n} from './error/index';\nexport type { ErrorReason, ResolvedErrorReason } from './error/reason';\nexport {\n DetailType,\n Details,\n type ErrorInfo,\n type RetryInfo,\n type DebugInfo,\n type QuotaFailure,\n type PreconditionFailure,\n type BadRequest,\n type RequestInfo,\n type ResourceInfo,\n type Help,\n type LocalizedMessage,\n type Detail,\n} from './error/detail';\nexport { Status, StatusError, type ErrorBody } from './error/status';\nexport { getErrorInfo, getErrorMessage, getFieldViolations } from './error/parse';\nexport {\n Items,\n Pages,\n Cursor,\n pageParamsSchema,\n initialPageParam,\n getPreviousPageParam,\n getNextPageParam,\n} from './response';\nexport type {\n Empty,\n EntityId,\n Entity,\n Response,\n InitParams,\n NextParams,\n PrevParams,\n PageParams,\n ParentPageParams,\n Page,\n InfinitePageData,\n} from './response';\n\nexport { UidGenerator, uid } from './snowflake';\n\nexport * as MAX_LENGTH from './max-length/index';\nexport { timing } from './utils/timing';\nexport { forwardToGoogleTagGateway } from './utils/google-tag-gateway';\nexport { ISO_3601_1, type ISO3166CountryCode } from './iso/iso_3601_1';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA,mBAKO;AAEP,oBAcO;AACP,oBAAoD;AACpD,mBAAkE;AAClE,sBAQO;AAeP,uBAAkC;AAElC,iBAA4B;AAC5B,oBAAuB;AACvB,gCAA0C;AAC1C,wBAAoD;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -7,7 +7,6 @@ export { Cursor, Empty, Entity, EntityId, InfinitePageData, InitParams, Items, N
|
|
|
7
7
|
export { UidGenerator, uid } from './snowflake.cjs';
|
|
8
8
|
export { i as MAX_LENGTH } from './index-BnPgRQDl.cjs';
|
|
9
9
|
export { timing } from './utils/timing.cjs';
|
|
10
|
-
export { getGeolocation } from './utils/geolocation.cjs';
|
|
11
10
|
export { forwardToGoogleTagGateway } from './utils/google-tag-gateway.cjs';
|
|
12
11
|
export { ISO3166CountryCode, ISO_3601_1 } from './iso/iso_3601_1.cjs';
|
|
13
12
|
import 'i18next';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export { Cursor, Empty, Entity, EntityId, InfinitePageData, InitParams, Items, N
|
|
|
7
7
|
export { UidGenerator, uid } from './snowflake.js';
|
|
8
8
|
export { i as MAX_LENGTH } from './index-BnPgRQDl.js';
|
|
9
9
|
export { timing } from './utils/timing.js';
|
|
10
|
-
export { getGeolocation } from './utils/geolocation.js';
|
|
11
10
|
export { forwardToGoogleTagGateway } from './utils/google-tag-gateway.js';
|
|
12
11
|
export { ISO3166CountryCode, ISO_3601_1 } from './iso/iso_3601_1.js';
|
|
13
12
|
import 'i18next';
|
package/dist/index.mjs
CHANGED
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
import { UidGenerator, uid } from "./snowflake.mjs";
|
|
24
24
|
import * as MAX_LENGTH from "./max-length/index.mjs";
|
|
25
25
|
import { timing } from "./utils/timing.mjs";
|
|
26
|
-
import { getGeolocation } from "./utils/geolocation.mjs";
|
|
27
26
|
import { forwardToGoogleTagGateway } from "./utils/google-tag-gateway.mjs";
|
|
28
27
|
import { ISO_3601_1 } from "./iso/iso_3601_1.mjs";
|
|
29
28
|
export {
|
|
@@ -45,7 +44,6 @@ export {
|
|
|
45
44
|
getErrorInfo,
|
|
46
45
|
getErrorMessage,
|
|
47
46
|
getFieldViolations,
|
|
48
|
-
getGeolocation,
|
|
49
47
|
getNextPageParam,
|
|
50
48
|
getPreviousPageParam,
|
|
51
49
|
initialPageParam,
|
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 LoginTimeoutError,\n LoginCanceledError,\n CheckoutCreateError,\n PurchaseError,\n} from './error/index';\nexport type { ErrorReason, ResolvedErrorReason } from './error/reason';\nexport {\n DetailType,\n Details,\n type ErrorInfo,\n type RetryInfo,\n type DebugInfo,\n type QuotaFailure,\n type PreconditionFailure,\n type BadRequest,\n type RequestInfo,\n type ResourceInfo,\n type Help,\n type LocalizedMessage,\n type Detail,\n} from './error/detail';\nexport { Status, StatusError, type ErrorBody } from './error/status';\nexport { getErrorInfo, getErrorMessage, getFieldViolations } from './error/parse';\nexport {\n Items,\n Pages,\n Cursor,\n pageParamsSchema,\n initialPageParam,\n getPreviousPageParam,\n getNextPageParam,\n} from './response';\nexport type {\n Empty,\n EntityId,\n Entity,\n Response,\n InitParams,\n NextParams,\n PrevParams,\n PageParams,\n ParentPageParams,\n Page,\n InfinitePageData,\n} from './response';\n\nexport { UidGenerator, uid } from './snowflake';\n\nexport * as MAX_LENGTH from './max-length/index';\nexport { timing } from './utils/timing';\nexport {
|
|
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 LoginTimeoutError,\n LoginCanceledError,\n CheckoutCreateError,\n PurchaseError,\n} from './error/index';\nexport type { ErrorReason, ResolvedErrorReason } from './error/reason';\nexport {\n DetailType,\n Details,\n type ErrorInfo,\n type RetryInfo,\n type DebugInfo,\n type QuotaFailure,\n type PreconditionFailure,\n type BadRequest,\n type RequestInfo,\n type ResourceInfo,\n type Help,\n type LocalizedMessage,\n type Detail,\n} from './error/detail';\nexport { Status, StatusError, type ErrorBody } from './error/status';\nexport { getErrorInfo, getErrorMessage, getFieldViolations } from './error/parse';\nexport {\n Items,\n Pages,\n Cursor,\n pageParamsSchema,\n initialPageParam,\n getPreviousPageParam,\n getNextPageParam,\n} from './response';\nexport type {\n Empty,\n EntityId,\n Entity,\n Response,\n InitParams,\n NextParams,\n PrevParams,\n PageParams,\n ParentPageParams,\n Page,\n InfinitePageData,\n} from './response';\n\nexport { UidGenerator, uid } from './snowflake';\n\nexport * as MAX_LENGTH from './max-length/index';\nexport { timing } from './utils/timing';\nexport { forwardToGoogleTagGateway } from './utils/google-tag-gateway';\nexport { ISO_3601_1, type ISO3166CountryCode } from './iso/iso_3601_1';\n"],"mappings":";AAaA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,OAYK;AACP,SAAS,QAAQ,mBAAmC;AACpD,SAAS,cAAc,iBAAiB,0BAA0B;AAClE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAeP,SAAS,cAAc,WAAW;AAElC,YAAY,gBAAgB;AAC5B,SAAS,cAAc;AACvB,SAAS,iCAAiC;AAC1C,SAAS,kBAA2C;","names":[]}
|