ts-proto 1.131.0 → 1.131.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.131.1](https://github.com/stephenh/ts-proto/compare/v1.131.0...v1.131.1) (2022-11-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Extend `global.Error` to avoid import collisions with Error proto msgs ([#699](https://github.com/stephenh/ts-proto/issues/699)) ([e9d8f91](https://github.com/stephenh/ts-proto/commit/e9d8f9123b7b3c5e274035fa3f2644b370915181))
7
+
1
8
  # [1.131.0](https://github.com/stephenh/ts-proto/compare/v1.130.0...v1.131.0) (2022-10-25)
2
9
 
3
10
 
package/build/main.js CHANGED
@@ -494,7 +494,7 @@ function makeNiceGrpcServerStreamingMethodResult() {
494
494
  }
495
495
  function makeGrpcWebErrorClass() {
496
496
  const GrpcWebError = (0, ts_poet_1.conditionalOutput)("GrpcWebError", (0, ts_poet_1.code) `
497
- export class GrpcWebError extends Error {
497
+ export class GrpcWebError extends globalThis.Error {
498
498
  constructor(message: string, public code: grpc.Code, public metadata: grpc.Metadata) {
499
499
  super(message);
500
500
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.131.0",
3
+ "version": "1.131.1",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",
@@ -10,15 +10,11 @@
10
10
  "scripts": {
11
11
  "build": "yarn tsc",
12
12
  "build:test": "yarn proto2bin && yarn proto2pbjs && yarn bin2ts",
13
- "build:test:local": "yarn proto2bin:local && yarn proto2pbjs:local && yarn bin2ts:local",
14
13
  "prepare": "yarn build",
15
14
  "proto2bin": "docker compose run --rm protoc update-bins.sh",
16
15
  "proto2bin-node": "docker compose run --rm node update-bins.sh",
17
16
  "proto2pbjs": "docker compose run --rm protoc pbjs.sh",
18
17
  "bin2ts": "docker compose run --rm protoc codegen.sh",
19
- "proto2bin:local": "integration/update-bins.sh",
20
- "proto2pbjs:local": "integration/pbjs.sh",
21
- "bin2ts:local": "integration/codegen.sh",
22
18
  "test": "yarn jest -c jest.config.js --maxWorkers=2",
23
19
  "format": "prettier --write {src,tests}/**/*.ts integration/*.ts",
24
20
  "format:check": "prettier --list-different {src,tests}/**/*.ts",