@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/dist/index.js CHANGED
@@ -124,19 +124,20 @@ async function build(options) {
124
124
  components,
125
125
  context
126
126
  });
127
- await writePages({
127
+ console.log('components.pages', components.pages.map((page)=>page.id));
128
+ await writeMaps({
128
129
  components,
129
130
  context
130
131
  });
131
- await writeConfig({
132
+ await writePages({
132
133
  components,
133
134
  context
134
135
  });
135
- await writeGlobal({
136
+ await writeConfig({
136
137
  components,
137
138
  context
138
139
  });
139
- await writeMaps({
140
+ await writeGlobal({
140
141
  components,
141
142
  context
142
143
  });
@@ -26,6 +26,9 @@ function testContext({ writeBuildArtifact, configDirectory, readConfigFile, logg
26
26
  directories: {
27
27
  config: configDirectory || ''
28
28
  },
29
+ entitlements: [
30
+ 'AUTH'
31
+ ],
29
32
  typeCounters: {
30
33
  actions: createCounter(),
31
34
  auth: {
@@ -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-20251015143743",
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-20251015143743",
48
- "@lowdefy/blocks-basic": "0.0.0-experimental-20251015143743",
49
- "@lowdefy/blocks-loaders": "0.0.0-experimental-20251015143743",
50
- "@lowdefy/helpers": "0.0.0-experimental-20251015143743",
51
- "@lowdefy/node-utils": "0.0.0-experimental-20251015143743",
52
- "@lowdefy/nunjucks": "0.0.0-experimental-20251015143743",
53
- "@lowdefy/operators": "0.0.0-experimental-20251015143743",
54
- "@lowdefy/operators-js": "0.0.0-experimental-20251015143743",
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-20251015143743",
63
- "@lowdefy/actions-pdf-make": "0.0.0-experimental-20251015143743",
64
- "@lowdefy/blocks-aggrid": "0.0.0-experimental-20251015143743",
65
- "@lowdefy/blocks-algolia": "0.0.0-experimental-20251015143743",
66
- "@lowdefy/blocks-antd": "0.0.0-experimental-20251015143743",
67
- "@lowdefy/blocks-color-selectors": "0.0.0-experimental-20251015143743",
68
- "@lowdefy/blocks-echarts": "0.0.0-experimental-20251015143743",
69
- "@lowdefy/blocks-google-maps": "0.0.0-experimental-20251015143743",
70
- "@lowdefy/blocks-markdown": "0.0.0-experimental-20251015143743",
71
- "@lowdefy/blocks-qr": "0.0.0-experimental-20251015143743",
72
- "@lowdefy/connection-axios-http": "0.0.0-experimental-20251015143743",
73
- "@lowdefy/connection-elasticsearch": "0.0.0-experimental-20251015143743",
74
- "@lowdefy/connection-google-sheets": "0.0.0-experimental-20251015143743",
75
- "@lowdefy/connection-knex": "0.0.0-experimental-20251015143743",
76
- "@lowdefy/connection-mongodb": "0.0.0-experimental-20251015143743",
77
- "@lowdefy/connection-redis": "0.0.0-experimental-20251015143743",
78
- "@lowdefy/connection-sendgrid": "0.0.0-experimental-20251015143743",
79
- "@lowdefy/connection-stripe": "0.0.0-experimental-20251015143743",
80
- "@lowdefy/operators-change-case": "0.0.0-experimental-20251015143743",
81
- "@lowdefy/operators-diff": "0.0.0-experimental-20251015143743",
82
- "@lowdefy/operators-moment": "0.0.0-experimental-20251015143743",
83
- "@lowdefy/operators-mql": "0.0.0-experimental-20251015143743",
84
- "@lowdefy/operators-nunjucks": "0.0.0-experimental-20251015143743",
85
- "@lowdefy/operators-uuid": "0.0.0-experimental-20251015143743",
86
- "@lowdefy/operators-yaml": "0.0.0-experimental-20251015143743",
87
- "@lowdefy/plugin-auth0": "0.0.0-experimental-20251015143743",
88
- "@lowdefy/plugin-aws": "0.0.0-experimental-20251015143743",
89
- "@lowdefy/plugin-csv": "0.0.0-experimental-20251015143743",
90
- "@lowdefy/plugin-next-auth": "0.0.0-experimental-20251015143743",
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",