@dpuse/dpuse-development 0.3.486 → 0.3.489

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,10 +1,13 @@
1
1
  # Common git ignore configuration for PUBLISHED Data Positioning projects.
2
+ .env
3
+ .npmrc # In case this project is published in the future.
4
+ .wrangler
2
5
  dependency-check-bin
6
+ dist
3
7
  dist-scripts
4
8
  node_modules
5
9
  rust/*/pkg
6
10
  rust/*/target
7
11
  rust/target
8
- .env
9
- .npmrc
10
- **/.DS_Store
12
+ wrangler.jsonc
13
+ **/.DS_Store
@@ -1,4 +1,7 @@
1
1
  # Common git ignore configuration for UNPUBLISHED Data Positioning projects.
2
+ .env
3
+ .npmrc # In case this project is published in the future.
4
+ .wrangler
2
5
  dependency-check-bin
3
6
  dist
4
7
  dist-scripts
@@ -6,6 +9,5 @@ node_modules
6
9
  rust/*/pkg
7
10
  rust/*/target
8
11
  rust/target
9
- .env
10
- .npmrc # In case this project is published in the future.
11
- **/.DS_Store
12
+ wrangler.jsonc
13
+ **/.DS_Store
@@ -6369,7 +6369,7 @@ async function Lr() {
6369
6369
  body: JSON.stringify(e),
6370
6370
  headers: { "Content-Type": "application/json" },
6371
6371
  method: "PUT"
6372
- }, n = await fetch(`https://api.dpuse.app/states/${e.id}`, t);
6372
+ }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6373
6373
  if (!n.ok) throw Error(await n.text());
6374
6374
  }
6375
6375
  async function Rr(e) {
@@ -6377,7 +6377,7 @@ async function Rr(e) {
6377
6377
  body: JSON.stringify(e),
6378
6378
  headers: { "Content-Type": "application/json" },
6379
6379
  method: "PUT"
6380
- }, r = await fetch(`https://api.dpuse.app/states/${t}`, n);
6380
+ }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6381
6381
  if (!r.ok) throw Error(await r.text());
6382
6382
  }
6383
6383
  async function zr(e, t) {
@@ -6503,12 +6503,24 @@ async function Yr(e, t, n, r) {
6503
6503
  async function Xr() {
6504
6504
  try {
6505
6505
  jr("Synchronise Project with GitHub");
6506
- let e = await Q("package.json");
6507
- $("Bump project version"), await Qr("1️⃣", e), await X("2️⃣ Stage changes", "git", ["add", "."]), await X("3️⃣ Commit changes", "git", [
6506
+ let e = await Q("package.json"), t = await Q("config.json");
6507
+ switch (await Qr("1️⃣", e), Nr(t.id).typeId) {
6508
+ case "connector":
6509
+ await Gr("2️⃣", e);
6510
+ break;
6511
+ case "context":
6512
+ await Kr("2️⃣", e);
6513
+ break;
6514
+ case "presenter":
6515
+ await qr("2️⃣", e);
6516
+ break;
6517
+ default: await Wr("2️⃣", e);
6518
+ }
6519
+ await X("3️⃣ Stage changes", "git", ["add", "."]), await X("4️⃣ Commit changes", "git", [
6508
6520
  "commit",
6509
6521
  "-m",
6510
6522
  `"v${e.version}"`
6511
- ]), await X("4️⃣ Push changes", "git", [
6523
+ ]), await X("5️⃣ Push changes", "git", [
6512
6524
  "push",
6513
6525
  "origin",
6514
6526
  "main:main"