@prisma/adapter-libsql 6.6.0-dev.3 → 6.6.0-dev.30
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 +4 -8
- package/dist/index.mjs +4 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,6 @@ 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;
|
|
7
6
|
var __export = (target, all) => {
|
|
8
7
|
for (var name2 in all)
|
|
9
8
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
@@ -17,7 +16,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
16
|
return to;
|
|
18
17
|
};
|
|
19
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
21
19
|
|
|
22
20
|
// src/index.ts
|
|
23
21
|
var index_exports = {};
|
|
@@ -139,11 +137,11 @@ function inferObjectType(value) {
|
|
|
139
137
|
throw new UnexpectedTypeError(value);
|
|
140
138
|
}
|
|
141
139
|
var UnexpectedTypeError = class extends Error {
|
|
140
|
+
name = "UnexpectedTypeError";
|
|
142
141
|
constructor(value) {
|
|
143
142
|
const type = typeof value;
|
|
144
143
|
const repr = type === "object" ? JSON.stringify(value) : String(value);
|
|
145
144
|
super(`unexpected value of type ${type}: ${repr}`);
|
|
146
|
-
__publicField(this, "name", "UnexpectedTypeError");
|
|
147
145
|
}
|
|
148
146
|
};
|
|
149
147
|
function mapRow(row, columnTypes) {
|
|
@@ -173,15 +171,13 @@ function mapRow(row, columnTypes) {
|
|
|
173
171
|
// src/libsql.ts
|
|
174
172
|
var debug2 = (0, import_driver_adapter_utils2.Debug)("prisma:driver-adapter:libsql");
|
|
175
173
|
var LOCK_TAG = Symbol();
|
|
176
|
-
var _a;
|
|
177
|
-
_a = LOCK_TAG;
|
|
178
174
|
var LibSqlQueryable = class {
|
|
179
175
|
constructor(client) {
|
|
180
176
|
this.client = client;
|
|
181
|
-
__publicField(this, "provider", "sqlite");
|
|
182
|
-
__publicField(this, "adapterName", name);
|
|
183
|
-
__publicField(this, _a, new import_async_mutex.Mutex());
|
|
184
177
|
}
|
|
178
|
+
provider = "sqlite";
|
|
179
|
+
adapterName = name;
|
|
180
|
+
[LOCK_TAG] = new import_async_mutex.Mutex();
|
|
185
181
|
/**
|
|
186
182
|
* Execute a query given as SQL, interpolating the given parameters.
|
|
187
183
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
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
|
-
|
|
5
1
|
// src/libsql.ts
|
|
6
2
|
import { Debug as Debug2, DriverAdapterError } from "@prisma/driver-adapter-utils";
|
|
7
3
|
import { Mutex } from "async-mutex";
|
|
@@ -115,11 +111,11 @@ function inferObjectType(value) {
|
|
|
115
111
|
throw new UnexpectedTypeError(value);
|
|
116
112
|
}
|
|
117
113
|
var UnexpectedTypeError = class extends Error {
|
|
114
|
+
name = "UnexpectedTypeError";
|
|
118
115
|
constructor(value) {
|
|
119
116
|
const type = typeof value;
|
|
120
117
|
const repr = type === "object" ? JSON.stringify(value) : String(value);
|
|
121
118
|
super(`unexpected value of type ${type}: ${repr}`);
|
|
122
|
-
__publicField(this, "name", "UnexpectedTypeError");
|
|
123
119
|
}
|
|
124
120
|
};
|
|
125
121
|
function mapRow(row, columnTypes) {
|
|
@@ -149,15 +145,13 @@ function mapRow(row, columnTypes) {
|
|
|
149
145
|
// src/libsql.ts
|
|
150
146
|
var debug2 = Debug2("prisma:driver-adapter:libsql");
|
|
151
147
|
var LOCK_TAG = Symbol();
|
|
152
|
-
var _a;
|
|
153
|
-
_a = LOCK_TAG;
|
|
154
148
|
var LibSqlQueryable = class {
|
|
155
149
|
constructor(client) {
|
|
156
150
|
this.client = client;
|
|
157
|
-
__publicField(this, "provider", "sqlite");
|
|
158
|
-
__publicField(this, "adapterName", name);
|
|
159
|
-
__publicField(this, _a, new Mutex());
|
|
160
151
|
}
|
|
152
|
+
provider = "sqlite";
|
|
153
|
+
adapterName = name;
|
|
154
|
+
[LOCK_TAG] = new Mutex();
|
|
161
155
|
/**
|
|
162
156
|
* Execute a query given as SQL, interpolating the given parameters.
|
|
163
157
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-libsql",
|
|
3
|
-
"version": "6.6.0-dev.
|
|
3
|
+
"version": "6.6.0-dev.30",
|
|
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.6.0-dev.
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.6.0-dev.30"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@libsql/client": "0.8.0"
|