@jay-framework/wix-stores 0.16.4 → 0.16.5
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.js +15 -1
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -1758,6 +1758,20 @@ function dataTag(key, type, indent) {
|
|
|
1758
1758
|
const prefix = " ".repeat(indent);
|
|
1759
1759
|
return `${prefix}- {tag: ${key}, type: data, dataType: ${type}}`;
|
|
1760
1760
|
}
|
|
1761
|
+
function primitiveArraySubContract(key, itemType, indent) {
|
|
1762
|
+
const prefix = " ".repeat(indent);
|
|
1763
|
+
const innerIndent = indent + 2;
|
|
1764
|
+
const indexTag = dataTag("_index", "number", innerIndent);
|
|
1765
|
+
const valueTag = dataTag("value", jsonTypeToContractType(itemType), innerIndent);
|
|
1766
|
+
return `${prefix}- tag: ${key}
|
|
1767
|
+
${prefix} type: sub-contract
|
|
1768
|
+
${prefix} repeated: true
|
|
1769
|
+
${prefix} trackBy: _index
|
|
1770
|
+
${prefix} description: ${key}
|
|
1771
|
+
${prefix} tags:
|
|
1772
|
+
${indexTag}
|
|
1773
|
+
${valueTag}`;
|
|
1774
|
+
}
|
|
1761
1775
|
function objectSubContract(key, properties, repeated, indent) {
|
|
1762
1776
|
const prefix = " ".repeat(indent);
|
|
1763
1777
|
const innerTags = jsonSchemaToContractTags(properties, indent + 2);
|
|
@@ -1795,7 +1809,7 @@ function jsonSchemaToContractTags(properties, indent = 4) {
|
|
|
1795
1809
|
} else if (items.type === "object" && items.properties) {
|
|
1796
1810
|
tags.push(objectSubContract(key, items.properties, true, indent));
|
|
1797
1811
|
} else {
|
|
1798
|
-
tags.push(
|
|
1812
|
+
tags.push(primitiveArraySubContract(key, items.type || "string", indent));
|
|
1799
1813
|
}
|
|
1800
1814
|
break;
|
|
1801
1815
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/wix-stores",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wix Stores API client for Jay Framework",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"test": ":"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@jay-framework/component": "^0.16.
|
|
41
|
-
"@jay-framework/fullstack-component": "^0.16.
|
|
42
|
-
"@jay-framework/reactive": "^0.16.
|
|
43
|
-
"@jay-framework/runtime": "^0.16.
|
|
44
|
-
"@jay-framework/secure": "^0.16.
|
|
45
|
-
"@jay-framework/stack-client-runtime": "^0.16.
|
|
46
|
-
"@jay-framework/stack-server-runtime": "^0.16.
|
|
47
|
-
"@jay-framework/wix-cart": "^0.16.
|
|
48
|
-
"@jay-framework/wix-server-client": "^0.16.
|
|
49
|
-
"@jay-framework/wix-utils": "^0.16.
|
|
40
|
+
"@jay-framework/component": "^0.16.5",
|
|
41
|
+
"@jay-framework/fullstack-component": "^0.16.5",
|
|
42
|
+
"@jay-framework/reactive": "^0.16.5",
|
|
43
|
+
"@jay-framework/runtime": "^0.16.5",
|
|
44
|
+
"@jay-framework/secure": "^0.16.5",
|
|
45
|
+
"@jay-framework/stack-client-runtime": "^0.16.5",
|
|
46
|
+
"@jay-framework/stack-server-runtime": "^0.16.5",
|
|
47
|
+
"@jay-framework/wix-cart": "^0.16.5",
|
|
48
|
+
"@jay-framework/wix-server-client": "^0.16.5",
|
|
49
|
+
"@jay-framework/wix-utils": "^0.16.5",
|
|
50
50
|
"@wix/categories": "^1.0.185",
|
|
51
51
|
"@wix/data-extension-schema": "^1.0.221",
|
|
52
52
|
"@wix/sdk": "^1.21.5",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"@babel/core": "^7.23.7",
|
|
59
59
|
"@babel/preset-env": "^7.23.8",
|
|
60
60
|
"@babel/preset-typescript": "^7.23.3",
|
|
61
|
-
"@jay-framework/compiler-jay-stack": "^0.16.
|
|
62
|
-
"@jay-framework/jay-cli": "^0.16.
|
|
63
|
-
"@jay-framework/jay-stack-cli": "^0.16.
|
|
64
|
-
"@jay-framework/vite-plugin": "^0.16.
|
|
61
|
+
"@jay-framework/compiler-jay-stack": "^0.16.5",
|
|
62
|
+
"@jay-framework/jay-cli": "^0.16.5",
|
|
63
|
+
"@jay-framework/jay-stack-cli": "^0.16.5",
|
|
64
|
+
"@jay-framework/vite-plugin": "^0.16.5",
|
|
65
65
|
"nodemon": "^3.0.3",
|
|
66
66
|
"rimraf": "^5.0.5",
|
|
67
67
|
"tslib": "^2.6.2",
|