baja-lite 1.3.15 → 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.
Files changed (2) hide show
  1. package/code.js +3 -2
  2. package/package.json +2 -2
package/code.js CHANGED
@@ -4,7 +4,8 @@ import mustache from 'mustache';
4
4
  import { createPool } from 'mysql2/promise';
5
5
  import path from 'path';
6
6
  import { start } from 'repl';
7
- import { mkdir } from 'shelljs';
7
+ import pkg from 'shelljs';
8
+ const { mkdir } = pkg;
8
9
  const lxMap = {
9
10
  tinyint: "number",
10
11
  smallint: "number",
@@ -47,7 +48,7 @@ const lxMap = {
47
48
  geometrycollection: "Object"
48
49
  };
49
50
  let force = false;
50
- const basepath = path.join(__dirname, '..', '..');
51
+ const basepath = path.join(import.meta.dirname, '..', '..');
51
52
  const config = path.join(basepath, 'baja.code.json');
52
53
  const templatePath = path.join(basepath, 'code-template');
53
54
  console.log(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baja-lite",
3
- "version": "1.3.15",
3
+ "version": "1.3.18",
4
4
  "description": "some util for self",
5
5
  "homepage": "https://github.com/void-soul/util-man",
6
6
  "repository": {
@@ -38,7 +38,7 @@
38
38
  "@msgpack/msgpack": "3.1.1",
39
39
  "@types/request-promise": "4.1.51",
40
40
  "axios": "1.8.4",
41
- "baja-lite-field": "1.3.15",
41
+ "baja-lite-field": "1.3.18",
42
42
  "decimal.js": "10.5.0",
43
43
  "html-parse-stringify": "3.0.1",
44
44
  "iterare": "1.2.1",