@slonik/types 46.1.0 → 46.2.0
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/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/types.ts +8 -8
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export type PrimitiveValueExpression =
|
|
1
|
+
export type PrimitiveValueExpression = bigint | boolean | Buffer | null | number | readonly PrimitiveValueExpression[] | string;
|
|
2
2
|
export type Query = {
|
|
3
3
|
readonly sql: string;
|
|
4
4
|
readonly values: readonly PrimitiveValueExpression[];
|
|
5
5
|
};
|
|
6
6
|
export type QueryResultRow = Record<string, PrimitiveValueExpression>;
|
|
7
|
-
export type SerializableValue =
|
|
7
|
+
export type SerializableValue = {
|
|
8
8
|
[key: string]: SerializableValue;
|
|
9
|
-
} | null | undefined;
|
|
9
|
+
} | boolean | null | number | readonly SerializableValue[] | SerializableValue[] | string | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* @see https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
|
|
12
12
|
*/
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,OAAO,GACP,MAAM,GACN,IAAI,GACJ,MAAM,GACN,SAAS,wBAAwB,EAAE,GACnC,MAAM,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,SAAS,wBAAwB,EAAE,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAEtE,MAAM,MAAM,iBAAiB,GACzB;IACE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAC;CAClC,GACD,OAAO,GACP,IAAI,GACJ,MAAM,GACN,SAAS,iBAAiB,EAAE,GAC5B,iBAAiB,EAAE,GACnB,MAAM,GACN,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"description": "A Node.js PostgreSQL client with strict types, detailed logging and assertions.",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/node": "^
|
|
20
|
+
"@types/node": "^22.9.0",
|
|
21
21
|
"ava": "^6.1.3",
|
|
22
|
-
"cspell": "^8.
|
|
23
|
-
"eslint": "^
|
|
24
|
-
"eslint-config-canonical": "^42.8.1",
|
|
22
|
+
"cspell": "^8.16.0",
|
|
23
|
+
"eslint": "^9.14.0",
|
|
25
24
|
"nyc": "^15.1.0",
|
|
26
25
|
"ts-node": "^10.9.1",
|
|
27
|
-
"typescript": "^5.
|
|
26
|
+
"typescript": "^5.6.3",
|
|
27
|
+
"@slonik/eslint-config": "^46.2.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=18"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"url": "https://github.com/gajus/slonik"
|
|
68
68
|
},
|
|
69
69
|
"types": "./dist/index.d.ts",
|
|
70
|
-
"version": "46.
|
|
70
|
+
"version": "46.2.0",
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "rm -fr ./dist && tsc --project ./tsconfig.json",
|
|
73
73
|
"lint": "npm run lint:cspell && npm run lint:eslint && npm run lint:tsc",
|
package/src/types.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export type PrimitiveValueExpression =
|
|
2
|
-
| Buffer
|
|
3
2
|
| bigint
|
|
4
3
|
| boolean
|
|
4
|
+
| Buffer
|
|
5
|
+
| null
|
|
5
6
|
| number
|
|
6
|
-
| string
|
|
7
7
|
| readonly PrimitiveValueExpression[]
|
|
8
|
-
|
|
|
8
|
+
| string;
|
|
9
9
|
|
|
10
10
|
export type Query = {
|
|
11
11
|
readonly sql: string;
|
|
@@ -15,15 +15,15 @@ export type Query = {
|
|
|
15
15
|
export type QueryResultRow = Record<string, PrimitiveValueExpression>;
|
|
16
16
|
|
|
17
17
|
export type SerializableValue =
|
|
18
|
-
| SerializableValue[]
|
|
19
|
-
| boolean
|
|
20
|
-
| number
|
|
21
|
-
| string
|
|
22
|
-
| readonly SerializableValue[]
|
|
23
18
|
| {
|
|
24
19
|
[key: string]: SerializableValue;
|
|
25
20
|
}
|
|
21
|
+
| boolean
|
|
26
22
|
| null
|
|
23
|
+
| number
|
|
24
|
+
| readonly SerializableValue[]
|
|
25
|
+
| SerializableValue[]
|
|
26
|
+
| string
|
|
27
27
|
| undefined;
|
|
28
28
|
|
|
29
29
|
/**
|