From 69e704bcce7ac46b6375954e02be0ddab15afa28 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 11:41:46 +0000 Subject: [PATCH 1/2] chore(deps): update all non-major dependencies --- package-lock.json | 184 +++++++++++++++++++++++----------------------- 1 file changed, 92 insertions(+), 92 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6d7d980..d7602eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1045,26 +1045,26 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "26.6.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", - "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", + "version": "26.6.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.10.tgz", + "integrity": "sha512-WJuPHoGB8WNQuTksNF7SOQpnH02PXeDYz4iueWbBT6/hTWnShY5F3T/hoJA3fY9+uYReDZ7pyTKKx83jQa7aGg==", "license": "MIT", "dependencies": { "undici-types": "~8.9.0" } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.73.0.tgz", - "integrity": "sha512-UkygMFer53Yzn29MCYFTHf34hGXf5KJhiDWfIm1tXtXRrym1CS6l5H9Y3yCtPWChpC0/f93H88gdj8tN0dd4kw==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.74.0.tgz", + "integrity": "sha512-z3KXk1+Vm+d82ZRplOoC89ho4Rf1da5ju6sx8//92GnN532U62DGPjECXkkVqtYzIv0zoJlpO39SX2Z9tk6LVw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.73.0", - "@typescript-eslint/type-utils": "8.73.0", - "@typescript-eslint/utils": "8.73.0", - "@typescript-eslint/visitor-keys": "8.73.0", + "@typescript-eslint/scope-manager": "8.74.0", + "@typescript-eslint/type-utils": "8.74.0", + "@typescript-eslint/utils": "8.74.0", + "@typescript-eslint/visitor-keys": "8.74.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -1077,7 +1077,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.73.0", + "@typescript-eslint/parser": "^8.74.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } @@ -1093,16 +1093,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.73.0.tgz", - "integrity": "sha512-AuL45bVcmssHfZ3Di3cs9Q0l4gBm4ZFVrJOQEE7VpqW+PVgQaEwSwazz4TVIiFabXkk6U51EprYDwqw+HR8ePw==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.74.0.tgz", + "integrity": "sha512-ecr8AYdig7avVkxaHdQvxHnIJ/mOyliO4Gv/uWF8q69vBew/z3sexqBwHUZX5Vql+Ns0w4sH6gBLkICGbOvJkA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.73.0", - "@typescript-eslint/types": "8.73.0", - "@typescript-eslint/typescript-estree": "8.73.0", - "@typescript-eslint/visitor-keys": "8.73.0", + "@typescript-eslint/scope-manager": "8.74.0", + "@typescript-eslint/types": "8.74.0", + "@typescript-eslint/typescript-estree": "8.74.0", + "@typescript-eslint/visitor-keys": "8.74.0", "debug": "^4.4.3" }, "engines": { @@ -1118,16 +1118,16 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz", - "integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.74.0.tgz", + "integrity": "sha512-wL348k6l92DNG+kPP5rVpKwNBoz7a3xRZy3TPKc1uymQttd7u7gcMv3eENmcuh4CjC4mO3FTM0DYstFXMyDLuw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.73.0", - "@typescript-eslint/tsconfig-utils": "8.73.0", - "@typescript-eslint/types": "8.73.0", - "@typescript-eslint/visitor-keys": "8.73.0", + "@typescript-eslint/project-service": "8.74.0", + "@typescript-eslint/tsconfig-utils": "8.74.0", + "@typescript-eslint/types": "8.74.0", + "@typescript-eslint/visitor-keys": "8.74.0", "debug": "^4.4.3", "minimatch": "^11.0.1", "semver": "^7.7.3", @@ -1152,14 +1152,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.73.0.tgz", - "integrity": "sha512-/pEf8Rc4Mjk+qJnY0uO1+Gadeal8uv50xpuic+srG2vIVatA0XxvWMUeMtFvs6OCHqftiQ7/+qH4aehG5stzIA==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.74.0.tgz", + "integrity": "sha512-z/mymuE+JlEeSFIv3Mo70EvgG1Zz74Hl0IDfExfXutARAP834bt+MppTD7mVAwmZO0GdxdOAi0jbTam749eH6g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.73.0", - "@typescript-eslint/types": "^8.73.0", + "@typescript-eslint/tsconfig-utils": "^8.74.0", + "@typescript-eslint/types": "^8.74.0", "debug": "^4.4.3" }, "engines": { @@ -1174,14 +1174,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.73.0.tgz", - "integrity": "sha512-/TjD738Iq2rzj5z0ixVOi+TsvgjAzZPLPaH1yWdDBytR/HTR5gMpyYWZeCe5WTQZLwk3ho8AV7U3muoQCRtXBQ==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.74.0.tgz", + "integrity": "sha512-kpOdpu4CpWN5U38ox3f727DwWRBtUAVhyUJtqTBYe5gf2wYoxac7PgKP14txrxN7ICVtcjlLdzjqfRgpSnDKvQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.73.0", - "@typescript-eslint/visitor-keys": "8.73.0" + "@typescript-eslint/types": "8.74.0", + "@typescript-eslint/visitor-keys": "8.74.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1192,9 +1192,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.73.0.tgz", - "integrity": "sha512-lmtCFOfYaJfpqZywGuXi4FpNtE+NQ+YLe3T0K9rtEDcW8ZuGWvfI++pj8r05sYMI8vWT2CYK4rWyedmD6Rp4og==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.74.0.tgz", + "integrity": "sha512-p07wAuaS6BjCYgOSXKJi4YhvTnAf7fiG37e9THcpnYaQEt2QiTTYZWKwUFNgeRiywiMudazhzgddAirZ0GgHtQ==", "dev": true, "license": "MIT", "engines": { @@ -1209,15 +1209,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.73.0.tgz", - "integrity": "sha512-MOC9i4xy1F7KcDde7Ip8jf1SrRiALb2Km4UWxGNjUE2YlhjIEo1ayE27GHIwIQyfWuHTmEonQT14uyurlyC6aA==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.74.0.tgz", + "integrity": "sha512-CV3Y3la8l3F9ANfxcfpgSSiQgJTe4IeLEoZV4O/gcW86Ugp8X6SKiQ0vm+QegXaRIbbDMokZZSF3A1CgiU/kPw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.73.0", - "@typescript-eslint/typescript-estree": "8.73.0", - "@typescript-eslint/utils": "8.73.0", + "@typescript-eslint/types": "8.74.0", + "@typescript-eslint/typescript-estree": "8.74.0", + "@typescript-eslint/utils": "8.74.0", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -1234,16 +1234,16 @@ } }, "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz", - "integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.74.0.tgz", + "integrity": "sha512-wL348k6l92DNG+kPP5rVpKwNBoz7a3xRZy3TPKc1uymQttd7u7gcMv3eENmcuh4CjC4mO3FTM0DYstFXMyDLuw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.73.0", - "@typescript-eslint/tsconfig-utils": "8.73.0", - "@typescript-eslint/types": "8.73.0", - "@typescript-eslint/visitor-keys": "8.73.0", + "@typescript-eslint/project-service": "8.74.0", + "@typescript-eslint/tsconfig-utils": "8.74.0", + "@typescript-eslint/types": "8.74.0", + "@typescript-eslint/visitor-keys": "8.74.0", "debug": "^4.4.3", "minimatch": "^11.0.1", "semver": "^7.7.3", @@ -1268,9 +1268,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.73.0.tgz", - "integrity": "sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.74.0.tgz", + "integrity": "sha512-MpnMrJCVNpP1iVL8NiHkQZgQqIMBH5ewDGUPBh1pqQXwFtMFjsl1M03QcYPXmv6stCKEiF0PN7CGbU1ZbXFzEA==", "dev": true, "license": "MIT", "engines": { @@ -1282,16 +1282,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.73.0.tgz", - "integrity": "sha512-j2SVJJvVkXdUL0WcEzo4vEH1mO1vIi8KlVukcYA2MgMZvYN2LlZR4PmsW+GTSxSW24j6Q/EP7+MOifLtg5hmsA==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.74.0.tgz", + "integrity": "sha512-IpWXPxXXomzxyTcvjhZJexgdvtTR1TooLAPpuxzaGqQ8BHll1lf4Ysp/BTE/l0U5TJ+x1j7B4bEM8pLRrvY+XA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.73.0", - "@typescript-eslint/types": "8.73.0", - "@typescript-eslint/typescript-estree": "8.73.0" + "@typescript-eslint/scope-manager": "8.74.0", + "@typescript-eslint/types": "8.74.0", + "@typescript-eslint/typescript-estree": "8.74.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1306,16 +1306,16 @@ } }, "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz", - "integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.74.0.tgz", + "integrity": "sha512-wL348k6l92DNG+kPP5rVpKwNBoz7a3xRZy3TPKc1uymQttd7u7gcMv3eENmcuh4CjC4mO3FTM0DYstFXMyDLuw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.73.0", - "@typescript-eslint/tsconfig-utils": "8.73.0", - "@typescript-eslint/types": "8.73.0", - "@typescript-eslint/visitor-keys": "8.73.0", + "@typescript-eslint/project-service": "8.74.0", + "@typescript-eslint/tsconfig-utils": "8.74.0", + "@typescript-eslint/types": "8.74.0", + "@typescript-eslint/visitor-keys": "8.74.0", "debug": "^4.4.3", "minimatch": "^11.0.1", "semver": "^7.7.3", @@ -1340,13 +1340,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.73.0.tgz", - "integrity": "sha512-k4lsFVpRZICbltkIEEH4hZRkwXkqDF1GHBpClKQOHQY+RkoZAAuyc1ci3I6p+CB6v3U4jaHIUshc4RzzQXZWLg==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.74.0.tgz", + "integrity": "sha512-XSZmOtMUbWCBIM+2BK134FyMFxmll1mW2mPLk/PSwYQYzGIPMgJAqL929U4qXVizLv7Xq5b7r41/o7Ombuwk0g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/types": "8.74.0", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -3774,9 +3774,9 @@ } }, "node_modules/ts-poet": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.12.0.tgz", - "integrity": "sha512-xo+iRNMWqyvXpFTaOAvLPA5QAWO6TZrSUs5s4Odaya3epqofBu/fMLHEWl8jPmjhA0s9sgj9sNvF1BmaQlmQkA==", + "version": "6.12.1", + "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.12.1.tgz", + "integrity": "sha512-N/5xnO/ugx3C9Wfibfnkv48dyzn8iNce1kuhh8tpDG7bDfij4H7agPBKyxAKU6v4VfRvQZEulmSVinvGT2Qmwg==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -3784,15 +3784,15 @@ } }, "node_modules/ts-proto": { - "version": "2.22.0", - "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.22.0.tgz", - "integrity": "sha512-FODGAPNklhzjkmsGgzekOZqbUT1CNxE90H+eFQdRGvVsyqywyeCE0zn+8LPrFZjegCue18O8wdMGlYoYH87PQg==", + "version": "2.23.9", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.23.9.tgz", + "integrity": "sha512-6oHtCJ4LsQb2NIxDmX3TGtfZty/RH7Bcc806e0pa2gQMoaU7s4um1M6N1PSJGK4PCJvPYe2l2mzGQdCbiVeFsQ==", "dev": true, "license": "ISC", "dependencies": { "@bufbuild/protobuf": "^2.14.1", "case-anything": "^2.1.13", - "ts-poet": "^6.12.0", + "ts-poet": "^6.12.1", "ts-proto-descriptors": "2.1.0" }, "bin": { @@ -3846,16 +3846,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.73.0.tgz", - "integrity": "sha512-+EnKy9rkYPun4l+kG2bDuYWQ6y1tGVgdR/tY1U9AC6h21CjEwOoc7gsjwe0FXB8uWFzk4QiCFbuRWgX758PiAg==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.74.0.tgz", + "integrity": "sha512-OsWQlsedt1ZpZXfZZMNK3m4SoQONFFcy4h/uRznsCeRfVuEic3gh4KGUs2pJJ5o0Jj0Jr7keUHQGN1Ns9aDw7Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.73.0", - "@typescript-eslint/parser": "8.73.0", - "@typescript-eslint/typescript-estree": "8.73.0", - "@typescript-eslint/utils": "8.73.0" + "@typescript-eslint/eslint-plugin": "8.74.0", + "@typescript-eslint/parser": "8.74.0", + "@typescript-eslint/typescript-estree": "8.74.0", + "@typescript-eslint/utils": "8.74.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3870,16 +3870,16 @@ } }, "node_modules/typescript-eslint/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.73.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz", - "integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==", + "version": "8.74.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.74.0.tgz", + "integrity": "sha512-wL348k6l92DNG+kPP5rVpKwNBoz7a3xRZy3TPKc1uymQttd7u7gcMv3eENmcuh4CjC4mO3FTM0DYstFXMyDLuw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.73.0", - "@typescript-eslint/tsconfig-utils": "8.73.0", - "@typescript-eslint/types": "8.73.0", - "@typescript-eslint/visitor-keys": "8.73.0", + "@typescript-eslint/project-service": "8.74.0", + "@typescript-eslint/tsconfig-utils": "8.74.0", + "@typescript-eslint/types": "8.74.0", + "@typescript-eslint/visitor-keys": "8.74.0", "debug": "^4.4.3", "minimatch": "^11.0.1", "semver": "^7.7.3", From 774b88df8b06b2eeb754d8897c39bb474d407f54 Mon Sep 17 00:00:00 2001 From: Steven Borrelli Date: Wed, 25 Nov 2026 20:00:40 +0000 Subject: [PATCH 2/2] Regenerate protobufs for ts-proto 2.23.9 ts-proto 2.23.2 lets Duration.fromJSON parse duration strings such as "60s", and 2.23.3 maps google.protobuf.NullValue to JSON null. Only the JSON helpers change. The binary encode/decode paths used over gRPC are unchanged, and run_function.ts regenerates identically. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven Borrelli --- src/proto/google/protobuf/duration.ts | 18 ++++++++++++++++++ src/proto/google/protobuf/struct.ts | 9 +++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/proto/google/protobuf/duration.ts b/src/proto/google/protobuf/duration.ts index 7f49b5e..6d6aeea 100644 --- a/src/proto/google/protobuf/duration.ts +++ b/src/proto/google/protobuf/duration.ts @@ -143,6 +143,24 @@ export const Duration: MessageFns = { }, fromJSON(object: any): Duration { + if (typeof object === "string") { + if (!object.endsWith("s")) { + throw new Error("Invalid duration string"); + } + const body = object.slice(0, -1); + const negative = body.startsWith("-"); + const unsigned = negative ? body.slice(1) : body; + const dot = unsigned.indexOf("."); + const secondsStr = dot < 0 ? unsigned : unsigned.slice(0, dot); + const fracStr = dot < 0 ? "" : unsigned.slice(dot + 1); + if (secondsStr.length === 0) { + throw new Error("Invalid duration string"); + } + const seconds = negative && secondsStr !== "0" ? -Number(secondsStr) : Number(secondsStr); + const nanosAbs = fracStr === "" ? 0 : Number(fracStr.padEnd(9, "0").slice(0, 9)); + const nanos = negative && nanosAbs !== 0 ? -nanosAbs : nanosAbs; + return { seconds, nanos }; + } return { seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0, nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0, diff --git a/src/proto/google/protobuf/struct.ts b/src/proto/google/protobuf/struct.ts index 035bb4c..3a2c1b3 100644 --- a/src/proto/google/protobuf/struct.ts +++ b/src/proto/google/protobuf/struct.ts @@ -27,6 +27,7 @@ export enum NullValue { export function nullValueFromJSON(object: any): NullValue { switch (object) { + case null: case 0: case "NULL_VALUE": return NullValue.NULL_VALUE; @@ -37,10 +38,10 @@ export function nullValueFromJSON(object: any): NullValue { } } -export function nullValueToJSON(object: NullValue): string { +export function nullValueToJSON(object: NullValue): string | null { switch (object) { case NullValue.NULL_VALUE: - return "NULL_VALUE"; + return null; case NullValue.UNRECOGNIZED: default: return "UNRECOGNIZED"; @@ -432,9 +433,9 @@ export const Value: MessageFns & AnyValueWrapperFns = { fromJSON(object: any): Value { return { - nullValue: isSet(object.nullValue) + nullValue: object.nullValue !== undefined ? nullValueFromJSON(object.nullValue) - : isSet(object.null_value) + : object.null_value !== undefined ? nullValueFromJSON(object.null_value) : undefined, numberValue: isSet(object.numberValue)