@dudousxd/nestjs-codegen 0.10.0 → 0.11.0
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/CHANGELOG.md +19 -0
- package/dist/cli/main.cjs +6 -2
- package/dist/cli/main.cjs.map +1 -1
- package/dist/cli/main.js +6 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/nest/index.cjs +5 -1
- package/dist/nest/index.cjs.map +1 -1
- package/dist/nest/index.js +5 -1
- package/dist/nest/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -863,7 +863,11 @@ function buildRequestModel(c) {
|
|
|
863
863
|
urlExpr,
|
|
864
864
|
optsExpr,
|
|
865
865
|
responseType: `${TA}['response']`,
|
|
866
|
-
|
|
866
|
+
// When no input is supplied the key omits the trailing element entirely
|
|
867
|
+
// (`[name]` rather than `[name, undefined]`) so the bare `.queryKey()` is a
|
|
868
|
+
// clean prefix that partial-matches every parametrized variant — making it
|
|
869
|
+
// directly usable for `invalidateQueries`.
|
|
870
|
+
queryKeyExpr: `(input === undefined ? [${flat}] as const : [${flat}, input] as const)`
|
|
867
871
|
};
|
|
868
872
|
}
|
|
869
873
|
function renderFetcherRequest(req) {
|
|
@@ -4628,7 +4632,7 @@ function createChainModuleRenderer(opts) {
|
|
|
4628
4632
|
}
|
|
4629
4633
|
|
|
4630
4634
|
// src/index.ts
|
|
4631
|
-
var VERSION = "0.
|
|
4635
|
+
var VERSION = "0.11.0";
|
|
4632
4636
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4633
4637
|
0 && (module.exports = {
|
|
4634
4638
|
CodegenError,
|