starpc 0.5.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starpc",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Streaming protobuf RPC service protocol over any two-way channel.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -35,7 +35,7 @@
35
35
  "scripts": {
36
36
  "build": "rimraf ./dist && tsc --project tsconfig.build.json --outDir ./dist/",
37
37
  "check": "tsc",
38
- "deps": "depcheck",
38
+ "deps": "depcheck --ignores 'bufferutil,utf-8-validate'",
39
39
  "codegen": "npm run gen",
40
40
  "ci": "npm run build && npm run lint:js && npm run lint:go",
41
41
  "format": "prettier --write './{srpc,echo,e2e,integration,rpcstream}/**/(*.ts|*.tsx|*.html|*.css)'",
@@ -58,16 +58,18 @@
58
58
  "singleQuote": true
59
59
  },
60
60
  "devDependencies": {
61
- "@typescript-eslint/eslint-plugin": "^5.30.0",
62
- "@typescript-eslint/parser": "^5.30.0",
61
+ "@typescript-eslint/eslint-plugin": "^5.30.3",
62
+ "@typescript-eslint/parser": "^5.30.3",
63
+ "bufferutil": "^4.0.6",
63
64
  "depcheck": "^1.4.3",
64
- "esbuild": "^0.14.47",
65
+ "esbuild": "^0.14.48",
65
66
  "eslint": "^8.18.0",
66
67
  "eslint-config-prettier": "^8.5.0",
67
68
  "prettier": "^2.7.1",
68
69
  "rimraf": "^3.0.2",
69
- "ts-proto": "^1.115.5",
70
- "typescript": "^4.7.4"
70
+ "ts-proto": "^1.116.0",
71
+ "typescript": "^4.7.4",
72
+ "utf-8-validate": "^5.0.9"
71
73
  },
72
74
  "dependencies": {
73
75
  "@libp2p/interface-connection": "^2.1.1",
@@ -0,0 +1,14 @@
1
+ diff --git a/node_modules/ts-proto/build/utils.js b/node_modules/ts-proto/build/utils.js
2
+ index 2148e97..e19b35f 100644
3
+ --- a/node_modules/ts-proto/build/utils.js
4
+ +++ b/node_modules/ts-proto/build/utils.js
5
+ @@ -170,7 +170,8 @@ function getPropertyAccessor(objectName, propertyName, optional = false) {
6
+ }
7
+ exports.getPropertyAccessor = getPropertyAccessor;
8
+ function impProto(options, module, type) {
9
+ - const importString = `${type}@./${module}${options.fileSuffix}`;
10
+ + // NOTE: TypeScript resolves importing foo.js to importing foo.ts.
11
+ + const importString = `${type}@./${module}${options.fileSuffix}.js`;
12
+ if (options.onlyTypes) {
13
+ return (0, ts_poet_1.imp)('t:' + importString);
14
+ }