@lowdefy/build 0.0.0-experimental-20251015143743 → 0.0.0-experimental-20251203145918
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/LICENSE +183 -183
- package/dist/build/buildAuth/buildAuth.js +15 -0
- package/dist/build/buildRefs/buildRefs.js +3 -1
- package/dist/build/buildRefs/getRefContent.js +1 -7
- package/dist/build/buildRefs/makeRefDefinition.js +8 -8
- package/dist/build/buildRefs/populateRefs.js +3 -3
- package/dist/build/buildRefs/recursiveBuild.js +15 -10
- package/dist/build/buildTypes.js +4 -0
- package/dist/createContext.js +2 -1
- package/dist/defaultTypesMap.js +415 -415
- package/dist/index.js +5 -4
- package/dist/test/testContext.js +3 -0
- package/dist/utils/createCheckDuplicateId.js +1 -0
- package/dist/utils/makeRefHash.js +15 -0
- package/package.json +38 -38
package/dist/index.js
CHANGED
|
@@ -124,19 +124,20 @@ async function build(options) {
|
|
|
124
124
|
components,
|
|
125
125
|
context
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
console.log('components.pages', components.pages.map((page)=>page.id));
|
|
128
|
+
await writeMaps({
|
|
128
129
|
components,
|
|
129
130
|
context
|
|
130
131
|
});
|
|
131
|
-
await
|
|
132
|
+
await writePages({
|
|
132
133
|
components,
|
|
133
134
|
context
|
|
134
135
|
});
|
|
135
|
-
await
|
|
136
|
+
await writeConfig({
|
|
136
137
|
components,
|
|
137
138
|
context
|
|
138
139
|
});
|
|
139
|
-
await
|
|
140
|
+
await writeGlobal({
|
|
140
141
|
components,
|
|
141
142
|
context
|
|
142
143
|
});
|
package/dist/test/testContext.js
CHANGED
|
@@ -17,6 +17,7 @@ function createCheckDuplicateId({ message }) {
|
|
|
17
17
|
const template = nunjucksFunction(message);
|
|
18
18
|
const ids = new Set();
|
|
19
19
|
function checkDuplicateId({ id, blockId, eventId, menuId, pageId }) {
|
|
20
|
+
console.log('checkDuplicateId', ids.has(id.toLowerCase()), id, id.toLowerCase());
|
|
20
21
|
if (ids.has(id.toLowerCase())) throw new Error(template({
|
|
21
22
|
id,
|
|
22
23
|
blockId,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type } from '@lowdefy/helpers';
|
|
2
|
+
import crypto from 'crypto';
|
|
3
|
+
// Sort object keys to ensure stable stringification
|
|
4
|
+
function stableStringify(obj) {
|
|
5
|
+
if (type.isObject(obj)) {
|
|
6
|
+
return '{' + Object.keys(obj).sort().map((k)=>`"${k}":${stableStringify(obj[k])}`).join(',') + '}';
|
|
7
|
+
}
|
|
8
|
+
if (type.isArray(obj)) {
|
|
9
|
+
return '[' + obj.map(stableStringify).join(',') + ']';
|
|
10
|
+
}
|
|
11
|
+
return JSON.stringify(obj);
|
|
12
|
+
}
|
|
13
|
+
export default function makeRefHash(refDef) {
|
|
14
|
+
return crypto.createHash('sha1').update(stableStringify(refDef) || '').digest('base64');
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/build",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20251203145918",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"dist/*"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@lowdefy/ajv": "0.0.0-experimental-
|
|
48
|
-
"@lowdefy/blocks-basic": "0.0.0-experimental-
|
|
49
|
-
"@lowdefy/blocks-loaders": "0.0.0-experimental-
|
|
50
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
51
|
-
"@lowdefy/node-utils": "0.0.0-experimental-
|
|
52
|
-
"@lowdefy/nunjucks": "0.0.0-experimental-
|
|
53
|
-
"@lowdefy/operators": "0.0.0-experimental-
|
|
54
|
-
"@lowdefy/operators-js": "0.0.0-experimental-
|
|
47
|
+
"@lowdefy/ajv": "0.0.0-experimental-20251203145918",
|
|
48
|
+
"@lowdefy/blocks-basic": "0.0.0-experimental-20251203145918",
|
|
49
|
+
"@lowdefy/blocks-loaders": "0.0.0-experimental-20251203145918",
|
|
50
|
+
"@lowdefy/helpers": "0.0.0-experimental-20251203145918",
|
|
51
|
+
"@lowdefy/node-utils": "0.0.0-experimental-20251203145918",
|
|
52
|
+
"@lowdefy/nunjucks": "0.0.0-experimental-20251203145918",
|
|
53
|
+
"@lowdefy/operators": "0.0.0-experimental-20251203145918",
|
|
54
|
+
"@lowdefy/operators-js": "0.0.0-experimental-20251203145918",
|
|
55
55
|
"ajv": "8.12.0",
|
|
56
56
|
"json5": "2.2.3",
|
|
57
57
|
"yaml": "2.3.4",
|
|
@@ -59,35 +59,35 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@jest/globals": "28.1.3",
|
|
62
|
-
"@lowdefy/actions-core": "0.0.0-experimental-
|
|
63
|
-
"@lowdefy/actions-pdf-make": "0.0.0-experimental-
|
|
64
|
-
"@lowdefy/blocks-aggrid": "0.0.0-experimental-
|
|
65
|
-
"@lowdefy/blocks-algolia": "0.0.0-experimental-
|
|
66
|
-
"@lowdefy/blocks-antd": "0.0.0-experimental-
|
|
67
|
-
"@lowdefy/blocks-color-selectors": "0.0.0-experimental-
|
|
68
|
-
"@lowdefy/blocks-echarts": "0.0.0-experimental-
|
|
69
|
-
"@lowdefy/blocks-google-maps": "0.0.0-experimental-
|
|
70
|
-
"@lowdefy/blocks-markdown": "0.0.0-experimental-
|
|
71
|
-
"@lowdefy/blocks-qr": "0.0.0-experimental-
|
|
72
|
-
"@lowdefy/connection-axios-http": "0.0.0-experimental-
|
|
73
|
-
"@lowdefy/connection-elasticsearch": "0.0.0-experimental-
|
|
74
|
-
"@lowdefy/connection-google-sheets": "0.0.0-experimental-
|
|
75
|
-
"@lowdefy/connection-knex": "0.0.0-experimental-
|
|
76
|
-
"@lowdefy/connection-mongodb": "0.0.0-experimental-
|
|
77
|
-
"@lowdefy/connection-redis": "0.0.0-experimental-
|
|
78
|
-
"@lowdefy/connection-sendgrid": "0.0.0-experimental-
|
|
79
|
-
"@lowdefy/connection-stripe": "0.0.0-experimental-
|
|
80
|
-
"@lowdefy/operators-change-case": "0.0.0-experimental-
|
|
81
|
-
"@lowdefy/operators-diff": "0.0.0-experimental-
|
|
82
|
-
"@lowdefy/operators-moment": "0.0.0-experimental-
|
|
83
|
-
"@lowdefy/operators-mql": "0.0.0-experimental-
|
|
84
|
-
"@lowdefy/operators-nunjucks": "0.0.0-experimental-
|
|
85
|
-
"@lowdefy/operators-uuid": "0.0.0-experimental-
|
|
86
|
-
"@lowdefy/operators-yaml": "0.0.0-experimental-
|
|
87
|
-
"@lowdefy/plugin-auth0": "0.0.0-experimental-
|
|
88
|
-
"@lowdefy/plugin-aws": "0.0.0-experimental-
|
|
89
|
-
"@lowdefy/plugin-csv": "0.0.0-experimental-
|
|
90
|
-
"@lowdefy/plugin-next-auth": "0.0.0-experimental-
|
|
62
|
+
"@lowdefy/actions-core": "0.0.0-experimental-20251203145918",
|
|
63
|
+
"@lowdefy/actions-pdf-make": "0.0.0-experimental-20251203145918",
|
|
64
|
+
"@lowdefy/blocks-aggrid": "0.0.0-experimental-20251203145918",
|
|
65
|
+
"@lowdefy/blocks-algolia": "0.0.0-experimental-20251203145918",
|
|
66
|
+
"@lowdefy/blocks-antd": "0.0.0-experimental-20251203145918",
|
|
67
|
+
"@lowdefy/blocks-color-selectors": "0.0.0-experimental-20251203145918",
|
|
68
|
+
"@lowdefy/blocks-echarts": "0.0.0-experimental-20251203145918",
|
|
69
|
+
"@lowdefy/blocks-google-maps": "0.0.0-experimental-20251203145918",
|
|
70
|
+
"@lowdefy/blocks-markdown": "0.0.0-experimental-20251203145918",
|
|
71
|
+
"@lowdefy/blocks-qr": "0.0.0-experimental-20251203145918",
|
|
72
|
+
"@lowdefy/connection-axios-http": "0.0.0-experimental-20251203145918",
|
|
73
|
+
"@lowdefy/connection-elasticsearch": "0.0.0-experimental-20251203145918",
|
|
74
|
+
"@lowdefy/connection-google-sheets": "0.0.0-experimental-20251203145918",
|
|
75
|
+
"@lowdefy/connection-knex": "0.0.0-experimental-20251203145918",
|
|
76
|
+
"@lowdefy/connection-mongodb": "0.0.0-experimental-20251203145918",
|
|
77
|
+
"@lowdefy/connection-redis": "0.0.0-experimental-20251203145918",
|
|
78
|
+
"@lowdefy/connection-sendgrid": "0.0.0-experimental-20251203145918",
|
|
79
|
+
"@lowdefy/connection-stripe": "0.0.0-experimental-20251203145918",
|
|
80
|
+
"@lowdefy/operators-change-case": "0.0.0-experimental-20251203145918",
|
|
81
|
+
"@lowdefy/operators-diff": "0.0.0-experimental-20251203145918",
|
|
82
|
+
"@lowdefy/operators-moment": "0.0.0-experimental-20251203145918",
|
|
83
|
+
"@lowdefy/operators-mql": "0.0.0-experimental-20251203145918",
|
|
84
|
+
"@lowdefy/operators-nunjucks": "0.0.0-experimental-20251203145918",
|
|
85
|
+
"@lowdefy/operators-uuid": "0.0.0-experimental-20251203145918",
|
|
86
|
+
"@lowdefy/operators-yaml": "0.0.0-experimental-20251203145918",
|
|
87
|
+
"@lowdefy/plugin-auth0": "0.0.0-experimental-20251203145918",
|
|
88
|
+
"@lowdefy/plugin-aws": "0.0.0-experimental-20251203145918",
|
|
89
|
+
"@lowdefy/plugin-csv": "0.0.0-experimental-20251203145918",
|
|
90
|
+
"@lowdefy/plugin-next-auth": "0.0.0-experimental-20251203145918",
|
|
91
91
|
"@swc/cli": "0.1.63",
|
|
92
92
|
"@swc/core": "1.3.99",
|
|
93
93
|
"@swc/jest": "0.2.29",
|