ultravisor 1.3.17 → 1.3.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultravisor",
3
- "version": "1.3.17",
3
+ "version": "1.3.18",
4
4
  "description": "Cyclic process execution with ai integration.",
5
5
  "main": "source/Ultravisor.cjs",
6
6
  "bin": {
@@ -591,13 +591,23 @@ class UltravisorTimelineStore extends libPictService
591
591
  WHERE At < ?
592
592
  `);
593
593
  let tmpDelete = tmpDB.prepare('DELETE FROM TimelineRecord WHERE At < ?');
594
- let tmpTx = tmpDB.transaction((pCutoff, pNowIso) =>
594
+ // node:sqlite's DatabaseSync has no `.transaction(fn)` helper (that
595
+ // was a better-sqlite3 idiom). Bracket the INSERT-then-DELETE
596
+ // manually to keep the archive move atomic.
597
+ let tmpResult;
598
+ tmpDB.exec('BEGIN');
599
+ try
595
600
  {
596
- let tmpRes = tmpInsert.run(pNowIso, pCutoff);
597
- let tmpDelRes = tmpDelete.run(pCutoff);
598
- return { Inserted: tmpRes.changes, Deleted: tmpDelRes.changes };
599
- });
600
- let tmpResult = tmpTx(pCutoffIso, tmpNow);
601
+ let tmpRes = tmpInsert.run(tmpNow, pCutoffIso);
602
+ let tmpDelRes = tmpDelete.run(pCutoffIso);
603
+ tmpDB.exec('COMMIT');
604
+ tmpResult = { Inserted: tmpRes.changes, Deleted: tmpDelRes.changes };
605
+ }
606
+ catch (pTxError)
607
+ {
608
+ tmpDB.exec('ROLLBACK');
609
+ throw pTxError;
610
+ }
601
611
  if (tmpResult.Inserted !== tmpResult.Deleted)
602
612
  {
603
613
  this.log.warn(`TimelineStore: archive insert/delete mismatch (${tmpResult.Inserted}/${tmpResult.Deleted})`);
@@ -6010,9 +6010,9 @@
6010
6010
  "license": "MIT"
6011
6011
  },
6012
6012
  "node_modules/electron-to-chromium": {
6013
- "version": "1.5.366",
6014
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.366.tgz",
6015
- "integrity": "sha512-OlRuhb688YTCzzU3gXPLn6nGyd+F+53INE1qaKKlu6kETErE8FYsyDh0XqXEU+uBRn0MpCzz2vfNwORhkap8qg==",
6013
+ "version": "1.5.367",
6014
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.367.tgz",
6015
+ "integrity": "sha512-4Mk/mrynCNQ+atY40D3UpmhLWB6AHMbYMlIrPhHcMF6x0L7O0b052FCAsxw1LlaR++UFuNg3D/A6XCuGDa0guQ==",
6016
6016
  "dev": true,
6017
6017
  "license": "ISC"
6018
6018
  },
@@ -10154,24 +10154,24 @@
10154
10154
  "license": "MIT"
10155
10155
  },
10156
10156
  "node_modules/meadow-integration": {
10157
- "version": "1.0.41",
10158
- "resolved": "https://registry.npmjs.org/meadow-integration/-/meadow-integration-1.0.41.tgz",
10159
- "integrity": "sha512-veGmS+W8IZCK3hzq3MuJGSbYssgV3I6cxeqz31LwXixMEBruALIn4jf86/fBDGfrSqblzzpxr/euBOPc8u22iw==",
10157
+ "version": "1.0.42",
10158
+ "resolved": "https://registry.npmjs.org/meadow-integration/-/meadow-integration-1.0.42.tgz",
10159
+ "integrity": "sha512-ISIjE4ALabMQ0RDbBuDfHLsa2Yd/09TCIoP3wTcnrosZhgrC/0T+vvhUgxnqlPmaN/JWkRiPErbMapV8+V0q6g==",
10160
10160
  "dev": true,
10161
10161
  "license": "MIT",
10162
10162
  "dependencies": {
10163
10163
  "fable": "^3.1.75",
10164
10164
  "fable-serviceproviderbase": "^3.0.19",
10165
10165
  "fast-xml-parser": "^4.4.1",
10166
- "meadow": "^2.0.41",
10166
+ "meadow": "^2.0.43",
10167
10167
  "meadow-connection-mssql": "^1.0.23",
10168
10168
  "meadow-connection-mysql": "^1.0.19",
10169
10169
  "orator": "^6.1.2",
10170
10170
  "orator-serviceserver-restify": "^2.0.11",
10171
- "pict-provider-theme": "^1.0.1",
10171
+ "pict-provider-theme": "^1.1.2",
10172
10172
  "pict-section-flow": "^1.0.1",
10173
- "pict-section-modal": "^1.1.1",
10174
- "pict-section-theme": "^1.0.5",
10173
+ "pict-section-modal": "^1.1.4",
10174
+ "pict-section-theme": "^1.1.1",
10175
10175
  "pict-service-commandlineutility": "^1.0.19",
10176
10176
  "pict-sessionmanager": "^1.0.2",
10177
10177
  "pict-view": "^1.0.68",