@openinc/parse-server-opendash 4.0.23 → 4.0.25

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/README.md CHANGED
@@ -4,6 +4,7 @@ Parse Server Cloud Code for open.DASH/open.WARE
4
4
 
5
5
  ## Usage
6
6
 
7
+
7
8
  ```
8
9
  npm i @openinc/parse-server-opendash
9
10
  ```
@@ -122,6 +122,7 @@ async function init() {
122
122
  object.set("status", startMs < nowMs + CLOCK_SKEW_MS ? "running" : "planned");
123
123
  }
124
124
  else if (startMs < nowMs - CLOCK_SKEW_MS) {
125
+ console.log("[MES] - beforeSaveHook: Setting status to unknown for order " + object.id + " due to missing source and order running for more than a minute.");
125
126
  object.set("status", "unknown");
126
127
  }
127
128
  }
@@ -182,6 +183,7 @@ async function init() {
182
183
  runningData.name = "Order_Running";
183
184
  console.log("-".repeat(20));
184
185
  console.log("Publishing running order " + object.id);
186
+ console.log("Data:", runningData);
185
187
  console.log("-".repeat(20));
186
188
  await (0, index_js_1.publishDataItem)(runningData, user?.getEmail() || undefined, true);
187
189
  }
@@ -303,6 +305,7 @@ async function createValueArrayForObject(object, extraValues, fields) {
303
305
  }
304
306
  values.push(value);
305
307
  }
308
+ console.log("[MES] - createValueArrayForObject: Created values object for order " + object.id + ": ", values);
306
309
  return [{ date: object.get("start").getTime(), value: values }];
307
310
  }
308
311
  function scheduleOrderStartedStatusCheck(cronInterval) {
@@ -327,6 +330,7 @@ function scheduleOrderStartedStatusCheck(cronInterval) {
327
330
  }
328
331
  else if (startMs < nowMs - CLOCK_SKEW_MS) {
329
332
  next = "unknown";
333
+ console.log("[MES] - orderStartedStatusCheck: Setting status to unknown for order " + order.id + " due to missing source and order running for more than a minute.");
330
334
  }
331
335
  else if (!status) {
332
336
  next = "planned";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "4.0.23",
3
+ "version": "4.0.25",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  "path": "@semantic-release/git",
42
42
  "assets": [
43
43
  "package.json",
44
- "pnpm-lock.json",
44
+ "pnpm-lock.yaml",
45
45
  "CHANGELOG.md"
46
46
  ],
47
47
  "message": "chore(release): Release ${nextRelease.version} \n\n${nextRelease.notes}"
@@ -66,34 +66,26 @@
66
66
  "docker:rebuild": "cd ./docker-dev && powershell -NoProfile -ExecutionPolicy Bypass -File rebuild_and_restart.ps1"
67
67
  },
68
68
  "dependencies": {
69
- "@openinc/parse-server-schema": "^4.1.0",
69
+ "@openinc/parse-server-schema": "^4.1.1",
70
70
  "amqplib": "^0.10.9",
71
71
  "cron": "^4.4.0",
72
72
  "dayjs": "^1.11.20",
73
73
  "fast-equals": "^6.0.0",
74
- "i18next": "^26.0.5",
75
- "i18next-fs-backend": "^2.6.3",
74
+ "i18next": "^26.0.6",
75
+ "i18next-fs-backend": "^2.6.4",
76
76
  "jsonwebtoken": "^9.0.3",
77
77
  "jwks-rsa": "^4.0.1",
78
78
  "nodemailer": "^8.0.5",
79
79
  "nunjucks": "^3.2.4",
80
- "parse": "^8.5.0",
80
+ "parse": "^8.6.0",
81
81
  "parse-server": "9.8.0",
82
82
  "pdf-img-convert": "2.0.0",
83
83
  "rimraf": "^6.1.3",
84
- "semantic-release": "^25.0.3",
85
84
  "table": "^6.9.0",
86
85
  "web-push": "^3.6.7",
87
86
  "winston": "^3.19.0"
88
87
  },
89
88
  "devDependencies": {
90
- "@semantic-release/changelog": "^6.0.3",
91
- "@semantic-release/commit-analyzer": "^13.0.1",
92
- "@semantic-release/exec": "^7.1.0",
93
- "@semantic-release/git": "^10.0.1",
94
- "@semantic-release/github": "^12.0.6",
95
- "@semantic-release/npm": "^13.1.5",
96
- "@semantic-release/release-notes-generator": "^14.1.0",
97
89
  "@types/jsonwebtoken": "^9.0.10",
98
90
  "@types/node": "^25.6.0",
99
91
  "@types/nodemailer": "^7.0.11",
@@ -101,10 +93,16 @@
101
93
  "@types/safe-timers": "^1.1.2",
102
94
  "@types/web-push": "^3.6.4",
103
95
  "concurrently": "^9.2.1",
104
- "semantic-release-export-data": "^1.2.0",
105
96
  "ts-node": "^10.9.2",
106
97
  "typedoc": "^0.28.19",
107
98
  "typedoc-plugin-markdown": "^4.11.0",
108
99
  "typescript": "^5.9.3"
100
+ },
101
+ "pnpm": {
102
+ "auditConfig": {
103
+ "ignoreGhsas": [
104
+ "GHSA-w5hq-g745-h8pq"
105
+ ]
106
+ }
109
107
  }
110
108
  }