@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.
Files changed (2) hide show
  1. package/dist/generator.js +3 -10
  2. 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 hasRepeatedList = m.output.fields.some((f) => isRepeatedSafe(f));
336881
- const isPaginated = isQuery && hasRepeatedList && !!reqPath && !!resPath;
336875
+ const isPaginated = isQuery && !!reqPath && !!resPath;
336882
336876
  debugLog.push(`Method: ${name}`);
336883
- debugLog.push(` isUnary: ${isUnary}, isMutation: ${isMutation} -> isQuery: ${isQuery}`);
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.9.0",
336911
+ version: "v1.10.0",
336919
336912
  generateTs: (schema) => {
336920
336913
  const service = schema.files.flatMap((f) => f.services)[0];
336921
336914
  if (!service)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zachacious/protoc-gen-connect-vue",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Smart TanStack Query & ConnectRPC SDK generator for Vue.js",
5
5
  "type": "module",
6
6
  "license": "MIT",