@datapos/datapos-shared 0.3.131 → 0.3.136

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.
@@ -325,7 +325,7 @@ const N = "en-US", w = {}, q = (e) => {
325
325
  async function ce() {
326
326
  try {
327
327
  console.log("🚀 Building connector configuration...");
328
- const e = await JSON.parse(await i.readFile("package.json", "utf8")), r = await JSON.parse(await i.readFile("config.json", "utf8")), a = await i.readFile("src/index.ts", "utf8");
328
+ const e = JSON.parse(await i.readFile("package.json", "utf8")), r = JSON.parse(await i.readFile("config.json", "utf8")), a = await i.readFile("src/index.ts", "utf8");
329
329
  let t = !1, n = !1;
330
330
  const o = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, s = [...a.matchAll(o)].filter((u) => !u[1] && u[2] !== "constructor").map((u) => {
331
331
  const c = u[2];
@@ -341,7 +341,7 @@ async function ce() {
341
341
  async function le() {
342
342
  try {
343
343
  console.log("🚀 Building context configuration...");
344
- const e = await JSON.parse(await i.readFile("package.json", "utf8")), r = await JSON.parse(await i.readFile("config.json", "utf8")), a = await i.readFile("src/index.ts", "utf8"), t = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, n = [...a.matchAll(t)].filter((o) => !o[1] && o[2] !== "constructor").map((o) => o[2]);
344
+ const e = JSON.parse(await i.readFile("package.json", "utf8")), r = JSON.parse(await i.readFile("config.json", "utf8")), a = await i.readFile("src/index.ts", "utf8"), t = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, n = [...a.matchAll(t)].filter((o) => !o[1] && o[2] !== "constructor").map((o) => o[2]);
345
345
  e.name && (r.id = e.name), r.operations = n, e.version && (r.version = e.version), await i.writeFile("config.json", JSON.stringify(r, void 0, 4), "utf8");
346
346
  } catch (e) {
347
347
  console.warn("❌ Error building context configuration.", e);
@@ -350,7 +350,7 @@ async function le() {
350
350
  async function de() {
351
351
  try {
352
352
  console.log("🚀 Building informer configuration...");
353
- const e = await JSON.parse(await i.readFile("package.json", "utf8")), r = await JSON.parse(await i.readFile("config.json", "utf8")), a = await i.readFile("src/index.ts", "utf8"), t = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, n = [...a.matchAll(t)].filter((o) => !o[1] && o[2] !== "constructor").map((o) => o[2]);
353
+ const e = JSON.parse(await i.readFile("package.json", "utf8")), r = JSON.parse(await i.readFile("config.json", "utf8")), a = await i.readFile("src/index.ts", "utf8"), t = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, n = [...a.matchAll(t)].filter((o) => !o[1] && o[2] !== "constructor").map((o) => o[2]);
354
354
  e.name && (r.id = e.name), r.operations = n, e.version && (r.version = e.version), await i.writeFile("config.json", JSON.stringify(r, void 0, 4), "utf8");
355
355
  } catch (e) {
356
356
  console.warn("❌ Error building informer configuration.", e);
@@ -359,7 +359,7 @@ async function de() {
359
359
  async function ue() {
360
360
  try {
361
361
  console.log("🚀 Building presenter configuration...");
362
- const e = await JSON.parse(await i.readFile("package.json", "utf8")), r = await JSON.parse(await i.readFile("config.json", "utf8")), a = await i.readFile("src/index.ts", "utf8"), t = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, n = [...a.matchAll(t)].filter((o) => !o[1] && o[2] !== "constructor").map((o) => o[2]);
362
+ const e = JSON.parse(await i.readFile("package.json", "utf8")), r = JSON.parse(await i.readFile("config.json", "utf8")), a = await i.readFile("src/index.ts", "utf8"), t = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, n = [...a.matchAll(t)].filter((o) => !o[1] && o[2] !== "constructor").map((o) => o[2]);
363
363
  e.name && (r.id = e.name), r.operations = n, e.version && (r.version = e.version), await i.writeFile("config.json", JSON.stringify(r, void 0, 4), "utf8");
364
364
  } catch (e) {
365
365
  console.warn("❌ Error building context configuration.", e);
@@ -368,7 +368,7 @@ async function ue() {
368
368
  async function ge() {
369
369
  try {
370
370
  console.log("🚀 Bumping version...");
371
- const e = await JSON.parse(await i.readFile("package.json", "utf8"));
371
+ const e = JSON.parse(await i.readFile("package.json", "utf8"));
372
372
  if (e.version) {
373
373
  const r = e.version, a = e.version.split(".");
374
374
  e.version = `${a[0]}.${a[1]}.${Number(a[2]) + 1}`, await i.writeFile("package.json", JSON.stringify(e, void 0, 4), "utf8"), console.log(`✅ Version bumped from ${r} to ${e.version}.`);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datapos/datapos-shared",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "0.3.131",
5
+ "version": "0.3.136",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"