@prisma/adapter-libsql 6.5.0-integration-feat-prisma-config-without-new-package.5 → 6.5.0-integration-feat-prisma-config-without-new-package.7
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/index.js +6 -4
- package/dist/index.mjs +8 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
7
|
var __export = (target, all) => {
|
|
7
8
|
for (var name2 in all)
|
|
8
9
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
@@ -16,6 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
return to;
|
|
17
18
|
};
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
19
21
|
|
|
20
22
|
// src/index.ts
|
|
21
23
|
var index_exports = {};
|
|
@@ -142,7 +144,7 @@ var UnexpectedTypeError = class extends Error {
|
|
|
142
144
|
const type = typeof value;
|
|
143
145
|
const repr = type === "object" ? JSON.stringify(value) : String(value);
|
|
144
146
|
super(`unexpected value of type ${type}: ${repr}`);
|
|
145
|
-
this
|
|
147
|
+
__publicField(this, "name", "UnexpectedTypeError");
|
|
146
148
|
}
|
|
147
149
|
};
|
|
148
150
|
function mapRow(row, columnTypes) {
|
|
@@ -177,9 +179,9 @@ _a = LOCK_TAG;
|
|
|
177
179
|
var LibSqlQueryable = class {
|
|
178
180
|
constructor(client) {
|
|
179
181
|
this.client = client;
|
|
180
|
-
this
|
|
181
|
-
this
|
|
182
|
-
this
|
|
182
|
+
__publicField(this, "provider", "sqlite");
|
|
183
|
+
__publicField(this, "adapterName", name);
|
|
184
|
+
__publicField(this, _a, new import_async_mutex.Mutex());
|
|
183
185
|
}
|
|
184
186
|
/**
|
|
185
187
|
* Execute a query given as SQL, interpolating the given parameters.
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
|
|
1
5
|
// src/libsql.ts
|
|
2
6
|
import {
|
|
3
7
|
createClient
|
|
@@ -118,7 +122,7 @@ var UnexpectedTypeError = class extends Error {
|
|
|
118
122
|
const type = typeof value;
|
|
119
123
|
const repr = type === "object" ? JSON.stringify(value) : String(value);
|
|
120
124
|
super(`unexpected value of type ${type}: ${repr}`);
|
|
121
|
-
this
|
|
125
|
+
__publicField(this, "name", "UnexpectedTypeError");
|
|
122
126
|
}
|
|
123
127
|
};
|
|
124
128
|
function mapRow(row, columnTypes) {
|
|
@@ -153,9 +157,9 @@ _a = LOCK_TAG;
|
|
|
153
157
|
var LibSqlQueryable = class {
|
|
154
158
|
constructor(client) {
|
|
155
159
|
this.client = client;
|
|
156
|
-
this
|
|
157
|
-
this
|
|
158
|
-
this
|
|
160
|
+
__publicField(this, "provider", "sqlite");
|
|
161
|
+
__publicField(this, "adapterName", name);
|
|
162
|
+
__publicField(this, _a, new Mutex());
|
|
159
163
|
}
|
|
160
164
|
/**
|
|
161
165
|
* Execute a query given as SQL, interpolating the given parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-libsql",
|
|
3
|
-
"version": "6.5.0-integration-feat-prisma-config-without-new-package.
|
|
3
|
+
"version": "6.5.0-integration-feat-prisma-config-without-new-package.7",
|
|
4
4
|
"description": "Prisma's driver adapter for libSQL and Turso",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"async-mutex": "0.5.0",
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.5.0-integration-feat-prisma-config-without-new-package.
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.5.0-integration-feat-prisma-config-without-new-package.7"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@libsql/client": "0.8.0"
|