@cimplify/sdk 0.84.0 → 0.86.0
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/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{chunk-I6RE4BKH.mjs → chunk-A2GXDCSI.mjs} +2 -2
- package/dist/{chunk-XA3ZNR75.js → chunk-AETVRBKI.js} +1 -1
- package/dist/{chunk-PLTP6HWW.mjs → chunk-D6JWYYTG.mjs} +20 -20
- package/dist/{chunk-ODEPW244.js → chunk-ESGKWRQS.js} +4 -4
- package/dist/{chunk-GFM5JW45.js → chunk-HJEKXCG2.js} +62 -62
- package/dist/{chunk-AMZXALF6.mjs → chunk-K5EN2W2Q.mjs} +1 -1
- package/dist/{chunk-TD3AY34U.mjs → chunk-KFLGQGMC.mjs} +3 -3
- package/dist/{chunk-NWUEWUX2.mjs → chunk-MRL53WP6.mjs} +2 -2
- package/dist/{chunk-7BM56JET.mjs → chunk-NN3WC7XZ.mjs} +3 -3
- package/dist/{chunk-7Y2O3E4D.js → chunk-PTPOQVXS.js} +5 -5
- package/dist/{chunk-HPN5R3K2.js → chunk-VUG4HTUM.js} +23 -23
- package/dist/{chunk-FKBXZ2A6.js → chunk-X4UNISYG.js} +22 -22
- package/dist/{client-CINi3Dw3.d.ts → client-BQSRj4iK.d.mts} +528 -539
- package/dist/{client-Ba4Hng9i.d.mts → client-BdI24jUT.d.ts} +528 -539
- package/dist/{client-D8AjO8jb.d.ts → client-CMJO_8zo.d.ts} +2 -2
- package/dist/{client-BjUJapti.d.mts → client-DowGNrTh.d.mts} +2 -2
- package/dist/{index-DCPxHjbj.d.ts → index-BRwHpMY-.d.ts} +3 -3
- package/dist/{index-9Bl-zBAI.d.mts → index-DLb_Ldl6.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +117 -117
- package/dist/index.mjs +5 -5
- package/dist/mock/cli.mjs +659 -355
- package/dist/mock/library.js +20 -20
- package/dist/mock/library.mjs +20 -20
- package/dist/mock/msw.js +20 -20
- package/dist/mock/msw.mjs +20 -20
- package/dist/{payment-BVv9leS_.d.ts → payment-BA7KNBxg.d.ts} +3 -3
- package/dist/{payment-D61iGd0o.d.mts → payment-CFev-fOE.d.mts} +3 -3
- package/dist/{price-BYWCHYO5.d.ts → price-BNhGVB5q.d.ts} +3 -1
- package/dist/{price-Cthq6nPb.d.mts → price-nRxqVNGq.d.mts} +3 -1
- package/dist/product-BGxIfTqJ.d.mts +5400 -0
- package/dist/product-BGxIfTqJ.d.ts +5400 -0
- package/dist/react.d.mts +22 -7
- package/dist/react.d.ts +22 -7
- package/dist/react.js +177 -155
- package/dist/react.mjs +57 -36
- package/dist/{server-BjQ0xWmc.d.mts → server-9u0LiG5U.d.mts} +1 -1
- package/dist/{server-DDaQIYLa.d.ts → server-BH7DTaaz.d.ts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +10 -10
- package/dist/server.mjs +4 -4
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +81 -81
- package/dist/testing.mjs +7 -7
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +29 -29
- package/dist/utils.mjs +2 -2
- package/package.json +25 -22
- package/registry/currency-selector.json +1 -1
- package/registry/digital-product-card.json +1 -1
- package/registry/digital-product-layout.json +1 -1
- package/dist/product-2MAoE0kZ.d.mts +0 -1570
- package/dist/product-2MAoE0kZ.d.ts +0 -1570
package/dist/advanced.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { k as AuthService, C as BusinessService,
|
|
2
|
-
import './product-
|
|
3
|
-
import './payment-
|
|
1
|
+
export { k as AuthService, C as BusinessService, O as CartOperations, P as CatalogueQueries, a8 as CheckoutOperations, a8 as CheckoutService, ae as CimplifyElement, af as CimplifyElements, aG as ELEMENT_TYPES, aH as EVENT_TYPES, aK as ElementEventType, aL as ElementOptions, aM as ElementType, aU as ElementsOptions, b0 as FetchQuoteInput, b9 as FxService, bd as GetProductsOptions, bg as InventoryService, bo as LinkService, bs as LiteService, bz as MESSAGE_TYPES, b$ as OrderQueries, cl as PriceQuote, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, ct as QuoteDynamicBuckets, cu as QuoteStatus, cv as QuoteUiMessage, cx as RefreshQuoteInput, cy as RefreshQuoteResult, cZ as SchedulingService, dE as createElements } from './client-BQSRj4iK.mjs';
|
|
2
|
+
import './product-BGxIfTqJ.mjs';
|
|
3
|
+
import './payment-CFev-fOE.mjs';
|
|
4
4
|
|
|
5
5
|
declare function generateIdempotencyKey(prefix?: string): string;
|
|
6
6
|
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { k as AuthService, C as BusinessService,
|
|
2
|
-
import './product-
|
|
3
|
-
import './payment-
|
|
1
|
+
export { k as AuthService, C as BusinessService, O as CartOperations, P as CatalogueQueries, a8 as CheckoutOperations, a8 as CheckoutService, ae as CimplifyElement, af as CimplifyElements, aG as ELEMENT_TYPES, aH as EVENT_TYPES, aK as ElementEventType, aL as ElementOptions, aM as ElementType, aU as ElementsOptions, b0 as FetchQuoteInput, b9 as FxService, bd as GetProductsOptions, bg as InventoryService, bo as LinkService, bs as LiteService, bz as MESSAGE_TYPES, b$ as OrderQueries, cl as PriceQuote, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, ct as QuoteDynamicBuckets, cu as QuoteStatus, cv as QuoteUiMessage, cx as RefreshQuoteInput, cy as RefreshQuoteResult, cZ as SchedulingService, dE as createElements } from './client-BdI24jUT.js';
|
|
2
|
+
import './product-BGxIfTqJ.js';
|
|
3
|
+
import './payment-BA7KNBxg.js';
|
|
4
4
|
|
|
5
5
|
declare function generateIdempotencyKey(prefix?: string): string;
|
|
6
6
|
|
package/dist/advanced.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkVUG4HTUM_js = require('./chunk-VUG4HTUM.js');
|
|
4
|
+
require('./chunk-PTPOQVXS.js');
|
|
5
|
+
require('./chunk-AETVRBKI.js');
|
|
6
6
|
require('./chunk-OWW5GUSB.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "AuthService", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkVUG4HTUM_js.AuthService; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "BusinessService", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkVUG4HTUM_js.BusinessService; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "CartOperations", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkVUG4HTUM_js.CartOperations; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkVUG4HTUM_js.CatalogueQueries; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkVUG4HTUM_js.CheckoutService; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "CheckoutService", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkVUG4HTUM_js.CheckoutService; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkVUG4HTUM_js.CimplifyElement; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkVUG4HTUM_js.CimplifyElements; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkVUG4HTUM_js.ELEMENT_TYPES; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkVUG4HTUM_js.EVENT_TYPES; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "FxService", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkVUG4HTUM_js.FxService; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "InventoryService", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkVUG4HTUM_js.InventoryService; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "LinkService", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkVUG4HTUM_js.LinkService; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "LiteService", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkVUG4HTUM_js.LiteService; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkVUG4HTUM_js.MESSAGE_TYPES; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "OrderQueries", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkVUG4HTUM_js.OrderQueries; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "SchedulingService", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkVUG4HTUM_js.SchedulingService; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "createElements", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkVUG4HTUM_js.createElements; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkVUG4HTUM_js.generateIdempotencyKey; }
|
|
85
85
|
});
|
package/dist/advanced.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-NN3WC7XZ.mjs';
|
|
2
|
+
import './chunk-KFLGQGMC.mjs';
|
|
3
|
+
import './chunk-K5EN2W2Q.mjs';
|
|
4
4
|
import './chunk-3G6RQLXK.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createMockApp } from './chunk-
|
|
2
|
-
import { createCimplifyClient } from './chunk-
|
|
1
|
+
import { createMockApp } from './chunk-D6JWYYTG.mjs';
|
|
2
|
+
import { createCimplifyClient } from './chunk-MRL53WP6.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var cimplifyRegistry = z.registry();
|
|
@@ -155,7 +155,7 @@ var ERROR_SUGGESTIONS = {
|
|
|
155
155
|
INSUFFICIENT_QUANTITY: "Requested quantity exceeds available inventory. Reduce quantity and retry.",
|
|
156
156
|
BUSINESS_ID_REQUIRED: "Business context could not be resolved. Verify the public key and business bootstrap call.",
|
|
157
157
|
INVALID_CART: "Cart is invalid for checkout. Sync cart state, ensure items exist, then retry.",
|
|
158
|
-
ORDER_TYPE_REQUIRED: "Order type is required. Provide one of delivery, pickup, or
|
|
158
|
+
ORDER_TYPE_REQUIRED: "Order type is required. Provide one of delivery, pickup, or dine-in before checkout.",
|
|
159
159
|
NO_PAYMENT_ELEMENT: "PaymentElement is required for processCheckout(). Mount it before triggering checkout.",
|
|
160
160
|
PAYMENT_NOT_MOUNTED: "PaymentElement iframe is not mounted. Mount it in the DOM before processCheckout().",
|
|
161
161
|
AUTH_INCOMPLETE: "AuthElement has not completed authentication. Wait for AUTHENTICATED before checkout.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ErrorCode } from './chunk-
|
|
1
|
+
import { ErrorCode } from './chunk-K5EN2W2Q.mjs';
|
|
2
2
|
import { __publicField, __privateAdd, __privateSet, __privateGet, __privateMethod, __privateWrapper } from './chunk-3G6RQLXK.mjs';
|
|
3
3
|
|
|
4
|
-
// ../node_modules/.bun/hono@4.12.
|
|
4
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/compose.js
|
|
5
5
|
var compose = (middleware, onError, onNotFound) => {
|
|
6
6
|
return (context, next) => {
|
|
7
7
|
let index = -1;
|
|
@@ -45,10 +45,10 @@ var compose = (middleware, onError, onNotFound) => {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
// ../node_modules/.bun/hono@4.12.
|
|
48
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/request/constants.js
|
|
49
49
|
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
|
50
50
|
|
|
51
|
-
// ../node_modules/.bun/hono@4.12.
|
|
51
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/utils/body.js
|
|
52
52
|
var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
|
53
53
|
const { all = false, dot = false } = options;
|
|
54
54
|
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
|
@@ -119,7 +119,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
// ../node_modules/.bun/hono@4.12.
|
|
122
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/utils/url.js
|
|
123
123
|
var splitPath = (path) => {
|
|
124
124
|
const paths = path.split("/");
|
|
125
125
|
if (paths[0] === "") {
|
|
@@ -322,7 +322,7 @@ var getQueryParams = (url, key) => {
|
|
|
322
322
|
};
|
|
323
323
|
var decodeURIComponent_ = decodeURIComponent;
|
|
324
324
|
|
|
325
|
-
// ../node_modules/.bun/hono@4.12.
|
|
325
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/request.js
|
|
326
326
|
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
|
327
327
|
var _validatedData, _matchResult, _HonoRequest_instances, getDecodedParam_fn, getAllDecodedParams_fn, getParamValue_fn, _cachedBody, _a;
|
|
328
328
|
var HonoRequest = (_a = class {
|
|
@@ -604,7 +604,7 @@ var HonoRequest = (_a = class {
|
|
|
604
604
|
return __privateGet(this, _matchResult)[1] ? __privateGet(this, _matchResult)[1][paramKey] : paramKey;
|
|
605
605
|
}, _cachedBody = new WeakMap(), _a);
|
|
606
606
|
|
|
607
|
-
// ../node_modules/.bun/hono@4.12.
|
|
607
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/utils/html.js
|
|
608
608
|
var HtmlEscapedCallbackPhase = {
|
|
609
609
|
Stringify: 1};
|
|
610
610
|
var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
|
|
@@ -635,7 +635,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
|
|
638
|
-
// ../node_modules/.bun/hono@4.12.
|
|
638
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/context.js
|
|
639
639
|
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
|
640
640
|
var setDefaultContentType = (contentType, headers) => {
|
|
641
641
|
return {
|
|
@@ -1035,7 +1035,7 @@ var Context = (_a2 = class {
|
|
|
1035
1035
|
return createResponseInstance(data, { status, headers: responseHeaders });
|
|
1036
1036
|
}, _a2);
|
|
1037
1037
|
|
|
1038
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1038
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/router.js
|
|
1039
1039
|
var METHOD_NAME_ALL = "ALL";
|
|
1040
1040
|
var METHOD_NAME_ALL_LOWERCASE = "all";
|
|
1041
1041
|
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
|
@@ -1043,10 +1043,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
|
|
1043
1043
|
var UnsupportedPathError = class extends Error {
|
|
1044
1044
|
};
|
|
1045
1045
|
|
|
1046
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1046
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/utils/constants.js
|
|
1047
1047
|
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
|
1048
1048
|
|
|
1049
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1049
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/hono-base.js
|
|
1050
1050
|
var notFoundHandler = (c) => {
|
|
1051
1051
|
return c.text("404 Not Found", 404);
|
|
1052
1052
|
};
|
|
@@ -1421,7 +1421,7 @@ var Hono = (_a3 = class {
|
|
|
1421
1421
|
})();
|
|
1422
1422
|
}, _a3);
|
|
1423
1423
|
|
|
1424
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1424
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
|
1425
1425
|
var emptyParam = [];
|
|
1426
1426
|
function match(method, path) {
|
|
1427
1427
|
const matchers = this.buildAllMatchers();
|
|
@@ -1442,7 +1442,7 @@ function match(method, path) {
|
|
|
1442
1442
|
return match2(method, path);
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
1445
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1445
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/node.js
|
|
1446
1446
|
var LABEL_REG_EXP_STR = "[^/]+";
|
|
1447
1447
|
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
|
1448
1448
|
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
|
@@ -1553,7 +1553,7 @@ var Node = (_a4 = class {
|
|
|
1553
1553
|
}
|
|
1554
1554
|
}, _index = new WeakMap(), _varIndex = new WeakMap(), _children = new WeakMap(), _a4);
|
|
1555
1555
|
|
|
1556
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1556
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/trie.js
|
|
1557
1557
|
var _context, _root, _a5;
|
|
1558
1558
|
var Trie = (_a5 = class {
|
|
1559
1559
|
constructor() {
|
|
@@ -1612,7 +1612,7 @@ var Trie = (_a5 = class {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
}, _context = new WeakMap(), _root = new WeakMap(), _a5);
|
|
1614
1614
|
|
|
1615
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1615
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/router.js
|
|
1616
1616
|
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
|
1617
1617
|
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
|
1618
1618
|
function buildWildcardRegExp(path) {
|
|
@@ -1794,7 +1794,7 @@ var RegExpRouter = (_a6 = class {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
}, _a6);
|
|
1796
1796
|
|
|
1797
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1797
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/router/smart-router/router.js
|
|
1798
1798
|
var _routers, _routes2, _a7;
|
|
1799
1799
|
var SmartRouter = (_a7 = class {
|
|
1800
1800
|
constructor(init) {
|
|
@@ -1850,7 +1850,7 @@ var SmartRouter = (_a7 = class {
|
|
|
1850
1850
|
}
|
|
1851
1851
|
}, _routers = new WeakMap(), _routes2 = new WeakMap(), _a7);
|
|
1852
1852
|
|
|
1853
|
-
// ../node_modules/.bun/hono@4.12.
|
|
1853
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/router/trie-router/node.js
|
|
1854
1854
|
var emptyParams = /* @__PURE__ */ Object.create(null);
|
|
1855
1855
|
var hasChildren = (children) => {
|
|
1856
1856
|
for (const _ in children) {
|
|
@@ -2020,7 +2020,7 @@ var Node2 = (_a8 = class {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
}, _a8);
|
|
2022
2022
|
|
|
2023
|
-
// ../node_modules/.bun/hono@4.12.
|
|
2023
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/router/trie-router/router.js
|
|
2024
2024
|
var _node, _a9;
|
|
2025
2025
|
var TrieRouter = (_a9 = class {
|
|
2026
2026
|
constructor() {
|
|
@@ -2043,7 +2043,7 @@ var TrieRouter = (_a9 = class {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
}, _node = new WeakMap(), _a9);
|
|
2045
2045
|
|
|
2046
|
-
// ../node_modules/.bun/hono@4.12.
|
|
2046
|
+
// ../node_modules/.bun/hono@4.12.25/node_modules/hono/dist/hono.js
|
|
2047
2047
|
var Hono2 = class extends Hono {
|
|
2048
2048
|
/**
|
|
2049
2049
|
* Creates an instance of the Hono class.
|
|
@@ -2822,7 +2822,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
|
|
|
2822
2822
|
'<select id="order-type">' +
|
|
2823
2823
|
' <option value="delivery">Delivery</option>' +
|
|
2824
2824
|
' <option value="pickup">Pickup</option>' +
|
|
2825
|
-
' <option value="
|
|
2825
|
+
' <option value="dine-in">Dine-in</option>' +
|
|
2826
2826
|
'</select>' +
|
|
2827
2827
|
'<label>Customer name</label>' +
|
|
2828
2828
|
'<input id="cust-name" value="' + (qs.get("name") || "Test Customer") + '">' +
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkX4UNISYG_js = require('./chunk-X4UNISYG.js');
|
|
4
|
+
var chunkHJEKXCG2_js = require('./chunk-HJEKXCG2.js');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
|
|
7
7
|
var cimplifyRegistry = zod.z.registry();
|
|
@@ -600,7 +600,7 @@ async function toForwardedRequest(input, init) {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function createTestClient(options = {}) {
|
|
603
|
-
const mock =
|
|
603
|
+
const mock = chunkX4UNISYG_js.createMockApp(options);
|
|
604
604
|
let sessionToken;
|
|
605
605
|
const fetchImpl = async (input, init) => {
|
|
606
606
|
const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url;
|
|
@@ -619,7 +619,7 @@ function createTestClient(options = {}) {
|
|
|
619
619
|
if (echoed) sessionToken = echoed;
|
|
620
620
|
return res;
|
|
621
621
|
};
|
|
622
|
-
const client =
|
|
622
|
+
const client = chunkHJEKXCG2_js.createCimplifyClient({
|
|
623
623
|
baseUrl: TEST_BASE_URL,
|
|
624
624
|
// Link mock lives at /v1/link on the same Hono app, so point the SDK's
|
|
625
625
|
// separate Link transport at the same TEST_BASE_URL.
|