postgrejs 2.18.0 → 2.18.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # v2.18.1
2
+ [2024-08-12]
3
+
4
+ ### Changes
5
+
6
+ * Applied publint to check package.json ([`8ce6bf1`](https://github.com/panates/postgrejs/commit/8ce6bf1e67a02bed513f1238e20a62895862bb5c))
7
+
1
8
  # v2.18.0
2
9
  [2024-08-12]
3
10
 
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
package/package.json CHANGED
@@ -1,29 +1,37 @@
1
1
  {
2
2
  "name": "postgrejs",
3
3
  "description": "Professional PostgreSQL client NodeJS",
4
- "version": "2.18.0",
4
+ "version": "2.18.1",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
8
  "doublylinked": "^2.5.4",
9
- "lightning-pool": "^4.7.0",
9
+ "lightning-pool": "^4.7.3",
10
10
  "postgres-bytea": "^3.0.0",
11
- "power-tasks": "^1.10.0",
11
+ "power-tasks": "^1.10.1",
12
12
  "putil-merge": "^3.13.0",
13
13
  "putil-promisify": "^1.10.1",
14
14
  "putil-varhelpers": "^1.6.5",
15
15
  "tslib": "^2.6.3"
16
16
  },
17
- "main": "./cjs/index.js",
18
- "module": "./esm/index.js",
19
- "types": "./types/index.d.ts",
17
+ "type": "module",
20
18
  "exports": {
21
19
  ".": {
22
- "require": "./cjs/index.js",
23
- "import": "./esm/index.js",
24
- "types": "./types/index.d.ts"
25
- }
20
+ "import": {
21
+ "types": "./types/index.d.ts",
22
+ "default": "./esm/index.js"
23
+ },
24
+ "require": {
25
+ "types": "./types/index.d.ts",
26
+ "default": "./cjs/index.js"
27
+ },
28
+ "default": "./esm/index.js"
29
+ },
30
+ "./package.json": "./package.json"
26
31
  },
32
+ "main": "./cjs/index.js",
33
+ "module": "./esm/index.js",
34
+ "types": "./types/index.d.ts",
27
35
  "homepage": "https://postgrejs.panates.com/",
28
36
  "contributors": [
29
37
  "Eray Hanoglu <e.hanoglu@panates.com>"
@@ -1,6 +1,6 @@
1
- import type { BindParam } from '../connection/bind-param';
1
+ import type { BindParam } from '../connection/bind-param.js';
2
2
  import type { DataFormat } from '../constants.js';
3
- import type { DataTypeMap } from '../data-type-map';
3
+ import type { DataTypeMap } from '../data-type-map.js';
4
4
  import type { DataMappingOptions } from './data-mapping-options.js';
5
5
  export interface QueryOptions extends DataMappingOptions {
6
6
  /**
@@ -1,4 +1,4 @@
1
- import type { Cursor } from '../connection/cursor';
1
+ import type { Cursor } from '../connection/cursor.js';
2
2
  import type { CommandResult } from './command-result.js';
3
3
  export interface QueryResult extends CommandResult {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { DataTypeMap } from '../data-type-map';
1
+ import type { DataTypeMap } from '../data-type-map.js';
2
2
  import type { DataMappingOptions } from './data-mapping-options.js';
3
3
  export interface ScriptExecuteOptions extends DataMappingOptions {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { DataTypeMap } from '../data-type-map';
1
+ import type { DataTypeMap } from '../data-type-map.js';
2
2
  import type { OID } from '../types.js';
3
3
  export interface StatementPrepareOptions {
4
4
  /**
package/types/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { DataMappingOptions } from './interfaces/data-mapping-options.js';
2
- import type { SmartBuffer } from './protocol/smart-buffer';
2
+ import type { SmartBuffer } from './protocol/smart-buffer.js';
3
3
  export type OID = number;
4
4
  export type Maybe<T> = T | undefined;
5
5
  export type Nullable<T> = T | null;