@ttoss/postgresdb 0.2.17 → 0.2.19

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/dist/esm/index.js +10 -5
  2. package/package.json +2 -2
package/dist/esm/index.js CHANGED
@@ -1,11 +1,16 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", {
4
+ value,
5
+ configurable: true
6
+ });
2
7
 
3
8
  // src/sequelize-typescript.ts
4
9
  import { BelongsTo, BelongsToMany, Column, CreatedAt, DataType, DeletedAt, ForeignKey, HasMany, HasOne, Index, Model, PrimaryKey, Sequelize, Table, Unique, UpdatedAt } from "sequelize-typescript";
5
10
 
6
11
  // src/initialize.ts
7
12
  var sequelize;
8
- var initialize = async ({
13
+ var initialize = /* @__PURE__ */__name(async ({
9
14
  models,
10
15
  ...restOptions
11
16
  }) => {
@@ -29,9 +34,9 @@ var initialize = async ({
29
34
  },
30
35
  models: Object.values(models),
31
36
  /**
32
- * `options` cannot change the properties below.
33
- * They are fixed for the project.
34
- */
37
+ * `options` cannot change the properties below.
38
+ * They are fixed for the project.
39
+ */
35
40
  dialect: "postgres"
36
41
  });
37
42
  }
@@ -44,7 +49,7 @@ var initialize = async ({
44
49
  close,
45
50
  ...models
46
51
  };
47
- };
52
+ }, "initialize");
48
53
 
49
54
  // src/index.ts
50
55
  import { Op } from "sequelize";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/postgresdb",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "A library to handle PostgreSQL database connections and queries",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -31,7 +31,7 @@
31
31
  "devDependencies": {
32
32
  "jest": "^30.0.4",
33
33
  "tsup": "^8.5.0",
34
- "@ttoss/config": "^1.35.5"
34
+ "@ttoss/config": "^1.35.7"
35
35
  },
36
36
  "keywords": [
37
37
  "database",