protobuf.js
protobuf.js copied to clipboard
Protocol Buffers for JavaScript & TypeScript.
I used to have: ```ts root.resolvePath = (_origin: string, target: string) => // Google types will be centrally defined target.startsWith("google") ? null : path.join(Config.get().rootDir, target); ``` which works perfectly fine...
protobuf.js version: 7.4.0 using svelte(kit) ```bash pbjs -t static-module -w es6 -l -o ./src/lib/protos/index.js ./protos/*.proto && pbts -o ./src/lib/protos/index.d.ts ./src/lib/protos/index.js ``` ```js import * as $protobuf from "protobufjs/minimal"; // Common...
Since 7.5.2 version global message declaration has priority over nested message declaration. Example + reproduction: ```proto message NestedMessage { int32 id = 1; } message TestMessage { message NestedMessage {...
Getting this warning in the terminal: ```js WARN node_modules/@protobufjs/inquire/index.js (12:18): Use of eval in "node_modules/@protobufjs/inquire/index.js" is strongly discouraged as it poses security risks and may cause issues with minification. ```...
this problem waste my time for 4 days and i don't understand why? protobuff.verify() has no error and all properties set as well protobuf.js version: ^7.2.3 ```js let settings =...
I have a proto file with this structure: ```proto syntax = "proto3"; package sample; message Foo { string name = 1; } import "imports.proto"; ``` [email protected] (latest at the time...
When using protobuf.js in a browser, it's useful to be able to load proto files from other origins. But currently, `path.normalize()` mangles URLs by removing the second slash after the...
In the Namespace `lookup` method, when the initial `get` call fails to find something, we hit what I'd call the [unhappy search path](https://github.com/protobufjs/protobuf.js/blob/1dbcfe322899aca50fb82916db7802f647f23f0e/src/namespace.js#L372-L381). This unhappy path begins by recursing deeper...
I'm trying to use the protobufjs for a script that turns a vpd into a json, but no matter what I do, I always get the error "Cannot find module...
Replace the existing `utf8_read` function with a higher performance approach, which switches between 3 different implementations depending on the contents of the string: - If the string is long and...