@harrylabsj/kiwi-merchant-cloud 0.12.1 → 0.12.2
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/app/cloud/bootstrap.js +1 -0
- package/app/cloud/bootstrap.js.map +1 -1
- package/app/cloud/catalog-client.d.ts +2 -0
- package/app/cloud/catalog-client.js +5 -1
- package/app/cloud/catalog-client.js.map +1 -1
- package/app/cloud/connect-service.d.ts +9 -0
- package/app/cloud/connect-service.js +136 -15
- package/app/cloud/connect-service.js.map +1 -1
- package/app/cloud-sample/products.json +3 -3
- package/app/http/merchant-management/api.d.ts +2 -0
- package/app/http/merchant-management/api.js +5 -0
- package/app/http/merchant-management/api.js.map +1 -1
- package/app/http/merchant-management/page.js +14 -1
- package/app/http/merchant-management/page.js.map +1 -1
- package/build-manifest.json +49 -49
- package/node_modules/hono/dist/cjs/jsx/utils.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/combine/index.js +3 -1
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -2
- package/node_modules/hono/dist/jsx/utils.js +1 -1
- package/node_modules/hono/dist/middleware/combine/index.js +3 -1
- package/node_modules/hono/dist/middleware/etag/index.js +2 -2
- package/node_modules/hono/dist/middleware/language/language.js +1 -1
- package/node_modules/hono/package.json +2 -2
- package/package.json +1 -1
- package/runtime-package.json +1 -1
package/build-manifest.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": "0.1.2",
|
|
3
3
|
"artifact_kind": "kiwi-merchant-cloud-package",
|
|
4
|
-
"runtime_version": "0.12.
|
|
5
|
-
"source_commit": "
|
|
6
|
-
"source_artifact_sha256": "sha256:
|
|
7
|
-
"artifact_sha256": "sha256:
|
|
4
|
+
"runtime_version": "0.12.2",
|
|
5
|
+
"source_commit": "7be3f7e3f774de8daca61cf7c577ef63c639f999",
|
|
6
|
+
"source_artifact_sha256": "sha256:79654c5f92303aa9902eadb56d11c03bb2f0373f19958cb36022f35fb09b26d3",
|
|
7
|
+
"artifact_sha256": "sha256:b61639df82fd6fb434f660a9f781baad3148b20ba84946d4a244ea21778722db",
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
10
10
|
"path": "app/a2a/client/client.d.ts",
|
|
@@ -1589,7 +1589,7 @@
|
|
|
1589
1589
|
{
|
|
1590
1590
|
"path": "app/cloud-sample/products.json",
|
|
1591
1591
|
"size": 531,
|
|
1592
|
-
"sha256": "sha256:
|
|
1592
|
+
"sha256": "sha256:6169f54857bcd55cd6af2eabb1a3439595df65e73327cb26d3167443606b3200"
|
|
1593
1593
|
},
|
|
1594
1594
|
{
|
|
1595
1595
|
"path": "app/cloud/binding/audit.d.ts",
|
|
@@ -1703,28 +1703,28 @@
|
|
|
1703
1703
|
},
|
|
1704
1704
|
{
|
|
1705
1705
|
"path": "app/cloud/bootstrap.js",
|
|
1706
|
-
"size":
|
|
1707
|
-
"sha256": "sha256:
|
|
1706
|
+
"size": 66153,
|
|
1707
|
+
"sha256": "sha256:0a40a6ec393f174c594be9f57aa7df7dfeefbcd97a3c874ef6635882142fd4a6"
|
|
1708
1708
|
},
|
|
1709
1709
|
{
|
|
1710
1710
|
"path": "app/cloud/bootstrap.js.map",
|
|
1711
|
-
"size":
|
|
1712
|
-
"sha256": "sha256:
|
|
1711
|
+
"size": 44540,
|
|
1712
|
+
"sha256": "sha256:c2df2ab2fe8454d47f87f19caaa5d4e4c4a4c122873ce8b5876fa23b968179cc"
|
|
1713
1713
|
},
|
|
1714
1714
|
{
|
|
1715
1715
|
"path": "app/cloud/catalog-client.d.ts",
|
|
1716
|
-
"size":
|
|
1717
|
-
"sha256": "sha256:
|
|
1716
|
+
"size": 13682,
|
|
1717
|
+
"sha256": "sha256:9c8f241aea011f74596d04cc848b682a1a36ef59c1bb9dd8de7fec10f3708004"
|
|
1718
1718
|
},
|
|
1719
1719
|
{
|
|
1720
1720
|
"path": "app/cloud/catalog-client.js",
|
|
1721
|
-
"size":
|
|
1722
|
-
"sha256": "sha256:
|
|
1721
|
+
"size": 51466,
|
|
1722
|
+
"sha256": "sha256:c617e2c461c31c957a5b3970c61cd4d1853d874ca6cfa24637b4f673eb712503"
|
|
1723
1723
|
},
|
|
1724
1724
|
{
|
|
1725
1725
|
"path": "app/cloud/catalog-client.js.map",
|
|
1726
|
-
"size":
|
|
1727
|
-
"sha256": "sha256:
|
|
1726
|
+
"size": 37465,
|
|
1727
|
+
"sha256": "sha256:ca64df01a0964b6f11064d89cccf3b25f45515be0df5ce8e548ec3f9631fad0b"
|
|
1728
1728
|
},
|
|
1729
1729
|
{
|
|
1730
1730
|
"path": "app/cloud/config.d.ts",
|
|
@@ -1743,18 +1743,18 @@
|
|
|
1743
1743
|
},
|
|
1744
1744
|
{
|
|
1745
1745
|
"path": "app/cloud/connect-service.d.ts",
|
|
1746
|
-
"size":
|
|
1747
|
-
"sha256": "sha256:
|
|
1746
|
+
"size": 7522,
|
|
1747
|
+
"sha256": "sha256:4c936d88e7cdca6296bb009ea999cb2633ecfbbdbcabb478ccba5f44f86443aa"
|
|
1748
1748
|
},
|
|
1749
1749
|
{
|
|
1750
1750
|
"path": "app/cloud/connect-service.js",
|
|
1751
|
-
"size":
|
|
1752
|
-
"sha256": "sha256:
|
|
1751
|
+
"size": 50852,
|
|
1752
|
+
"sha256": "sha256:372f906ffd457a331681a774ca846abe69c9610169b3500852cd94d4cbffd21d"
|
|
1753
1753
|
},
|
|
1754
1754
|
{
|
|
1755
1755
|
"path": "app/cloud/connect-service.js.map",
|
|
1756
|
-
"size":
|
|
1757
|
-
"sha256": "sha256:
|
|
1756
|
+
"size": 33397,
|
|
1757
|
+
"sha256": "sha256:c975d59f9efbe93d7aa2582e28a0ed28085b5e8d0ad21ac9b26eb9ba8c9b70bd"
|
|
1758
1758
|
},
|
|
1759
1759
|
{
|
|
1760
1760
|
"path": "app/cloud/file-listing-publication.d.ts",
|
|
@@ -3318,18 +3318,18 @@
|
|
|
3318
3318
|
},
|
|
3319
3319
|
{
|
|
3320
3320
|
"path": "app/http/merchant-management/api.d.ts",
|
|
3321
|
-
"size":
|
|
3322
|
-
"sha256": "sha256:
|
|
3321
|
+
"size": 12697,
|
|
3322
|
+
"sha256": "sha256:114d35ff6b2be06c22d736a7693088dcdd528c3b23f4dcb409934f8cf66a3188"
|
|
3323
3323
|
},
|
|
3324
3324
|
{
|
|
3325
3325
|
"path": "app/http/merchant-management/api.js",
|
|
3326
|
-
"size":
|
|
3327
|
-
"sha256": "sha256:
|
|
3326
|
+
"size": 152395,
|
|
3327
|
+
"sha256": "sha256:e9182f43e10062870f5409b0848baf6a1da4d945f50e6352fc831d646d6dbb79"
|
|
3328
3328
|
},
|
|
3329
3329
|
{
|
|
3330
3330
|
"path": "app/http/merchant-management/api.js.map",
|
|
3331
|
-
"size":
|
|
3332
|
-
"sha256": "sha256:
|
|
3331
|
+
"size": 118044,
|
|
3332
|
+
"sha256": "sha256:4540109e003c4fecfac3db2f3c5ea9486f3bf44c01410aa96afdcc6e334f86fa"
|
|
3333
3333
|
},
|
|
3334
3334
|
{
|
|
3335
3335
|
"path": "app/http/merchant-management/draft-store.d.ts",
|
|
@@ -3383,13 +3383,13 @@
|
|
|
3383
3383
|
},
|
|
3384
3384
|
{
|
|
3385
3385
|
"path": "app/http/merchant-management/page.js",
|
|
3386
|
-
"size":
|
|
3387
|
-
"sha256": "sha256:
|
|
3386
|
+
"size": 46104,
|
|
3387
|
+
"sha256": "sha256:8ed37de806033f80587bfd196fe3e69d7d3df26a5b355ee1126be4e20e719330"
|
|
3388
3388
|
},
|
|
3389
3389
|
{
|
|
3390
3390
|
"path": "app/http/merchant-management/page.js.map",
|
|
3391
|
-
"size":
|
|
3392
|
-
"sha256": "sha256:
|
|
3391
|
+
"size": 1050,
|
|
3392
|
+
"sha256": "sha256:b1c2be5c4ad9892bff245b99fe47b83aad236595fc3b237f3d79d29894d5c1d3"
|
|
3393
3393
|
},
|
|
3394
3394
|
{
|
|
3395
3395
|
"path": "app/http/merchant-management/problem-client.d.ts",
|
|
@@ -12913,8 +12913,8 @@
|
|
|
12913
12913
|
},
|
|
12914
12914
|
{
|
|
12915
12915
|
"path": "node_modules/hono/dist/cjs/jsx/utils.js",
|
|
12916
|
-
"size":
|
|
12917
|
-
"sha256": "sha256:
|
|
12916
|
+
"size": 4475,
|
|
12917
|
+
"sha256": "sha256:e9402d4f8b24804ff95c2c87c5fd3c53480f84174fcc6aa013b6d862eb2f30ea"
|
|
12918
12918
|
},
|
|
12919
12919
|
{
|
|
12920
12920
|
"path": "node_modules/hono/dist/cjs/middleware/basic-auth/index.js",
|
|
@@ -12938,8 +12938,8 @@
|
|
|
12938
12938
|
},
|
|
12939
12939
|
{
|
|
12940
12940
|
"path": "node_modules/hono/dist/cjs/middleware/combine/index.js",
|
|
12941
|
-
"size":
|
|
12942
|
-
"sha256": "sha256:
|
|
12941
|
+
"size": 4954,
|
|
12942
|
+
"sha256": "sha256:c1da542854c810a810441d7e3f4e0755137ac92e81b3cbba68f2dfa47c17b901"
|
|
12943
12943
|
},
|
|
12944
12944
|
{
|
|
12945
12945
|
"path": "node_modules/hono/dist/cjs/middleware/compress/index.js",
|
|
@@ -12968,8 +12968,8 @@
|
|
|
12968
12968
|
},
|
|
12969
12969
|
{
|
|
12970
12970
|
"path": "node_modules/hono/dist/cjs/middleware/etag/index.js",
|
|
12971
|
-
"size":
|
|
12972
|
-
"sha256": "sha256:
|
|
12971
|
+
"size": 3112,
|
|
12972
|
+
"sha256": "sha256:f68f9f4e86e7fc19969ede8d34edb1ee6967cf5120892feca4c14f2863eea2f5"
|
|
12973
12973
|
},
|
|
12974
12974
|
{
|
|
12975
12975
|
"path": "node_modules/hono/dist/cjs/middleware/ip-restriction/index.js",
|
|
@@ -13668,8 +13668,8 @@
|
|
|
13668
13668
|
},
|
|
13669
13669
|
{
|
|
13670
13670
|
"path": "node_modules/hono/dist/jsx/utils.js",
|
|
13671
|
-
"size":
|
|
13672
|
-
"sha256": "sha256:
|
|
13671
|
+
"size": 4289,
|
|
13672
|
+
"sha256": "sha256:e9e8ddcd4c8f0448ff3854053a171e893f6280fb308dbf054481bd8a7d896791"
|
|
13673
13673
|
},
|
|
13674
13674
|
{
|
|
13675
13675
|
"path": "node_modules/hono/dist/middleware/basic-auth/index.js",
|
|
@@ -13693,8 +13693,8 @@
|
|
|
13693
13693
|
},
|
|
13694
13694
|
{
|
|
13695
13695
|
"path": "node_modules/hono/dist/middleware/combine/index.js",
|
|
13696
|
-
"size":
|
|
13697
|
-
"sha256": "sha256:
|
|
13696
|
+
"size": 4757,
|
|
13697
|
+
"sha256": "sha256:a8b7a480547d32ee69dba793f86cf05f8dffc1fd6cce317d544fc8fa4991d1f3"
|
|
13698
13698
|
},
|
|
13699
13699
|
{
|
|
13700
13700
|
"path": "node_modules/hono/dist/middleware/compress/index.js",
|
|
@@ -13723,8 +13723,8 @@
|
|
|
13723
13723
|
},
|
|
13724
13724
|
{
|
|
13725
13725
|
"path": "node_modules/hono/dist/middleware/etag/index.js",
|
|
13726
|
-
"size":
|
|
13727
|
-
"sha256": "sha256:
|
|
13726
|
+
"size": 2956,
|
|
13727
|
+
"sha256": "sha256:14d4ed7ae141acaa64e7215332eab8887db1e1ab96e150910642ecda0e4e8e30"
|
|
13728
13728
|
},
|
|
13729
13729
|
{
|
|
13730
13730
|
"path": "node_modules/hono/dist/middleware/ip-restriction/index.js",
|
|
@@ -13764,7 +13764,7 @@
|
|
|
13764
13764
|
{
|
|
13765
13765
|
"path": "node_modules/hono/dist/middleware/language/language.js",
|
|
13766
13766
|
"size": 5965,
|
|
13767
|
-
"sha256": "sha256:
|
|
13767
|
+
"sha256": "sha256:a7a67f26c2e8b9300fc1b3ad471ac09851b26d5f95b79af7874136ad4374250c"
|
|
13768
13768
|
},
|
|
13769
13769
|
{
|
|
13770
13770
|
"path": "node_modules/hono/dist/middleware/logger/index.js",
|
|
@@ -14113,8 +14113,8 @@
|
|
|
14113
14113
|
},
|
|
14114
14114
|
{
|
|
14115
14115
|
"path": "node_modules/hono/package.json",
|
|
14116
|
-
"size":
|
|
14117
|
-
"sha256": "sha256:
|
|
14116
|
+
"size": 23674,
|
|
14117
|
+
"sha256": "sha256:739a67ba4fb92d31c3d4e662ecaa499a21c1c4661f8d2a3786ca999e9f8c8d3b"
|
|
14118
14118
|
},
|
|
14119
14119
|
{
|
|
14120
14120
|
"path": "node_modules/http-errors/index.js",
|
|
@@ -19919,7 +19919,7 @@
|
|
|
19919
19919
|
{
|
|
19920
19920
|
"path": "package.json",
|
|
19921
19921
|
"size": 958,
|
|
19922
|
-
"sha256": "sha256:
|
|
19922
|
+
"sha256": "sha256:7ffaaee24297e43c3c829773b616ab135b7e52fc1986a0a01018bdbf58965204"
|
|
19923
19923
|
},
|
|
19924
19924
|
{
|
|
19925
19925
|
"path": "prepare.mjs",
|
|
@@ -19929,11 +19929,11 @@
|
|
|
19929
19929
|
{
|
|
19930
19930
|
"path": "runtime-package.json",
|
|
19931
19931
|
"size": 536,
|
|
19932
|
-
"sha256": "sha256:
|
|
19932
|
+
"sha256": "sha256:c65cd6ebaa3f051270a2661c628b2e9ac90c92cced87ad93eef51a62644e56ee"
|
|
19933
19933
|
}
|
|
19934
19934
|
],
|
|
19935
19935
|
"file_count": 3985,
|
|
19936
|
-
"total_bytes":
|
|
19936
|
+
"total_bytes": 20477033,
|
|
19937
19937
|
"notes": [
|
|
19938
19938
|
"artifact_sha256 covers every npm package file except build-manifest.json itself; source_artifact_sha256 binds the original cloud artifact."
|
|
19939
19939
|
]
|
|
@@ -101,7 +101,7 @@ const styleObjectForEach = (style, fn) => {
|
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
103
103
|
let value;
|
|
104
|
-
if (typeof v === "number") value = !key.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/) ? `${v}px` : `${v}`;
|
|
104
|
+
if (typeof v === "number") value = !key.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?!.*gap)(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/) ? `${v}px` : `${v}`;
|
|
105
105
|
else if (typeof v === "string") {
|
|
106
106
|
if (hasUnsafeStyleValue(v)) continue;
|
|
107
107
|
value = v;
|
|
@@ -40,13 +40,14 @@ const some = (...middleware) => {
|
|
|
40
40
|
return next();
|
|
41
41
|
};
|
|
42
42
|
let lastError;
|
|
43
|
+
let response;
|
|
43
44
|
for (const handler of middleware) try {
|
|
44
45
|
const result = await handler(c, wrappedNext);
|
|
45
46
|
if (result === true && !c.finalized) await wrappedNext();
|
|
46
47
|
else if (result === false) {
|
|
47
48
|
lastError = /* @__PURE__ */ new Error("No successful middleware found");
|
|
48
49
|
continue;
|
|
49
|
-
}
|
|
50
|
+
} else if (result && result !== true) response = result;
|
|
50
51
|
lastError = void 0;
|
|
51
52
|
break;
|
|
52
53
|
} catch (error) {
|
|
@@ -54,6 +55,7 @@ const some = (...middleware) => {
|
|
|
54
55
|
if (isNextCalled) break;
|
|
55
56
|
}
|
|
56
57
|
if (lastError) throw lastError;
|
|
58
|
+
return response;
|
|
57
59
|
};
|
|
58
60
|
};
|
|
59
61
|
/**
|
|
@@ -49,7 +49,7 @@ function initializeGenerator(generator) {
|
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
51
|
const etag = (options) => {
|
|
52
|
-
const retainedHeaders = options?.retainedHeaders ?? RETAINED_304_HEADERS;
|
|
52
|
+
const retainedHeaders = new Set((options?.retainedHeaders ?? RETAINED_304_HEADERS).map((header) => header.toLowerCase()));
|
|
53
53
|
const weak = options?.weak ?? false;
|
|
54
54
|
const generator = initializeGenerator(options?.generateDigest);
|
|
55
55
|
return async function etag(c, next) {
|
|
@@ -70,7 +70,7 @@ const etag = (options) => {
|
|
|
70
70
|
statusText: "Not Modified",
|
|
71
71
|
headers: { ETag: etag }
|
|
72
72
|
});
|
|
73
|
-
for (const key of Array.from(c.res.headers.keys())) if (retainedHeaders.
|
|
73
|
+
for (const key of Array.from(c.res.headers.keys())) if (!retainedHeaders.has(key.toLowerCase())) c.res.headers.delete(key);
|
|
74
74
|
} else c.res.headers.set("ETag", etag);
|
|
75
75
|
};
|
|
76
76
|
};
|
|
@@ -100,7 +100,7 @@ const styleObjectForEach = (style, fn) => {
|
|
|
100
100
|
continue;
|
|
101
101
|
}
|
|
102
102
|
let value;
|
|
103
|
-
if (typeof v === "number") value = !key.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/) ? `${v}px` : `${v}`;
|
|
103
|
+
if (typeof v === "number") value = !key.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?!.*gap)(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/) ? `${v}px` : `${v}`;
|
|
104
104
|
else if (typeof v === "string") {
|
|
105
105
|
if (hasUnsafeStyleValue(v)) continue;
|
|
106
106
|
value = v;
|
|
@@ -39,13 +39,14 @@ const some = (...middleware) => {
|
|
|
39
39
|
return next();
|
|
40
40
|
};
|
|
41
41
|
let lastError;
|
|
42
|
+
let response;
|
|
42
43
|
for (const handler of middleware) try {
|
|
43
44
|
const result = await handler(c, wrappedNext);
|
|
44
45
|
if (result === true && !c.finalized) await wrappedNext();
|
|
45
46
|
else if (result === false) {
|
|
46
47
|
lastError = /* @__PURE__ */ new Error("No successful middleware found");
|
|
47
48
|
continue;
|
|
48
|
-
}
|
|
49
|
+
} else if (result && result !== true) response = result;
|
|
49
50
|
lastError = void 0;
|
|
50
51
|
break;
|
|
51
52
|
} catch (error) {
|
|
@@ -53,6 +54,7 @@ const some = (...middleware) => {
|
|
|
53
54
|
if (isNextCalled) break;
|
|
54
55
|
}
|
|
55
56
|
if (lastError) throw lastError;
|
|
57
|
+
return response;
|
|
56
58
|
};
|
|
57
59
|
};
|
|
58
60
|
/**
|
|
@@ -48,7 +48,7 @@ function initializeGenerator(generator) {
|
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
50
|
const etag = (options) => {
|
|
51
|
-
const retainedHeaders = options?.retainedHeaders ?? RETAINED_304_HEADERS;
|
|
51
|
+
const retainedHeaders = new Set((options?.retainedHeaders ?? RETAINED_304_HEADERS).map((header) => header.toLowerCase()));
|
|
52
52
|
const weak = options?.weak ?? false;
|
|
53
53
|
const generator = initializeGenerator(options?.generateDigest);
|
|
54
54
|
return async function etag(c, next) {
|
|
@@ -69,7 +69,7 @@ const etag = (options) => {
|
|
|
69
69
|
statusText: "Not Modified",
|
|
70
70
|
headers: { ETag: etag }
|
|
71
71
|
});
|
|
72
|
-
for (const key of Array.from(c.res.headers.keys())) if (retainedHeaders.
|
|
72
|
+
for (const key of Array.from(c.res.headers.keys())) if (!retainedHeaders.has(key.toLowerCase())) c.res.headers.delete(key);
|
|
73
73
|
} else c.res.headers.set("ETag", etag);
|
|
74
74
|
};
|
|
75
75
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.12",
|
|
4
4
|
"description": "Web framework built on Web Standards",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -693,7 +693,7 @@
|
|
|
693
693
|
"rolldown": "^1.2.10",
|
|
694
694
|
"typescript": "^6.0.3",
|
|
695
695
|
"vite-plugin-fastly-js-compute": "^0.4.2",
|
|
696
|
-
"vite-plus": "1.0.0
|
|
696
|
+
"vite-plus": "1.0.0",
|
|
697
697
|
"vitest": "5.0.1",
|
|
698
698
|
"wrangler": "4.107.0",
|
|
699
699
|
"ws": "^8.21.0",
|
package/package.json
CHANGED