@arpc-packages/client-gen
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@arpc-packages/client-gen", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"module": "dist/index.mjs", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -82,3 +82,8 @@ import type { Enum, Object, Method, Signature, LiteralType } from "../BuildData"; | ||
// Check if the value is in the enum. | ||
const conditions = [...enumObj.data.keys()].sort(); | ||
const conditions: any[] = new Array(enumObj.data.size); | ||
let i = 0; | ||
for (const condition of enumObj.data.keys()) { | ||
conditions[i++] = condition; | ||
} | ||
conditions.sort(); | ||
if (conditions.length === 0) { | ||
@@ -85,0 +90,0 @@ // Return early since there is nothing to push. |
@@ -83,3 +83,3 @@ import type { BuildData, Client, Enum, Method, Methods, Object, Signature } from "../BuildData"; | ||
description = `/** | ||
${description.trim().split("\n").join("\n// ")} | ||
${description.trim().split("\n").join("\n* ")} | ||
*/ | ||
@@ -86,0 +86,0 @@ `; |
@@ -8,3 +8,2 @@ { | ||
"allowSyntheticDefaultImports": true, | ||
"downlevelIteration": true, | ||
"target": "ESNext", | ||
@@ -11,0 +10,0 @@ "module": "ES2022" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
617901
6503