@datapos/datapos-development 0.3.62 → 0.3.63

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.
@@ -8,7 +8,7 @@ let b = (o = 21) => {
8
8
  e += y[i[o] & 63];
9
9
  return e;
10
10
  };
11
- const h = ["createObject", "dropObject", "removeRecords", "upsertRecords"], v = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], p = w(m);
11
+ const h = ["createObject", "dropObject", "removeRecords", "upsertRecords"], v = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], u = w(m);
12
12
  async function $() {
13
13
  try {
14
14
  console.info("🚀 Building configuration...");
@@ -31,11 +31,11 @@ async function J(o) {
31
31
  try {
32
32
  const d = await n.stat(c);
33
33
  if (d.isDirectory()) {
34
- const u = await n.readdir(c), g = { childCount: u.length, name: `${a}`, typeId: "folder" };
35
- f.push(g), await i(c, u);
34
+ const p = await n.readdir(c), g = { childCount: p.length, name: `${a}`, typeId: "folder" };
35
+ f.push(g), await i(c, p);
36
36
  } else {
37
- const u = { id: b(), lastModifiedAt: d.mtimeMs, name: a, size: d.size, typeId: "object" };
38
- f.push(u);
37
+ const p = { id: b(), lastModifiedAt: d.mtimeMs, name: a, size: d.size, typeId: "object" };
38
+ f.push(p);
39
39
  }
40
40
  } catch (d) {
41
41
  throw new Error(`Unable to get information for '${a}' in 'buildPublicDirectoryIndex'. ${String(d)}`);
@@ -95,7 +95,7 @@ async function C() {
95
95
  console.error("❌ Error building context configuration.", o);
96
96
  }
97
97
  }
98
- async function E() {
98
+ async function k() {
99
99
  try {
100
100
  console.info("🚀 Bumping version...");
101
101
  const o = JSON.parse(await n.readFile("package.json", "utf8"));
@@ -108,8 +108,8 @@ async function E() {
108
108
  console.error("❌ Error bumping package version.", o);
109
109
  }
110
110
  }
111
- function k(o) {
112
- console.error(`❌ ${o}`);
111
+ function E(o) {
112
+ console.error(`❌ ${o} script not implemented.`);
113
113
  }
114
114
  async function I() {
115
115
  try {
@@ -129,7 +129,7 @@ async function R() {
129
129
  try {
130
130
  console.info("🚀 Synchronising with GitHub....");
131
131
  const o = JSON.parse(await n.readFile("package.json", "utf8"));
132
- await p("git add ."), await p(`git commit -m "v${o.version}"`), await p("git push origin main:main"), console.info(`✅ Synchronised version ${o.version} with GitHub.`);
132
+ await u("git add ."), await u(`git commit -m "v${o.version}"`), await u("git push origin main:main"), console.info(`✅ Synchronised version ${o.version} with GitHub.`);
133
133
  } catch (o) {
134
134
  console.error("❌ Error synchronising with GitHub.", o);
135
135
  }
@@ -141,11 +141,11 @@ async function A(o, e) {
141
141
  for (const l of f) {
142
142
  const a = `${t}/${l}`, c = `${r}/${l}`;
143
143
  if ((await n.stat(a)).isDirectory()) {
144
- const u = await n.readdir(a);
145
- await i(a, c, u);
144
+ const p = await n.readdir(a);
145
+ await i(a, c, p);
146
146
  } else {
147
147
  console.info(`⚙️ Uploading '${t}/${l}'.`);
148
- const u = `wrangler r2 object put "datapos-sample-data-eu/${r}/${l}" --file="${t}/${l}" --jurisdiction=eu --remote`, g = await p(u);
148
+ const p = `wrangler r2 object put "datapos-sample-data-eu/${r}/${l}" --file="${t}/${l}" --jurisdiction=eu --remote`, g = await u(p);
149
149
  if (g.stderr) throw new Error(g.stderr);
150
150
  }
151
151
  }
@@ -173,7 +173,7 @@ async function P() {
173
173
  async function U(o, e) {
174
174
  try {
175
175
  console.info("🚀 Uploading module to R2....");
176
- const i = JSON.parse(await n.readFile("package.json", "utf8")), s = e.replace(/^(.*?\.)/, `$1v${i.version}.`), { stderr: t } = await p(`wrangler r2 object put ${s} --file=dist/${o} --content-type application/javascript --jurisdiction=eu --remote`);
176
+ const i = JSON.parse(await n.readFile("package.json", "utf8")), s = e.replace(/^(.*?\.)/, `$1v${i.version}.`), { stderr: t } = await u(`wrangler r2 object put ${s} --file=dist/${o} --content-type application/javascript --jurisdiction=eu --remote`);
177
177
  if (t) throw new Error(t);
178
178
  console.info("✅ Module uploaded to R2.");
179
179
  } catch (i) {
@@ -187,8 +187,8 @@ export {
187
187
  F as buildInformerConfig,
188
188
  C as buildPresenterConfig,
189
189
  J as buildPublicDirectoryIndex,
190
- E as bumpVersion,
191
- k as echoError,
190
+ k as bumpVersion,
191
+ E as echoScriptNotImplemented,
192
192
  I as sendDeploymentNotice,
193
193
  R as syncWithGitHub,
194
194
  A as uploadDirectoryToR2,
@@ -8,10 +8,10 @@ declare function buildContextConfig(): Promise<void>;
8
8
  declare function buildInformerConfig(): Promise<void>;
9
9
  declare function buildPresenterConfig(): Promise<void>;
10
10
  declare function bumpVersion(): Promise<void>;
11
- declare function echoError(message: string): void;
11
+ declare function echoScriptNotImplemented(name: string): void;
12
12
  declare function sendDeploymentNotice(): Promise<void>;
13
13
  declare function syncWithGitHub(): Promise<void>;
14
14
  declare function uploadDirectoryToR2(sourceDirectory: string, uploadDirectory: string): Promise<void>;
15
15
  declare function uploadModuleConfig(): Promise<void>;
16
16
  declare function uploadModuleToR2(fromPath: string, toPath: string): Promise<void>;
17
- export { buildConfig, buildConnectorConfig, buildContextConfig, buildInformerConfig, buildPresenterConfig, buildPublicDirectoryIndex, bumpVersion, echoError, sendDeploymentNotice, syncWithGitHub, uploadDirectoryToR2, uploadModuleConfig, uploadModuleToR2 };
17
+ export { buildConfig, buildConnectorConfig, buildContextConfig, buildInformerConfig, buildPresenterConfig, buildPublicDirectoryIndex, bumpVersion, echoScriptNotImplemented, sendDeploymentNotice, syncWithGitHub, uploadDirectoryToR2, uploadModuleConfig, uploadModuleToR2 };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "MIT",
4
4
  "private": false,
5
5
  "type": "module",
6
- "version": "0.3.62",
6
+ "version": "0.3.63",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
@@ -45,7 +45,7 @@
45
45
  "publish:toNPM": "npm publish --access public",
46
46
  "release": "npm run sync:withGitHub && npm run build && npm run publish:toNPM",
47
47
  "sync:withGitHub": "npm run bump:version && node -e \"import('./dist/datapos-development.es.js').then(m => m.syncWithGitHub())\"",
48
- "test": "bash -c 'echo \" Test script not implemented.\"'",
48
+ "test": "node -e \"import('./dist/datapos-development.es.js').then(m => m.echoScriptNotImplemented('Test'))\"",
49
49
  "update:dataPosDeps": "npm run _update:developDeps",
50
50
  "_update:developDeps": "npm install --save-dev @datapos/datapos-development@latest"
51
51
  }