@prisma-next/sql-runtime 0.16.0-dev.14 → 0.16.0-dev.15
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/{exports-Cm5jehIz.mjs → exports-CJ9csSx4.mjs} +2 -2
- package/dist/{exports-Cm5jehIz.mjs.map → exports-CJ9csSx4.mjs.map} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/test/utils.mjs +3 -3
- package/dist/test/utils.mjs.map +1 -1
- package/package.json +12 -12
- package/src/fingerprint.ts +1 -2
|
@@ -1072,7 +1072,7 @@ const WHITESPACE_REGEX = /\s+/g;
|
|
|
1072
1072
|
*/
|
|
1073
1073
|
function computeSqlFingerprint(sql) {
|
|
1074
1074
|
const normalized = sql.replace(STRING_LITERAL_REGEX, "?").replace(NUMERIC_LITERAL_REGEX, "?").replace(WHITESPACE_REGEX, " ").trim().toLowerCase();
|
|
1075
|
-
return
|
|
1075
|
+
return createHash("sha256").update(normalized).digest("hex");
|
|
1076
1076
|
}
|
|
1077
1077
|
//#endregion
|
|
1078
1078
|
//#region src/middleware/before-compile-chain.ts
|
|
@@ -1634,4 +1634,4 @@ async function withTransaction(runtime, fn) {
|
|
|
1634
1634
|
//#endregion
|
|
1635
1635
|
export { createExecutionContext as a, lints as c, extractCodecIds as d, validateCodecRegistryCompleteness as f, createAstCodecRegistry as g, encodeParamsWithMetadata as h, decodeRow as i, budgets as l, deriveParamMetadata as m, withTransaction as n, createSqlExecutionStack as o, validateContractCodecMappings as p, buildDecodeContext as r, PreparedStatementImpl as s, SqlRuntimeBase as t, lowerSqlPlan as u };
|
|
1636
1636
|
|
|
1637
|
-
//# sourceMappingURL=exports-
|
|
1637
|
+
//# sourceMappingURL=exports-CJ9csSx4.mjs.map
|