@m2k-5f/pgtx 1.2.0 → 1.2.1

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/dist/index.d.ts CHANGED
@@ -88,5 +88,5 @@ export declare const sql: {
88
88
  * Main Pgtx Connection Pool.
89
89
  * Manages connections, transactions (including SAVEPOINTs), and prepared statements.
90
90
  */
91
- export declare const Pool: typeof PgtxPool;
91
+ export { PgtxPool as Pool };
92
92
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,GAAG;IACZ;;;;;;;;;;;OAWG;;IAGH;;;;;;OAMG;;IAGH;;;;;;;;;;OAUG;;IAGH;;;;;;;OAOG;;IAGH;;;;;;;;OAQG;;IAGH;;;;;;;;;;;;;;;;;;;OAmBG;;CAEN,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,iBAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,GAAG;IACZ;;;;;;;;;;;OAWG;;IAGH;;;;;;OAMG;;IAGH;;;;;;;;;;OAUG;;IAGH;;;;;;;OAOG;;IAGH;;;;;;;;OAQG;;IAGH;;;;;;;;;;;;;;;;;;;OAmBG;;CAEN,CAAA;AAED;;;GAGG;AACH,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,CAAA"}
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ const array_clause_1 = require("./clauses/array.clause");
5
5
  const fragment_clause_1 = require("./clauses/fragment.clause");
6
6
  const iden_caluse_1 = require("./clauses/iden.caluse");
7
7
  const pool_1 = require("./pool");
8
+ Object.defineProperty(exports, "Pool", { enumerable: true, get: function () { return pool_1.Pool; } });
8
9
  const literal_clause_1 = require("./clauses/literal.clause");
9
10
  const update_clause_1 = require("./clauses/update.clause");
10
11
  const insert_clause_1 = require("./clauses/insert.clause");
@@ -87,8 +88,3 @@ exports.sql = {
87
88
  */
88
89
  array: array_clause_1.arrayClause,
89
90
  };
90
- /**
91
- * Main Pgtx Connection Pool.
92
- * Manages connections, transactions (including SAVEPOINTs), and prepared statements.
93
- */
94
- exports.Pool = pool_1.Pool;
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@m2k-5f/pgtx",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Lightweight, high-performance SQL toolkit for node-postgres",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
5
  "files": [
8
6
  "dist",
9
7
  "README.md"
10
8
  ],
11
9
  "scripts": {
12
10
  "build": "tsc",
13
- "prepublishOnly": "npm run build"
11
+ "prepublishOnly": "npm run build",
12
+ "test": "node --import tsx --test ./tests/**/*.ts"
14
13
  },
15
14
  "repository": {
16
15
  "type": "git",
@@ -23,6 +22,13 @@
23
22
  "bugs": {
24
23
  "url": "https://github.com/M2K-5F/pgtx/issues"
25
24
  },
25
+ "exports": {
26
+ ".": {
27
+ "import": "./dist/index.js",
28
+ "require": "./dist/index.js",
29
+ "types": "./dist/index.d.ts"
30
+ }
31
+ },
26
32
  "dependencies": {
27
33
  "pg": "^8.11.0"
28
34
  },