drizzle-orm 0.44.3 → 0.44.4

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/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.44.3";
2
+ var version = "0.44.4";
3
3
 
4
4
  // src/version.ts
5
5
  var compatibilityVersion = 10;
package/errors/index.cjs DELETED
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var errors_exports = {};
20
- __export(errors_exports, {
21
- DrizzleQueryError: () => DrizzleQueryError
22
- });
23
- module.exports = __toCommonJS(errors_exports);
24
- class DrizzleQueryError extends Error {
25
- constructor(query, params, cause) {
26
- super(`Failed query: ${query}
27
- params: ${params}`);
28
- this.query = query;
29
- this.params = params;
30
- this.cause = cause;
31
- Error.captureStackTrace(this, DrizzleQueryError);
32
- if (cause) this.cause = cause;
33
- }
34
- }
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- DrizzleQueryError
38
- });
39
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/errors/index.ts"],"sourcesContent":["export class DrizzleQueryError extends Error {\n\tconstructor(\n\t\tpublic query: string,\n\t\tpublic params: any[],\n\t\tpublic override cause?: Error,\n\t) {\n\t\tsuper(`Failed query: ${query}\\nparams: ${params}`);\n\t\tError.captureStackTrace(this, DrizzleQueryError);\n\n\t\t// ES2022+: preserves original error on `.cause`\n\t\tif (cause) (this as any).cause = cause;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,0BAA0B,MAAM;AAAA,EAC5C,YACQ,OACA,QACS,OACf;AACD,UAAM,iBAAiB,KAAK;AAAA,UAAa,MAAM,EAAE;AAJ1C;AACA;AACS;AAGhB,UAAM,kBAAkB,MAAM,iBAAiB;AAG/C,QAAI,MAAO,CAAC,KAAa,QAAQ;AAAA,EAClC;AACD;","names":[]}
@@ -1,6 +0,0 @@
1
- export declare class DrizzleQueryError extends Error {
2
- query: string;
3
- params: any[];
4
- cause?: Error | undefined;
5
- constructor(query: string, params: any[], cause?: Error | undefined);
6
- }
package/errors/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export declare class DrizzleQueryError extends Error {
2
- query: string;
3
- params: any[];
4
- cause?: Error | undefined;
5
- constructor(query: string, params: any[], cause?: Error | undefined);
6
- }
package/errors/index.js DELETED
@@ -1,15 +0,0 @@
1
- class DrizzleQueryError extends Error {
2
- constructor(query, params, cause) {
3
- super(`Failed query: ${query}
4
- params: ${params}`);
5
- this.query = query;
6
- this.params = params;
7
- this.cause = cause;
8
- Error.captureStackTrace(this, DrizzleQueryError);
9
- if (cause) this.cause = cause;
10
- }
11
- }
12
- export {
13
- DrizzleQueryError
14
- };
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/errors/index.ts"],"sourcesContent":["export class DrizzleQueryError extends Error {\n\tconstructor(\n\t\tpublic query: string,\n\t\tpublic params: any[],\n\t\tpublic override cause?: Error,\n\t) {\n\t\tsuper(`Failed query: ${query}\\nparams: ${params}`);\n\t\tError.captureStackTrace(this, DrizzleQueryError);\n\n\t\t// ES2022+: preserves original error on `.cause`\n\t\tif (cause) (this as any).cause = cause;\n\t}\n}\n"],"mappings":"AAAO,MAAM,0BAA0B,MAAM;AAAA,EAC5C,YACQ,OACA,QACS,OACf;AACD,UAAM,iBAAiB,KAAK;AAAA,UAAa,MAAM,EAAE;AAJ1C;AACA;AACS;AAGhB,UAAM,kBAAkB,MAAM,iBAAiB;AAG/C,QAAI,MAAO,CAAC,KAAa,QAAQ;AAAA,EAClC;AACD;","names":[]}