@nhtio/lucid-resourceful 1.20251213.0 → 1.20251213.1
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-Cu-w4LXp.js → index-CsrC5E9M.js} +13 -15
- package/{index-Cu-w4LXp.js.map → index-CsrC5E9M.js.map} +1 -1
- package/{index-CIB7pnnu.cjs → index-D3sBFptu.cjs} +14 -16
- package/{index-CIB7pnnu.cjs.map → index-D3sBFptu.cjs.map} +1 -1
- package/index.cjs +1 -1
- package/index.mjs +1 -1
- package/integration/provider.cjs +1 -1
- package/integration/provider.mjs +1 -1
- package/{manager-OLS5T3G7-Dpikdw6h.cjs → manager-OLS5T3G7-CVhmzDda.cjs} +2 -2
- package/{manager-OLS5T3G7-Dpikdw6h.cjs.map → manager-OLS5T3G7-CVhmzDda.cjs.map} +1 -1
- package/{manager-OLS5T3G7-DoWsIGkB.js → manager-OLS5T3G7-Dwcf1c9T.js} +2 -2
- package/{manager-OLS5T3G7-DoWsIGkB.js.map → manager-OLS5T3G7-Dwcf1c9T.js.map} +1 -1
- package/package.json +1 -1
- package/router/utils.cjs +1 -1
- package/router/utils.mjs +1 -1
- package/router.cjs +1 -1
- package/router.mjs +1 -1
|
@@ -46817,7 +46817,7 @@ var Application = class extends Macroable {
|
|
|
46817
46817
|
*/
|
|
46818
46818
|
stubs = {
|
|
46819
46819
|
create: async () => {
|
|
46820
|
-
const { StubsManager } = await import("./manager-OLS5T3G7-
|
|
46820
|
+
const { StubsManager } = await import("./manager-OLS5T3G7-Dwcf1c9T.js");
|
|
46821
46821
|
return new StubsManager(this, this.makePath(this.rcFile.directories.stubs));
|
|
46822
46822
|
}
|
|
46823
46823
|
};
|
|
@@ -54453,25 +54453,23 @@ function withResourceful(options = {}) {
|
|
|
54453
54453
|
`HasManyThrough relationship '${relationshipKey}' missing required through configuration`
|
|
54454
54454
|
);
|
|
54455
54455
|
}
|
|
54456
|
-
const
|
|
54457
|
-
const
|
|
54458
|
-
const
|
|
54459
|
-
|
|
54460
|
-
if (!throughLocalColumn || !throughForeignColumn || !foreignColumn || !localColumn) {
|
|
54456
|
+
const throughForeignKeyColumn = throughModel.$keys.attributesToColumns.get(foreignKey) || foreignKey;
|
|
54457
|
+
const throughLocalKeyColumn = throughModel.$keys.attributesToColumns.get(throughLocalKey) || throughLocalKey;
|
|
54458
|
+
const relatedThroughForeignKeyColumn = RelatedModel.$keys.attributesToColumns.get(throughForeignKey) || throughForeignKey;
|
|
54459
|
+
if (!throughForeignKeyColumn || !throughLocalKeyColumn || !relatedThroughForeignKeyColumn) {
|
|
54461
54460
|
const missing = [
|
|
54462
|
-
!
|
|
54463
|
-
!
|
|
54464
|
-
!
|
|
54465
|
-
!localColumn ? "localColumn" : void 0
|
|
54461
|
+
!throughForeignKeyColumn ? "throughForeignKeyColumn" : void 0,
|
|
54462
|
+
!throughLocalKeyColumn ? "throughLocalKeyColumn" : void 0,
|
|
54463
|
+
!relatedThroughForeignKeyColumn ? "relatedThroughForeignKeyColumn" : void 0
|
|
54466
54464
|
].filter((x) => x !== void 0);
|
|
54467
54465
|
throw new E_INVALID_RELATIONSHIP_EXCEPTION(
|
|
54468
54466
|
`HasManyThrough relationship '${relationshipKey}' has invalid key mappings. Missing: ${missing.join(", ")}`
|
|
54469
54467
|
);
|
|
54470
54468
|
}
|
|
54471
54469
|
query.whereExists((subQuery) => {
|
|
54472
|
-
subQuery.from(throughModel.table).select(1).where(`${throughModel.table}.${
|
|
54473
|
-
`${throughModel.table}.${
|
|
54474
|
-
`${RelatedModel.table}.${
|
|
54470
|
+
subQuery.from(throughModel.table).select(1).where(`${throughModel.table}.${throughForeignKeyColumn}`, uid).whereColumn(
|
|
54471
|
+
`${throughModel.table}.${throughLocalKeyColumn}`,
|
|
54472
|
+
`${RelatedModel.table}.${relatedThroughForeignKeyColumn}`
|
|
54475
54473
|
).limit(1);
|
|
54476
54474
|
});
|
|
54477
54475
|
}
|
|
@@ -64971,7 +64969,7 @@ async function configure(command) {
|
|
|
64971
64969
|
}
|
|
64972
64970
|
]);
|
|
64973
64971
|
}
|
|
64974
|
-
const version = "1.20251213.
|
|
64972
|
+
const version = "1.20251213.1";
|
|
64975
64973
|
export {
|
|
64976
64974
|
resourcefulColumn as a,
|
|
64977
64975
|
resourcefulComputed as b,
|
|
@@ -64990,4 +64988,4 @@ export {
|
|
|
64990
64988
|
version as v,
|
|
64991
64989
|
withResourceful as w
|
|
64992
64990
|
};
|
|
64993
|
-
//# sourceMappingURL=index-
|
|
64991
|
+
//# sourceMappingURL=index-CsrC5E9M.js.map
|