drizzle-kit 1.0.0-beta.1-d407048 → 1.0.0-beta.1-94774b0
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/api.js +4 -4
- package/api.mjs +4 -4
- package/bin.cjs +1 -1
- package/package.json +1 -1
package/api.js
CHANGED
@@ -24051,8 +24051,8 @@ var init_relations = __esm({
|
|
24051
24051
|
}
|
24052
24052
|
if (this.throughTable) {
|
24053
24053
|
this.through = {
|
24054
|
-
source: (Array.isArray(config?.from) ? config.from : [config.from]).map((c) => c._.through),
|
24055
|
-
target: (Array.isArray(config?.to) ? config.to : [config.to]).map((c) => c._.through)
|
24054
|
+
source: (Array.isArray(config?.from) ? config.from : config?.from ? [config.from] : []).map((c) => c._.through),
|
24055
|
+
target: (Array.isArray(config?.to) ? config.to : config?.to ? [config.to] : []).map((c) => c._.through)
|
24056
24056
|
};
|
24057
24057
|
}
|
24058
24058
|
this.optional = config?.optional ?? true;
|
@@ -24080,8 +24080,8 @@ var init_relations = __esm({
|
|
24080
24080
|
}
|
24081
24081
|
if (this.throughTable) {
|
24082
24082
|
this.through = {
|
24083
|
-
source: (Array.isArray(config?.from) ? config.from : [config.from]).map((c) => c._.through),
|
24084
|
-
target: (Array.isArray(config?.to) ? config.to : [config.to]).map((c) => c._.through)
|
24083
|
+
source: (Array.isArray(config?.from) ? config.from : config?.from ? [config.from] : []).map((c) => c._.through),
|
24084
|
+
target: (Array.isArray(config?.to) ? config.to : config?.to ? [config.to] : []).map((c) => c._.through)
|
24085
24085
|
};
|
24086
24086
|
}
|
24087
24087
|
}
|
package/api.mjs
CHANGED
@@ -24056,8 +24056,8 @@ var init_relations = __esm({
|
|
24056
24056
|
}
|
24057
24057
|
if (this.throughTable) {
|
24058
24058
|
this.through = {
|
24059
|
-
source: (Array.isArray(config?.from) ? config.from : [config.from]).map((c) => c._.through),
|
24060
|
-
target: (Array.isArray(config?.to) ? config.to : [config.to]).map((c) => c._.through)
|
24059
|
+
source: (Array.isArray(config?.from) ? config.from : config?.from ? [config.from] : []).map((c) => c._.through),
|
24060
|
+
target: (Array.isArray(config?.to) ? config.to : config?.to ? [config.to] : []).map((c) => c._.through)
|
24061
24061
|
};
|
24062
24062
|
}
|
24063
24063
|
this.optional = config?.optional ?? true;
|
@@ -24085,8 +24085,8 @@ var init_relations = __esm({
|
|
24085
24085
|
}
|
24086
24086
|
if (this.throughTable) {
|
24087
24087
|
this.through = {
|
24088
|
-
source: (Array.isArray(config?.from) ? config.from : [config.from]).map((c) => c._.through),
|
24089
|
-
target: (Array.isArray(config?.to) ? config.to : [config.to]).map((c) => c._.through)
|
24088
|
+
source: (Array.isArray(config?.from) ? config.from : config?.from ? [config.from] : []).map((c) => c._.through),
|
24089
|
+
target: (Array.isArray(config?.to) ? config.to : config?.to ? [config.to] : []).map((c) => c._.through)
|
24090
24090
|
};
|
24091
24091
|
}
|
24092
24092
|
}
|
package/bin.cjs
CHANGED
@@ -93920,7 +93920,7 @@ init_utils5();
|
|
93920
93920
|
var version2 = async () => {
|
93921
93921
|
const { npmVersion } = await ormCoreVersions();
|
93922
93922
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
93923
|
-
const envVersion = "1.0.0-beta.1-
|
93923
|
+
const envVersion = "1.0.0-beta.1-94774b0";
|
93924
93924
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
93925
93925
|
const versions = `drizzle-kit: ${kitVersion}
|
93926
93926
|
${ormVersion}`;
|