@bufbuild/protobuf 0.1.0 → 0.1.1

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.
@@ -14,7 +14,7 @@
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ListValue = exports.Value = exports.Struct = exports.NullValue = void 0;
17
- // @generated by protoc-gen-es v0.1.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
17
+ // @generated by protoc-gen-es v0.1.1 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
18
18
  // @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3)
19
19
  /* eslint-disable */
20
20
  const proto3_js_1 = require("../../proto3.js");
@@ -14,7 +14,7 @@
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Option = exports.EnumValue = exports.Enum = exports.Field_Cardinality = exports.Field_Kind = exports.Field = exports.Type = exports.Syntax = void 0;
17
- // @generated by protoc-gen-es v0.1.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
17
+ // @generated by protoc-gen-es v0.1.1 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
18
18
  // @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
19
19
  /* eslint-disable */
20
20
  const proto3_js_1 = require("../../proto3.js");
@@ -37,7 +37,7 @@ function makeBinaryFormatProto2() {
37
37
  // In contrast to proto3, we raise an error if a non-optional (proto2 required)
38
38
  // field is missing a value.
39
39
  if (value === undefined && !field.oneof && !field.opt) {
40
- throw new Error(`cannot encode field ${type.typeName}.${field.name} to JSON: required field not set`);
40
+ throw new Error(`cannot encode field ${type.typeName}.${field.name} to binary: required field not set`);
41
41
  }
42
42
  }
43
43
  switch (field.kind) {
@@ -11,7 +11,7 @@
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- // @generated by protoc-gen-es v0.1.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
14
+ // @generated by protoc-gen-es v0.1.1 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
15
15
  // @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3)
16
16
  /* eslint-disable */
17
17
  import { proto3 } from "../../proto3.js";
@@ -11,7 +11,7 @@
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- // @generated by protoc-gen-es v0.1.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
14
+ // @generated by protoc-gen-es v0.1.1 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
15
15
  // @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
16
16
  /* eslint-disable */
17
17
  import { proto3 } from "../../proto3.js";
@@ -34,7 +34,7 @@ export function makeBinaryFormatProto2() {
34
34
  // In contrast to proto3, we raise an error if a non-optional (proto2 required)
35
35
  // field is missing a value.
36
36
  if (value === undefined && !field.oneof && !field.opt) {
37
- throw new Error(`cannot encode field ${type.typeName}.${field.name} to JSON: required field not set`);
37
+ throw new Error(`cannot encode field ${type.typeName}.${field.name} to binary: required field not set`);
38
38
  }
39
39
  }
40
40
  switch (field.kind) {
@@ -1,7 +1,7 @@
1
1
  import type { Message } from "./message.js";
2
2
  import type { MessageType } from "./message-type.js";
3
3
  import type { ScalarType } from "./field.js";
4
- import type { IMessageTypeRegistry } from "./type-registry";
4
+ import type { IMessageTypeRegistry } from "./type-registry.js";
5
5
  /**
6
6
  * JsonFormat is the contract for serializing messages to and from JSON.
7
7
  * Implementations may be specific to a proto syntax, and can be reflection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bufbuild/protobuf",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "(Apache-2.0 AND BSD-3-Clause)",
5
5
  "description": "A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.",
6
6
  "repository": {
@@ -20,7 +20,8 @@
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "exports": {
22
22
  "import": "./dist/esm/index.js",
23
- "require": "./dist/cjs/index.js"
23
+ "require": "./dist/cjs/index.js",
24
+ "types": "./dist/types/index.d.ts"
24
25
  },
25
26
  "files": [
26
27
  "dist/**/"