@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.
@@ -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.query.replace(/:(\w+)/g, (_, name) => `$${name}`);
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)
@@ -1,4 +1,4 @@
1
1
  import SQLite from "#SQLite";
2
- declare const _default: (config?: typeof SQLite.config) => SQLite;
3
2
  export default _default;
3
+ declare function _default(config?: typeof SQLite.config): SQLite;
4
4
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primate/sqlite",
3
- "version": "0.10.0",
4
- "description": "SQLite databases for Primate",
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
- "@rcompat/assert": "^0.13.0",
21
- "@rcompat/is": "^0.11.0",
22
- "@rcompat/sqlite": "^0.16.0",
23
- "@primate/core": "^0.8.0"
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.17.0",
27
- "pema": "^0.8.0"
26
+ "@rcompat/type": "^0.18.0",
27
+ "pema": "^0.10.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "primate": "^0.39.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": "npm run clean && tsgo",
45
+ "build": "pnpm run clean && tsc",
46
46
  "clean": "rm -rf ./lib",
47
47
  "lint": "eslint .",
48
48
  "test": "npx proby",