prisma-sql 1.40.0 → 1.41.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/generator.cjs +4 -8
- package/dist/generator.cjs.map +1 -1
- package/dist/generator.js +4 -8
- package/dist/generator.js.map +1 -1
- package/dist/index.cjs +45 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +45 -59
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/generator.cjs
CHANGED
|
@@ -56,7 +56,7 @@ var require_package = __commonJS({
|
|
|
56
56
|
"package.json"(exports$1, module) {
|
|
57
57
|
module.exports = {
|
|
58
58
|
name: "prisma-sql",
|
|
59
|
-
version: "1.
|
|
59
|
+
version: "1.41.0",
|
|
60
60
|
description: "Convert Prisma queries to optimized SQL with type safety. 2-7x faster than Prisma Client.",
|
|
61
61
|
main: "dist/index.cjs",
|
|
62
62
|
module: "dist/index.js",
|
|
@@ -129,6 +129,8 @@ var require_package = __commonJS({
|
|
|
129
129
|
"@faker-js/faker": "^10.2.0",
|
|
130
130
|
"@prisma/adapter-better-sqlite3": "^7.2.0",
|
|
131
131
|
"@prisma/adapter-pg": "^7.2.0",
|
|
132
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
133
|
+
"@semantic-release/git": "^10.0.1",
|
|
132
134
|
"@types/better-sqlite3": "^7.6.13",
|
|
133
135
|
"@types/node": "^25.0.10",
|
|
134
136
|
"@vitest/coverage-v8": "4.0.18",
|
|
@@ -2546,12 +2548,6 @@ function validateState(params, mappings, index) {
|
|
|
2546
2548
|
validateMappings(mappings);
|
|
2547
2549
|
assertNextIndexMatches(mappings.length, index);
|
|
2548
2550
|
}
|
|
2549
|
-
function normalizeValue2(value) {
|
|
2550
|
-
if (value instanceof Date) {
|
|
2551
|
-
return value.toISOString();
|
|
2552
|
-
}
|
|
2553
|
-
return value;
|
|
2554
|
-
}
|
|
2555
2551
|
function createStoreInternal(startIndex, initialParams = [], initialMappings = []) {
|
|
2556
2552
|
let index = startIndex;
|
|
2557
2553
|
const params = [...initialParams];
|
|
@@ -2594,7 +2590,7 @@ function createStoreInternal(startIndex, initialParams = [], initialMappings = [
|
|
|
2594
2590
|
}
|
|
2595
2591
|
function addStatic(value) {
|
|
2596
2592
|
const position = index;
|
|
2597
|
-
const normalizedValue =
|
|
2593
|
+
const normalizedValue = normalizeValue(value);
|
|
2598
2594
|
params.push(normalizedValue);
|
|
2599
2595
|
mappings.push({ index: position, value: normalizedValue });
|
|
2600
2596
|
index++;
|