sqlmath 2023.1.29 → 2023.2.26

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  # Todo
4
4
  - none
5
5
 
6
+ # v2023.2.26
7
+ - chart - bugfix - use spy for reference previous-ydate instead of 1a_mybot
8
+ - sqlmath - add functions dbExecAndReturnLastJsonAsync(), dbExecAndReturnLastTextAsync()
9
+ - sqlmath - add sql-functions jfromfloat64array(), jtofloat64array()
10
+ - sqlite - update to sqlite v3.39.4
11
+ - ci - replace shell-function shGithubPushBackupAndSquash() with simplified shGitCommitPushOrSquash()
12
+ - ci - in windows-ci-env, alias node=node.exe instead of using winpty for pipes
13
+
6
14
  # v2023.1.29
7
15
  - ci - add auto-logo-creation in private repo
8
16
  - ci - auto-create asset_image_logo_512.png from asset_image_logo_512.html
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  # Status
5
- | Branch | [master<br>(v2023.1.29)](https://github.com/sqlmath/sqlmath/tree/master) | [beta<br>(Web Demo)](https://github.com/sqlmath/sqlmath/tree/beta) | [alpha<br>(Development)](https://github.com/sqlmath/sqlmath/tree/alpha) |
5
+ | Branch | [master<br>(v2023.2.26)](https://github.com/sqlmath/sqlmath/tree/master) | [beta<br>(Web Demo)](https://github.com/sqlmath/sqlmath/tree/beta) | [alpha<br>(Development)](https://github.com/sqlmath/sqlmath/tree/alpha) |
6
6
  |--:|:--:|:--:|:--:|
7
7
  | CI | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Amaster) | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=beta)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Abeta) | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=alpha)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Aalpha) |
8
8
  | Coverage | [![coverage](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/index.html) | [![coverage](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/index.html) | [![coverage](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/index.html) |
Binary file
Binary file
Binary file
package/jslint.mjs CHANGED
@@ -165,7 +165,7 @@ let jslint_charset_ascii = (
165
165
  + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
166
166
  + "`abcdefghijklmnopqrstuvwxyz{|}~\u007f"
167
167
  );
168
- let jslint_edition = "v2023.1.1-beta";
168
+ let jslint_edition = "v2022.2.1-beta";
169
169
  let jslint_export; // The jslint object to be exported.
170
170
  let jslint_fudge = 1; // Fudge starting line and starting
171
171
  // ... column to 1.
@@ -11236,25 +11236,27 @@ function sentinel() {}
11236
11236
  }
11237
11237
  }));
11238
11238
  exitCode = await new Promise(function (resolve) {
11239
- moduleChildProcess.spawn((
11240
- processArgv[0] === "npm"
11239
+ moduleChildProcess.spawn(
11240
+ (
11241
+ processArgv[0] === "npm"
11241
11242
 
11242
11243
  // If win32 environment, then replace program npm with npm.cmd.
11243
11244
  // Coverage-hack - Ugly-hack to get test-coverage under both win32 and linux.
11244
11245
 
11245
- ? process.platform.replace("win32", "npm.cmd").replace(
11246
- process.platform,
11247
- "npm"
11248
- )
11249
- : processArgv[0]
11250
- ), processArgv.slice(1), {
11251
- env: Object.assign({}, process.env, {
11252
- NODE_V8_COVERAGE: coverageDir
11253
- }),
11254
- stdio: [
11255
- "ignore", 1, 2
11256
- ]
11257
- }).on("exit", resolve);
11246
+ ? process.platform.replace("win32", "npm.cmd").replace(
11247
+ process.platform,
11248
+ "npm"
11249
+ )
11250
+ : processArgv[0]
11251
+ ),
11252
+ processArgv.slice(1),
11253
+ {
11254
+ env: Object.assign({}, process.env, {
11255
+ NODE_V8_COVERAGE: coverageDir
11256
+ }),
11257
+ stdio: ["ignore", 1, 2]
11258
+ }
11259
+ ).on("exit", resolve);
11258
11260
  });
11259
11261
  }
11260
11262
 
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  },
39
39
  "shCiArtifactUpload": 1,
40
40
  "shCiNpmPublish": 1,
41
- "version": "2023.1.29"
41
+ "version": "2023.2.26"
42
42
  }
package/sqlmath.mjs CHANGED
@@ -87,7 +87,7 @@ let debugInline = (function () {
87
87
  let sqlMessageDict = {}; // dict of web-worker-callbacks
88
88
  let sqlMessageId = 0;
89
89
  let sqlWorker;
90
- let version = "v2023.1.29";
90
+ let version = "v2023.2.26";
91
91
 
92
92
  function assertJsonEqual(aa, bb, message) {
93
93
 
@@ -304,6 +304,26 @@ function dbExecAndReturnLastBlobAsync({
304
304
  });
305
305
  }
306
306
 
307
+ async function dbExecAndReturnLastJsonAsync(option) {
308
+
309
+ // This function will exec <sql> in <db> and return last value retrieved
310
+ // from execution as raw text.
311
+
312
+ return JSON.parse(
313
+ await dbExecAndReturnLastTextAsync(option)
314
+ );
315
+ }
316
+
317
+ async function dbExecAndReturnLastTextAsync(option) {
318
+
319
+ // This function will exec <sql> in <db> and return last value retrieved
320
+ // from execution as raw text.
321
+
322
+ return new TextDecoder().decode(
323
+ await dbExecAndReturnLastBlobAsync(option)
324
+ );
325
+ }
326
+
307
327
  async function dbExecAsync({
308
328
  bindList = [],
309
329
  db,
@@ -977,6 +997,8 @@ export {
977
997
  assertOrThrow,
978
998
  dbCloseAsync,
979
999
  dbExecAndReturnLastBlobAsync,
1000
+ dbExecAndReturnLastJsonAsync,
1001
+ dbExecAndReturnLastTextAsync,
980
1002
  dbExecAsync,
981
1003
  dbFileExportAsync,
982
1004
  dbFileImportAsync,