@tachybase/database 1.3.42 → 1.3.44

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,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
8
  var __export = (target, all) => {
@@ -15,17 +17,25 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
  var query_generator_exports = {};
20
30
  __export(query_generator_exports, {
21
31
  selectQuery: () => selectQuery
22
32
  });
23
33
  module.exports = __toCommonJS(query_generator_exports);
24
- var import_utils = require("@tachybase/utils");
34
+ var import_lodash = __toESM(require("lodash"));
25
35
  function selectQuery(tableName, options, model) {
26
36
  var _a;
27
37
  options = options || {};
28
- if (import_utils.lodash.isEmpty(options)) {
38
+ if (import_lodash.default.isEmpty(options)) {
29
39
  return `${model.sql};`;
30
40
  }
31
41
  const queryItems = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/database",
3
- "version": "1.3.42",
3
+ "version": "1.3.44",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
@@ -23,8 +23,8 @@
23
23
  "semver": "7.7.2",
24
24
  "sequelize": "^6.37.5",
25
25
  "umzug": "^3.8.2",
26
- "@tachybase/utils": "1.3.42",
27
- "@tachybase/logger": "1.3.42"
26
+ "@tachybase/utils": "1.3.44",
27
+ "@tachybase/logger": "1.3.44"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/flat": "^5.0.5",