@datapos/datapos-development 0.3.77 → 0.3.79

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.
@@ -1,7 +1,8 @@
1
1
  import { exec as qn } from "child_process";
2
+ import { promises as h } from "fs";
2
3
  import { nanoid as Yn } from "nanoid";
3
4
  import { promisify as Xn } from "util";
4
- const h = {}, Qn = ["createObject", "dropObject", "removeRecords", "upsertRecords"], nt = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
5
+ const Qn = ["createObject", "dropObject", "removeRecords", "upsertRecords"], nt = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
5
6
  function a(n, t, e) {
6
7
  function o(c, u) {
7
8
  var d;
@@ -2041,7 +2042,7 @@ const Zn = Ln({
2041
2042
  typeId: Wn(["app", "engine", "connector", "context", "informer", "presenter"]),
2042
2043
  version: A()
2043
2044
  }), N = Xn(qn);
2044
- async function ti() {
2045
+ async function ei() {
2045
2046
  try {
2046
2047
  console.info("🚀 Building configuration...");
2047
2048
  const n = JSON.parse(await h.readFile("package.json", "utf8")), t = JSON.parse(await h.readFile("config.json", "utf8"));
@@ -2050,7 +2051,7 @@ async function ti() {
2050
2051
  console.error("❌ Error building configuration.", n);
2051
2052
  }
2052
2053
  }
2053
- async function ei(n) {
2054
+ async function oi(n) {
2054
2055
  try {
2055
2056
  console.info(`🚀 Building public directory index for identifier '${n}'...`);
2056
2057
  const t = {};
@@ -2084,7 +2085,7 @@ async function ei(n) {
2084
2085
  console.error("❌ Error building public directory index.", t);
2085
2086
  }
2086
2087
  }
2087
- async function oi() {
2088
+ async function ri() {
2088
2089
  try {
2089
2090
  console.info("🚀 Building connector configuration...");
2090
2091
  const n = JSON.parse(await h.readFile("package.json", "utf8")), t = JSON.parse(await h.readFile("config.json", "utf8")), e = await h.readFile("src/index.ts", "utf8");
@@ -2100,7 +2101,7 @@ async function oi() {
2100
2101
  console.error("❌ Error building connector configuration.", n);
2101
2102
  }
2102
2103
  }
2103
- async function ri() {
2104
+ async function ii() {
2104
2105
  try {
2105
2106
  console.info("🚀 Building context configuration...");
2106
2107
  const n = JSON.parse(await h.readFile("package.json", "utf8")), t = JSON.parse(await h.readFile("config.json", "utf8")), e = await h.readFile("src/index.ts", "utf8"), o = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, r = [...e.matchAll(o)].filter((i) => !i[1] && i[2] !== "constructor").map((i) => i[2]);
@@ -2109,7 +2110,7 @@ async function ri() {
2109
2110
  console.error("❌ Error building context configuration.", n);
2110
2111
  }
2111
2112
  }
2112
- async function ii() {
2113
+ async function si() {
2113
2114
  try {
2114
2115
  console.info("🚀 Building informer configuration...");
2115
2116
  const n = JSON.parse(await h.readFile("package.json", "utf8")), t = JSON.parse(await h.readFile("config.json", "utf8")), e = await h.readFile("src/index.ts", "utf8"), o = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, r = [...e.matchAll(o)].filter((i) => !i[1] && i[2] !== "constructor").map((i) => i[2]);
@@ -2118,7 +2119,7 @@ async function ii() {
2118
2119
  console.error("❌ Error building informer configuration.", n);
2119
2120
  }
2120
2121
  }
2121
- async function si() {
2122
+ async function ai() {
2122
2123
  try {
2123
2124
  console.info("🚀 Building presenter configuration...");
2124
2125
  const n = JSON.parse(await h.readFile("package.json", "utf8")), t = JSON.parse(await h.readFile("config.json", "utf8")), e = await h.readFile("src/index.ts", "utf8"), o = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, r = [...e.matchAll(o)].filter((i) => !i[1] && i[2] !== "constructor").map((i) => i[2]);
@@ -2127,7 +2128,7 @@ async function si() {
2127
2128
  console.error("❌ Error building context configuration.", n);
2128
2129
  }
2129
2130
  }
2130
- async function ai() {
2131
+ async function ci() {
2131
2132
  try {
2132
2133
  console.info("🚀 Bumping version...");
2133
2134
  const n = JSON.parse(await h.readFile("package.json", "utf8"));
@@ -2140,10 +2141,10 @@ async function ai() {
2140
2141
  console.error("❌ Error bumping package version.", n);
2141
2142
  }
2142
2143
  }
2143
- function ci(n) {
2144
+ function ui(n) {
2144
2145
  console.error(`❌ ${n} script not implemented.`);
2145
2146
  }
2146
- async function ui() {
2147
+ async function di() {
2147
2148
  try {
2148
2149
  console.info("🚀 Sending deployment notice...");
2149
2150
  const n = JSON.parse(await h.readFile("config.json", "utf8")), t = {
@@ -2157,7 +2158,7 @@ async function ui() {
2157
2158
  console.error("❌ Error sending deployment notice.", n);
2158
2159
  }
2159
2160
  }
2160
- async function di() {
2161
+ async function fi() {
2161
2162
  try {
2162
2163
  console.info("🚀 Synchronising with GitHub....");
2163
2164
  const n = JSON.parse(await h.readFile("package.json", "utf8"));
@@ -2166,7 +2167,7 @@ async function di() {
2166
2167
  console.error("❌ Error synchronising with GitHub.", n);
2167
2168
  }
2168
2169
  }
2169
- async function fi(n, t) {
2170
+ async function li(n, t) {
2170
2171
  try {
2171
2172
  console.info("🚀 Uploading directory to R2....");
2172
2173
  async function e(r, i, s) {
@@ -2188,7 +2189,7 @@ async function fi(n, t) {
2188
2189
  console.error("❌ Error uploading directory to R2.", e);
2189
2190
  }
2190
2191
  }
2191
- async function li() {
2192
+ async function pi() {
2192
2193
  try {
2193
2194
  console.info("🚀 Uploading module configuration....");
2194
2195
  const n = JSON.parse(await h.readFile("config.json", "utf8")), t = n.id, e = {
@@ -2202,7 +2203,7 @@ async function li() {
2202
2203
  console.error("❌ Error uploading module configuration.", n);
2203
2204
  }
2204
2205
  }
2205
- async function pi(n, t) {
2206
+ async function hi(n, t) {
2206
2207
  try {
2207
2208
  console.info("🚀 Uploading module to R2...");
2208
2209
  const o = `v${JSON.parse(await h.readFile("package.json", "utf8")).version}`;
@@ -2225,17 +2226,17 @@ async function pi(n, t) {
2225
2226
  }
2226
2227
  }
2227
2228
  export {
2228
- ti as buildConfig,
2229
- oi as buildConnectorConfig,
2230
- ri as buildContextConfig,
2231
- ii as buildInformerConfig,
2232
- si as buildPresenterConfig,
2233
- ei as buildPublicDirectoryIndex,
2234
- ai as bumpVersion,
2235
- ci as echoScriptNotImplemented,
2236
- ui as sendDeploymentNotice,
2237
- di as syncWithGitHub,
2238
- fi as uploadDirectoryToR2,
2239
- li as uploadModuleConfigToDO,
2240
- pi as uploadModuleToR2
2229
+ ei as buildConfig,
2230
+ ri as buildConnectorConfig,
2231
+ ii as buildContextConfig,
2232
+ si as buildInformerConfig,
2233
+ ai as buildPresenterConfig,
2234
+ oi as buildPublicDirectoryIndex,
2235
+ ci as bumpVersion,
2236
+ ui as echoScriptNotImplemented,
2237
+ di as sendDeploymentNotice,
2238
+ fi as syncWithGitHub,
2239
+ li as uploadDirectoryToR2,
2240
+ pi as uploadModuleConfigToDO,
2241
+ hi as uploadModuleToR2
2241
2242
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.77",
3
+ "version": "0.3.79",
4
4
  "description": "A TypeScript library of utilities for managing the Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",