drizzle-kit 0.18.1-c536fbe → 0.18.1-c8247c5
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/index.cjs +9 -15
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -46419,22 +46419,16 @@ var assertPackages = async (...pkgs) => {
|
|
|
46419
46419
|
};
|
|
46420
46420
|
var requiredApiVersion = 4;
|
|
46421
46421
|
var assertOrmCoreVersion = async () => {
|
|
46422
|
-
|
|
46423
|
-
|
|
46424
|
-
|
|
46425
|
-
|
|
46426
|
-
|
|
46427
|
-
|
|
46428
|
-
|
|
46429
|
-
|
|
46430
|
-
} else {
|
|
46431
|
-
console.log(
|
|
46432
|
-
"This version of drizzle-kit is outdated\nPlease update drizzle-kit package to the latest version \u{1F44D}"
|
|
46433
|
-
);
|
|
46434
|
-
}
|
|
46435
|
-
} catch (e) {
|
|
46422
|
+
const { compatibilityVersion } = await import("drizzle-orm/version");
|
|
46423
|
+
if (compatibilityVersion && compatibilityVersion === requiredApiVersion)
|
|
46424
|
+
return;
|
|
46425
|
+
if (!compatibilityVersion || compatibilityVersion < requiredApiVersion) {
|
|
46426
|
+
console.log(
|
|
46427
|
+
"This version of drizzle-kit requires newer version of drizzle-orm\nPlease update drizzle-orm package to the latest version \u{1F44D}"
|
|
46428
|
+
);
|
|
46429
|
+
} else {
|
|
46436
46430
|
console.log(
|
|
46437
|
-
"
|
|
46431
|
+
"This version of drizzle-kit is outdated\nPlease update drizzle-kit package to the latest version \u{1F44D}"
|
|
46438
46432
|
);
|
|
46439
46433
|
}
|
|
46440
46434
|
process.exit(1);
|