Skip to content

Commit 4cf3c33

Browse files
committed
build
1 parent 8f329a3 commit 4cf3c33

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

cf/src/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export const inferType = function inferType(x) {
226226
(x === true || x === false) ? 16 :
227227
typeof x === 'bigint' ? 20 :
228228
Array.isArray(x) ? inferType(x[0]) :
229+
typeof x === 'object' && x !== null ? 3802 :
229230
0
230231
)
231232
}

cjs/src/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ const inferType = module.exports.inferType = function inferType(x) {
225225
(x === true || x === false) ? 16 :
226226
typeof x === 'bigint' ? 20 :
227227
Array.isArray(x) ? inferType(x[0]) :
228+
typeof x === 'object' && x !== null ? 3802 :
228229
0
229230
)
230231
}

deno/src/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export const inferType = function inferType(x) {
226226
(x === true || x === false) ? 16 :
227227
typeof x === 'bigint' ? 20 :
228228
Array.isArray(x) ? inferType(x[0]) :
229+
typeof x === 'object' && x !== null ? 3802 :
229230
0
230231
)
231232
}

deno/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ declare namespace postgres {
520520
size(): Promise<[{ position: bigint, size: bigint }]>;
521521
}
522522

523-
type EscapableArray = (string | number)[]
523+
type EscapableArray = (string | number | object)[]
524524

525525
type Serializable = never
526526
| null

0 commit comments

Comments
 (0)