drizzle-kit 0.26.1 → 0.26.2-728dcb3
Sign up to get free protection for your applications and to get access to all the features.
- package/api.js +46 -1
- package/api.mjs +46 -1
- package/bin.cjs +2 -2
- package/package.json +2 -2
package/api.js
CHANGED
@@ -20372,7 +20372,7 @@ var version;
|
|
20372
20372
|
var init_version = __esm({
|
20373
20373
|
"../drizzle-orm/dist/version.js"() {
|
20374
20374
|
"use strict";
|
20375
|
-
version = "0.35.
|
20375
|
+
version = "0.35.2";
|
20376
20376
|
}
|
20377
20377
|
});
|
20378
20378
|
|
@@ -21353,6 +21353,50 @@ function getColumnNameAndConfig(a, b) {
|
|
21353
21353
|
config: typeof a === "object" ? a : b
|
21354
21354
|
};
|
21355
21355
|
}
|
21356
|
+
function isConfig(data) {
|
21357
|
+
if (typeof data !== "object" || data === null)
|
21358
|
+
return false;
|
21359
|
+
if (data.constructor.name !== "Object")
|
21360
|
+
return false;
|
21361
|
+
if ("logger" in data) {
|
21362
|
+
const type = typeof data["logger"];
|
21363
|
+
if (type !== "boolean" && (type !== "object" || typeof data["logger"]["logQuery"] !== "function") && type !== "undefined")
|
21364
|
+
return false;
|
21365
|
+
return true;
|
21366
|
+
}
|
21367
|
+
if ("schema" in data) {
|
21368
|
+
const type = typeof data["logger"];
|
21369
|
+
if (type !== "object" && type !== "undefined")
|
21370
|
+
return false;
|
21371
|
+
return true;
|
21372
|
+
}
|
21373
|
+
if ("casing" in data) {
|
21374
|
+
const type = typeof data["logger"];
|
21375
|
+
if (type !== "string" && type !== "undefined")
|
21376
|
+
return false;
|
21377
|
+
return true;
|
21378
|
+
}
|
21379
|
+
if ("mode" in data) {
|
21380
|
+
if (data["mode"] !== "default" || data["mode"] !== "planetscale" || data["mode"] !== void 0)
|
21381
|
+
return false;
|
21382
|
+
return true;
|
21383
|
+
}
|
21384
|
+
if ("connection" in data) {
|
21385
|
+
const type = typeof data["connection"];
|
21386
|
+
if (type !== "string" && type !== "object" && type !== "undefined")
|
21387
|
+
return false;
|
21388
|
+
return true;
|
21389
|
+
}
|
21390
|
+
if ("client" in data) {
|
21391
|
+
const type = typeof data["client"];
|
21392
|
+
if (type !== "object" && type !== "undefined")
|
21393
|
+
return false;
|
21394
|
+
return true;
|
21395
|
+
}
|
21396
|
+
if (Object.keys(data).length === 0)
|
21397
|
+
return true;
|
21398
|
+
return false;
|
21399
|
+
}
|
21356
21400
|
var init_utils2 = __esm({
|
21357
21401
|
"../drizzle-orm/dist/utils.js"() {
|
21358
21402
|
"use strict";
|
@@ -23546,6 +23590,7 @@ __export(dist_exports, {
|
|
23546
23590
|
inArray: () => inArray,
|
23547
23591
|
innerProduct: () => innerProduct,
|
23548
23592
|
is: () => is,
|
23593
|
+
isConfig: () => isConfig,
|
23549
23594
|
isDriverValueEncoder: () => isDriverValueEncoder,
|
23550
23595
|
isNotNull: () => isNotNull,
|
23551
23596
|
isNull: () => isNull,
|
package/api.mjs
CHANGED
@@ -20377,7 +20377,7 @@ var version;
|
|
20377
20377
|
var init_version = __esm({
|
20378
20378
|
"../drizzle-orm/dist/version.js"() {
|
20379
20379
|
"use strict";
|
20380
|
-
version = "0.35.
|
20380
|
+
version = "0.35.2";
|
20381
20381
|
}
|
20382
20382
|
});
|
20383
20383
|
|
@@ -21358,6 +21358,50 @@ function getColumnNameAndConfig(a, b) {
|
|
21358
21358
|
config: typeof a === "object" ? a : b
|
21359
21359
|
};
|
21360
21360
|
}
|
21361
|
+
function isConfig(data) {
|
21362
|
+
if (typeof data !== "object" || data === null)
|
21363
|
+
return false;
|
21364
|
+
if (data.constructor.name !== "Object")
|
21365
|
+
return false;
|
21366
|
+
if ("logger" in data) {
|
21367
|
+
const type = typeof data["logger"];
|
21368
|
+
if (type !== "boolean" && (type !== "object" || typeof data["logger"]["logQuery"] !== "function") && type !== "undefined")
|
21369
|
+
return false;
|
21370
|
+
return true;
|
21371
|
+
}
|
21372
|
+
if ("schema" in data) {
|
21373
|
+
const type = typeof data["logger"];
|
21374
|
+
if (type !== "object" && type !== "undefined")
|
21375
|
+
return false;
|
21376
|
+
return true;
|
21377
|
+
}
|
21378
|
+
if ("casing" in data) {
|
21379
|
+
const type = typeof data["logger"];
|
21380
|
+
if (type !== "string" && type !== "undefined")
|
21381
|
+
return false;
|
21382
|
+
return true;
|
21383
|
+
}
|
21384
|
+
if ("mode" in data) {
|
21385
|
+
if (data["mode"] !== "default" || data["mode"] !== "planetscale" || data["mode"] !== void 0)
|
21386
|
+
return false;
|
21387
|
+
return true;
|
21388
|
+
}
|
21389
|
+
if ("connection" in data) {
|
21390
|
+
const type = typeof data["connection"];
|
21391
|
+
if (type !== "string" && type !== "object" && type !== "undefined")
|
21392
|
+
return false;
|
21393
|
+
return true;
|
21394
|
+
}
|
21395
|
+
if ("client" in data) {
|
21396
|
+
const type = typeof data["client"];
|
21397
|
+
if (type !== "object" && type !== "undefined")
|
21398
|
+
return false;
|
21399
|
+
return true;
|
21400
|
+
}
|
21401
|
+
if (Object.keys(data).length === 0)
|
21402
|
+
return true;
|
21403
|
+
return false;
|
21404
|
+
}
|
21361
21405
|
var init_utils2 = __esm({
|
21362
21406
|
"../drizzle-orm/dist/utils.js"() {
|
21363
21407
|
"use strict";
|
@@ -23551,6 +23595,7 @@ __export(dist_exports, {
|
|
23551
23595
|
inArray: () => inArray,
|
23552
23596
|
innerProduct: () => innerProduct,
|
23553
23597
|
is: () => is,
|
23598
|
+
isConfig: () => isConfig,
|
23554
23599
|
isDriverValueEncoder: () => isDriverValueEncoder,
|
23555
23600
|
isNotNull: () => isNotNull,
|
23556
23601
|
isNull: () => isNull,
|
package/bin.cjs
CHANGED
@@ -8842,7 +8842,7 @@ var init_utils2 = __esm({
|
|
8842
8842
|
process.exit(1);
|
8843
8843
|
}
|
8844
8844
|
};
|
8845
|
-
requiredApiVersion =
|
8845
|
+
requiredApiVersion = 9;
|
8846
8846
|
assertOrmCoreVersion = async () => {
|
8847
8847
|
try {
|
8848
8848
|
const { compatibilityVersion } = await import("drizzle-orm/version");
|
@@ -87624,7 +87624,7 @@ init_utils2();
|
|
87624
87624
|
var version2 = async () => {
|
87625
87625
|
const { npmVersion } = await ormCoreVersions();
|
87626
87626
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
87627
|
-
const envVersion = "0.26.
|
87627
|
+
const envVersion = "0.26.2-728dcb3";
|
87628
87628
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
87629
87629
|
const versions = `drizzle-kit: ${kitVersion}
|
87630
87630
|
${ormVersion}`;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.26.
|
3
|
+
"version": "0.26.2-728dcb3",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"@arethetypeswrong/cli": "^0.15.3",
|
52
52
|
"@aws-sdk/client-rds-data": "^3.556.0",
|
53
53
|
"@cloudflare/workers-types": "^4.20230518.0",
|
54
|
-
"@electric-sql/pglite": "^0.
|
54
|
+
"@electric-sql/pglite": "^0.2.12",
|
55
55
|
"@hono/node-server": "^1.9.0",
|
56
56
|
"@hono/zod-validator": "^0.2.1",
|
57
57
|
"@libsql/client": "^0.10.0",
|