@primate/sqlite 0.10.0 → 0.12.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/lib/private/SQLite.js +3 -1
- package/lib/public/index.d.ts +1 -1
- package/package.json +10 -10
package/lib/private/SQLite.js
CHANGED
|
@@ -598,7 +598,9 @@ export default class SQLite {
|
|
|
598
598
|
const input = is.defined(options.input)
|
|
599
599
|
? options.input.parse(args)
|
|
600
600
|
: undefined;
|
|
601
|
-
const query = options.
|
|
601
|
+
const query = is.defined(options.input)
|
|
602
|
+
? options.query.replace(/:(\w+)/g, (_, name) => `$${name}`)
|
|
603
|
+
: options.query;
|
|
602
604
|
const binds = is.defined(input)
|
|
603
605
|
? await bind(Object.fromEntries(Object.entries(options.input.properties)
|
|
604
606
|
.map(([k, v]) => [k, v.datatype])), input)
|
package/lib/public/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primate/sqlite",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "SQLite
|
|
3
|
+
"version": "0.12.0",
|
|
4
|
+
"description": "SQLite for Primate",
|
|
5
5
|
"homepage": "https://primate.run/docs/database/sqlite",
|
|
6
6
|
"bugs": "https://github.com/primate-run/primate/issues",
|
|
7
7
|
"type": "module",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"!/**/*.spec.*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@
|
|
21
|
-
"@rcompat/
|
|
22
|
-
"@rcompat/
|
|
23
|
-
"@
|
|
20
|
+
"@primate/core": "^0.10.0",
|
|
21
|
+
"@rcompat/assert": "^0.14.0",
|
|
22
|
+
"@rcompat/is": "^0.12.1",
|
|
23
|
+
"@rcompat/sqlite": "^0.17.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@rcompat/type": "^0.
|
|
27
|
-
"pema": "^0.
|
|
26
|
+
"@rcompat/type": "^0.18.0",
|
|
27
|
+
"pema": "^0.10.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"primate": "^0.
|
|
30
|
+
"primate": "^0.41.0"
|
|
31
31
|
},
|
|
32
32
|
"imports": {
|
|
33
33
|
"#*": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
|
-
"build": "
|
|
45
|
+
"build": "pnpm run clean && tsc",
|
|
46
46
|
"clean": "rm -rf ./lib",
|
|
47
47
|
"lint": "eslint .",
|
|
48
48
|
"test": "npx proby",
|