@bufbuild/protobuf 0.0.2-alpha.3 → 0.0.3
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.
- package/README.md +5 -2
- package/dist/cjs/google/protobuf/any_pb.js +6 -6
- package/dist/cjs/google/protobuf/api_pb.js +18 -18
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +22 -22
- package/dist/cjs/google/protobuf/descriptor_pb.js +148 -148
- package/dist/cjs/google/protobuf/duration_pb.js +11 -11
- package/dist/cjs/google/protobuf/empty_pb.js +6 -6
- package/dist/cjs/google/protobuf/field_mask_pb.js +7 -7
- package/dist/cjs/google/protobuf/source_context_pb.js +6 -6
- package/dist/cjs/google/protobuf/struct_pb.js +21 -21
- package/dist/cjs/google/protobuf/timestamp_pb.js +10 -10
- package/dist/cjs/google/protobuf/type_pb.js +33 -33
- package/dist/cjs/google/protobuf/wrappers_pb.js +66 -66
- package/dist/cjs/index-runtime.js +42 -0
- package/dist/cjs/index-wkt.js +42 -0
- package/dist/cjs/index.js +4 -40
- package/dist/cjs/private/util-common.js +1 -1
- package/dist/esm/google/protobuf/any_pb.js +1 -1
- package/dist/esm/google/protobuf/api_pb.js +1 -1
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +1 -1
- package/dist/esm/google/protobuf/descriptor_pb.js +1 -1
- package/dist/esm/google/protobuf/duration_pb.js +1 -1
- package/dist/esm/google/protobuf/empty_pb.js +1 -1
- package/dist/esm/google/protobuf/field_mask_pb.js +1 -1
- package/dist/esm/google/protobuf/source_context_pb.js +1 -1
- package/dist/esm/google/protobuf/struct_pb.js +1 -1
- package/dist/esm/google/protobuf/timestamp_pb.js +1 -1
- package/dist/esm/google/protobuf/type_pb.js +1 -1
- package/dist/esm/google/protobuf/wrappers_pb.js +1 -1
- package/dist/esm/index-runtime.js +25 -0
- package/dist/esm/index-wkt.js +26 -0
- package/dist/esm/index.js +4 -25
- package/dist/esm/private/util-common.js +1 -1
- package/dist/types/google/protobuf/any_pb.d.ts +2 -2
- package/dist/types/google/protobuf/api_pb.d.ts +2 -2
- package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +2 -2
- package/dist/types/google/protobuf/descriptor_pb.d.ts +2 -2
- package/dist/types/google/protobuf/duration_pb.d.ts +2 -2
- package/dist/types/google/protobuf/empty_pb.d.ts +2 -2
- package/dist/types/google/protobuf/field_mask_pb.d.ts +2 -2
- package/dist/types/google/protobuf/source_context_pb.d.ts +2 -2
- package/dist/types/google/protobuf/struct_pb.d.ts +2 -2
- package/dist/types/google/protobuf/timestamp_pb.d.ts +2 -2
- package/dist/types/google/protobuf/type_pb.d.ts +2 -2
- package/dist/types/google/protobuf/wrappers_pb.d.ts +2 -2
- package/dist/types/index-runtime.d.ts +19 -0
- package/dist/types/index-wkt.d.ts +12 -0
- package/dist/types/index.d.ts +2 -31
- package/dist/types/message.d.ts +1 -3
- package/package.json +2 -2
|
@@ -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
|
-
import { Message, proto3 } from "../../index.js";
|
|
14
|
+
import { Message, proto3 } from "../../index-runtime.js";
|
|
15
15
|
import { SourceContext } from "./source_context_pb.js";
|
|
16
16
|
import { Any } from "./any_pb.js";
|
|
17
17
|
/**
|
|
@@ -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
|
-
import { Message, ScalarType, proto3, protoInt64 } from "../../index.js";
|
|
14
|
+
import { Message, ScalarType, proto3, protoInt64 } from "../../index-runtime.js";
|
|
15
15
|
/**
|
|
16
16
|
* Wrapper message for `double`.
|
|
17
17
|
*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
export { proto3 } from "./proto3.js";
|
|
15
|
+
export { proto2 } from "./proto2.js";
|
|
16
|
+
export { protoInt64 } from "./proto-int64.js";
|
|
17
|
+
export { protoBase64 } from "./proto-base64.js";
|
|
18
|
+
export { Message, } from "./message.js";
|
|
19
|
+
export { ScalarType } from "./field.js";
|
|
20
|
+
export { MethodKind, MethodIdempotency } from "./service-type.js";
|
|
21
|
+
export { TypeRegistry } from "./type-registry.js";
|
|
22
|
+
export { DescriptorRegistry } from "./descriptor-registry.js";
|
|
23
|
+
export { DescriptorSet } from "./descriptor-set.js";
|
|
24
|
+
export { WireType, BinaryWriter, BinaryReader } from "./binary-encoding.js";
|
|
25
|
+
export {} from "./json-format.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
// ideally, we would export these types with sub-path exports:
|
|
15
|
+
export * from "./google/protobuf/compiler/plugin_pb.js";
|
|
16
|
+
export * from "./google/protobuf/api_pb.js";
|
|
17
|
+
export * from "./google/protobuf/any_pb.js";
|
|
18
|
+
export * from "./google/protobuf/descriptor_pb.js";
|
|
19
|
+
export * from "./google/protobuf/duration_pb.js";
|
|
20
|
+
export * from "./google/protobuf/empty_pb.js";
|
|
21
|
+
export * from "./google/protobuf/field_mask_pb.js";
|
|
22
|
+
export * from "./google/protobuf/source_context_pb.js";
|
|
23
|
+
export * from "./google/protobuf/struct_pb.js";
|
|
24
|
+
export * from "./google/protobuf/timestamp_pb.js";
|
|
25
|
+
export * from "./google/protobuf/type_pb.js";
|
|
26
|
+
export * from "./google/protobuf/wrappers_pb.js";
|
package/dist/esm/index.js
CHANGED
|
@@ -11,28 +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
|
-
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export { Message, } from "./message.js";
|
|
19
|
-
export { ScalarType } from "./field.js";
|
|
20
|
-
export { MethodKind, MethodIdempotency } from "./service-type.js";
|
|
21
|
-
export { TypeRegistry } from "./type-registry.js";
|
|
22
|
-
export { DescriptorRegistry } from "./descriptor-registry.js";
|
|
23
|
-
export { DescriptorSet } from "./descriptor-set.js";
|
|
24
|
-
export { WireType, BinaryWriter, BinaryReader } from "./binary-encoding.js";
|
|
25
|
-
export {} from "./json-format.js";
|
|
26
|
-
// ideally, we would export these types with sub-path exports:
|
|
27
|
-
export * from "./google/protobuf/compiler/plugin_pb.js";
|
|
28
|
-
export * from "./google/protobuf/api_pb.js";
|
|
29
|
-
export * from "./google/protobuf/any_pb.js";
|
|
30
|
-
export * from "./google/protobuf/descriptor_pb.js";
|
|
31
|
-
export * from "./google/protobuf/duration_pb.js";
|
|
32
|
-
export * from "./google/protobuf/empty_pb.js";
|
|
33
|
-
export * from "./google/protobuf/field_mask_pb.js";
|
|
34
|
-
export * from "./google/protobuf/source_context_pb.js";
|
|
35
|
-
export * from "./google/protobuf/struct_pb.js";
|
|
36
|
-
export * from "./google/protobuf/timestamp_pb.js";
|
|
37
|
-
export * from "./google/protobuf/type_pb.js";
|
|
38
|
-
export * from "./google/protobuf/wrappers_pb.js";
|
|
14
|
+
// To avoid circular imports when the wkt import from ./index.js, we
|
|
15
|
+
// use a separate ./index-runtime.js
|
|
16
|
+
export * from "./index-runtime.js";
|
|
17
|
+
export * from "./index-wkt.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, MessageType, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, MessageType, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
5
5
|
* URL that describes the type of the serialized message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
import { Option, Syntax } from "./type_pb.js";
|
|
4
4
|
import { SourceContext } from "./source_context_pb.js";
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../../index.js";
|
|
2
|
-
import { Message } from "../../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../../index-runtime.js";
|
|
3
3
|
import { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* The version number of protocol compiler.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
5
5
|
* files it parses.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* A Duration represents a signed, fixed-length span of time represented
|
|
5
5
|
* as a count of seconds and fractions of seconds at nanosecond
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* A generic empty message that you can re-use to avoid defining duplicated
|
|
5
5
|
* empty messages in your APIs. A typical example is to use it as the request
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* `FieldMask` represents a set of symbolic field paths, for example:
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* `SourceContext` represents information about the source of a
|
|
5
5
|
* protobuf element, like the file in which it is defined.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
5
5
|
* `Value` type union.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* A Timestamp represents a point in time independent of any time zone or local
|
|
5
5
|
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
import { SourceContext } from "./source_context_pb.js";
|
|
4
4
|
import { Any } from "./any_pb.js";
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js";
|
|
2
|
+
import { Message } from "../../index-runtime.js";
|
|
3
3
|
/**
|
|
4
4
|
* Wrapper message for `double`.
|
|
5
5
|
*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { proto3 } from "./proto3.js";
|
|
2
|
+
export { proto2 } from "./proto2.js";
|
|
3
|
+
export { protoInt64 } from "./proto-int64.js";
|
|
4
|
+
export { protoBase64 } from "./proto-base64.js";
|
|
5
|
+
export { Message, AnyMessage, PartialMessage, PlainMessage, } from "./message.js";
|
|
6
|
+
export type { FieldInfo } from "./field.js";
|
|
7
|
+
export type { FieldList } from "./field-list.js";
|
|
8
|
+
export { ScalarType } from "./field.js";
|
|
9
|
+
export type { MessageType } from "./message-type.js";
|
|
10
|
+
export type { EnumType, EnumValueInfo } from "./enum.js";
|
|
11
|
+
export type { ServiceType, MethodInfo, MethodInfoUnary, MethodInfoServerStreaming, MethodInfoClientStreaming, MethodInfoBiDiStreaming, } from "./service-type.js";
|
|
12
|
+
export { MethodKind, MethodIdempotency } from "./service-type.js";
|
|
13
|
+
export { TypeRegistry, IMessageTypeRegistry } from "./type-registry.js";
|
|
14
|
+
export { DescriptorRegistry } from "./descriptor-registry.js";
|
|
15
|
+
export { DescriptorSet } from "./descriptor-set.js";
|
|
16
|
+
export { WireType, BinaryWriter, BinaryReader } from "./binary-encoding.js";
|
|
17
|
+
export type { IBinaryReader, IBinaryWriter } from "./binary-encoding.js";
|
|
18
|
+
export type { BinaryFormat, BinaryWriteOptions, BinaryReadOptions, } from "./binary-format.js";
|
|
19
|
+
export { JsonFormat, JsonObject, JsonValue, JsonReadOptions, JsonWriteOptions, JsonWriteStringOptions, } from "./json-format.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./google/protobuf/compiler/plugin_pb.js";
|
|
2
|
+
export * from "./google/protobuf/api_pb.js";
|
|
3
|
+
export * from "./google/protobuf/any_pb.js";
|
|
4
|
+
export * from "./google/protobuf/descriptor_pb.js";
|
|
5
|
+
export * from "./google/protobuf/duration_pb.js";
|
|
6
|
+
export * from "./google/protobuf/empty_pb.js";
|
|
7
|
+
export * from "./google/protobuf/field_mask_pb.js";
|
|
8
|
+
export * from "./google/protobuf/source_context_pb.js";
|
|
9
|
+
export * from "./google/protobuf/struct_pb.js";
|
|
10
|
+
export * from "./google/protobuf/timestamp_pb.js";
|
|
11
|
+
export * from "./google/protobuf/type_pb.js";
|
|
12
|
+
export * from "./google/protobuf/wrappers_pb.js";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { protoInt64 } from "./proto-int64.js";
|
|
4
|
-
export { protoBase64 } from "./proto-base64.js";
|
|
5
|
-
export { Message, AnyMessage, PartialMessage, PlainMessage, } from "./message.js";
|
|
6
|
-
export type { FieldInfo } from "./field.js";
|
|
7
|
-
export type { FieldList } from "./field-list.js";
|
|
8
|
-
export { ScalarType } from "./field.js";
|
|
9
|
-
export type { MessageType } from "./message-type.js";
|
|
10
|
-
export type { EnumType, EnumValueInfo } from "./enum.js";
|
|
11
|
-
export type { ServiceType, MethodInfo, MethodInfoUnary, MethodInfoServerStreaming, MethodInfoClientStreaming, MethodInfoBiDiStreaming, } from "./service-type.js";
|
|
12
|
-
export { MethodKind, MethodIdempotency } from "./service-type.js";
|
|
13
|
-
export { TypeRegistry, IMessageTypeRegistry } from "./type-registry.js";
|
|
14
|
-
export { DescriptorRegistry } from "./descriptor-registry.js";
|
|
15
|
-
export { DescriptorSet } from "./descriptor-set.js";
|
|
16
|
-
export { WireType, BinaryWriter, BinaryReader } from "./binary-encoding.js";
|
|
17
|
-
export type { IBinaryReader, IBinaryWriter } from "./binary-encoding.js";
|
|
18
|
-
export type { BinaryFormat, BinaryWriteOptions, BinaryReadOptions, } from "./binary-format.js";
|
|
19
|
-
export { JsonFormat, JsonObject, JsonValue, JsonReadOptions, JsonWriteOptions, JsonWriteStringOptions, } from "./json-format.js";
|
|
20
|
-
export * from "./google/protobuf/compiler/plugin_pb.js";
|
|
21
|
-
export * from "./google/protobuf/api_pb.js";
|
|
22
|
-
export * from "./google/protobuf/any_pb.js";
|
|
23
|
-
export * from "./google/protobuf/descriptor_pb.js";
|
|
24
|
-
export * from "./google/protobuf/duration_pb.js";
|
|
25
|
-
export * from "./google/protobuf/empty_pb.js";
|
|
26
|
-
export * from "./google/protobuf/field_mask_pb.js";
|
|
27
|
-
export * from "./google/protobuf/source_context_pb.js";
|
|
28
|
-
export * from "./google/protobuf/struct_pb.js";
|
|
29
|
-
export * from "./google/protobuf/timestamp_pb.js";
|
|
30
|
-
export * from "./google/protobuf/type_pb.js";
|
|
31
|
-
export * from "./google/protobuf/wrappers_pb.js";
|
|
1
|
+
export * from "./index-runtime.js";
|
|
2
|
+
export * from "./index-wkt.js";
|
package/dist/types/message.d.ts
CHANGED
|
@@ -67,9 +67,7 @@ export declare class Message<T extends Message<T> = AnyMessage> {
|
|
|
67
67
|
* PlainMessage<T> strips all methods from a message, leaving only fields
|
|
68
68
|
* and oneof groups.
|
|
69
69
|
*/
|
|
70
|
-
export declare type PlainMessage<T extends Message> =
|
|
71
|
-
[P in keyof T as T[P] extends Function ? never : P]: T[P];
|
|
72
|
-
};
|
|
70
|
+
export declare type PlainMessage<T extends Message> = Omit<T, keyof Message>;
|
|
73
71
|
/**
|
|
74
72
|
* PartialMessage<T> constructs a type from a message. The resulting type
|
|
75
73
|
* only contains the protobuf field members of the message, and all of them
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bufbuild/protobuf",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
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": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"default": "./dist/esm/index.js"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"typescript": "^4.6.
|
|
25
|
+
"typescript": "^4.6.4"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist/**/"
|