@zachacious/protoc-gen-connect-vue 1.0.18 → 1.0.19
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/dist/generator.js +3 -10
- package/package.json +1 -1
package/dist/generator.js
CHANGED
|
@@ -336834,11 +336834,6 @@ function findPaginationPath(msg, isRequest, depth = 0) {
|
|
|
336834
336834
|
}
|
|
336835
336835
|
return null;
|
|
336836
336836
|
}
|
|
336837
|
-
function isRepeatedSafe(f) {
|
|
336838
|
-
if (f.fieldKind === "map")
|
|
336839
|
-
return false;
|
|
336840
|
-
return "repeated" in f && f.repeated === true;
|
|
336841
|
-
}
|
|
336842
336837
|
function processService(service) {
|
|
336843
336838
|
const importMap = new Map;
|
|
336844
336839
|
const wktImports = new Set;
|
|
@@ -336877,13 +336872,11 @@ function processService(service) {
|
|
|
336877
336872
|
const isQuery = isUnary && !isMutation;
|
|
336878
336873
|
const reqPath = findPaginationPath(m.input, true);
|
|
336879
336874
|
const resPath = findPaginationPath(m.output, false);
|
|
336880
|
-
const
|
|
336881
|
-
const isPaginated = isQuery && hasRepeatedList && !!reqPath && !!resPath;
|
|
336875
|
+
const isPaginated = isQuery && !!reqPath && !!resPath;
|
|
336882
336876
|
debugLog.push(`Method: ${name}`);
|
|
336883
|
-
debugLog.push(`
|
|
336877
|
+
debugLog.push(` isQuery: ${isQuery}`);
|
|
336884
336878
|
debugLog.push(` reqPath: ${reqPath?.join(".")}`);
|
|
336885
336879
|
debugLog.push(` resPath: ${resPath?.join(".")}`);
|
|
336886
|
-
debugLog.push(` hasRepeatedList: ${hasRepeatedList}`);
|
|
336887
336880
|
debugLog.push(` FINAL: isPaginated = ${isPaginated}`);
|
|
336888
336881
|
debugLog.push("---");
|
|
336889
336882
|
return {
|
|
@@ -336915,7 +336908,7 @@ function processService(service) {
|
|
|
336915
336908
|
}
|
|
336916
336909
|
var plugin = createEcmaScriptPlugin({
|
|
336917
336910
|
name: "protoc-gen-connect-vue",
|
|
336918
|
-
version: "v1.
|
|
336911
|
+
version: "v1.10.0",
|
|
336919
336912
|
generateTs: (schema) => {
|
|
336920
336913
|
const service = schema.files.flatMap((f) => f.services)[0];
|
|
336921
336914
|
if (!service)
|