diff --git a/client/grpc-web-node-http-transport/README.md b/client/grpc-web-node-http-transport/README.md index 9e039ad2..870ae6fe 100644 --- a/client/grpc-web-node-http-transport/README.md +++ b/client/grpc-web-node-http-transport/README.md @@ -1,4 +1,4 @@ -# grpc-web-node-http-transport +# @improbable-eng/grpc-web-node-http-transport Node HTTP Transport for use with [@improbable-eng/grpc-web](https://github.com/improbable-eng/grpc-web) ## Usage @@ -6,7 +6,7 @@ When making a gRPC request, specify this transport: ```typescript import { grpc } from '@improbable-eng/grpc-web'; -import { NodeHttpTransport } from 'grpc-web-node-http-transport'; +import { NodeHttpTransport } from '@improbable-eng/grpc-web-node-http-transport'; grpc.invoke(MyService.DoQuery, { host: "https://example.com", @@ -18,7 +18,7 @@ grpc.invoke(MyService.DoQuery, { Alternatively specify the Default Transport when your server/application bootstraps: ```typescript import { grpc } from "@improbable-eng/grpc-web"; -import { NodeHttpTransport } from "grpc-web-node-http-transport"; +import { NodeHttpTransport } from "@improbable-eng/grpc-web-node-http-transport"; // Do this first, before you make any grpc requests! grpc.setDefaultTransport(NodeHttpTransport()); diff --git a/client/grpc-web-node-http-transport/package-lock.json b/client/grpc-web-node-http-transport/package-lock.json index 671500e0..fe3292dc 100644 --- a/client/grpc-web-node-http-transport/package-lock.json +++ b/client/grpc-web-node-http-transport/package-lock.json @@ -1,6 +1,6 @@ { - "name": "grpc-web-node-http-transport", - "version": "0.0.1", + "name": "@improbable-eng/grpc-web-node-http-transport", + "version": "0.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -10,6 +10,12 @@ "integrity": "sha512-3TUHC3jsBAB7qVRGxT6lWyYo2v96BMmD2PTcl47H25Lu7UXtFH/2qqmKiVrnel6Ne//0TFYf6uvNX+HW2FRkLQ==", "dev": true }, + "google-protobuf": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.6.1.tgz", + "integrity": "sha512-SJYemeX5GjDLPnadcmCNQePQHCS4Hl5fOcI/JawqDIYFhCmrtYAjcx/oTQx/Wi8UuCuZQhfvftbmPePPAYHFtA==", + "dev": true + }, "typescript": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.1.3.tgz", diff --git a/client/grpc-web-node-http-transport/package.json b/client/grpc-web-node-http-transport/package.json index b66ccb92..f28f02aa 100644 --- a/client/grpc-web-node-http-transport/package.json +++ b/client/grpc-web-node-http-transport/package.json @@ -1,6 +1,6 @@ { - "name": "grpc-web-node-http-transport", - "version": "0.0.1", + "name": "@improbable-eng/grpc-web-node-http-transport", + "version": "0.0.2", "description": "Node HTTP Transport for use with @improbable-eng/grpc-web", "main": "lib/index.js", "repository": { @@ -13,13 +13,15 @@ "build": "tsc", "test": "echo \"Error: no test specified\" && exit 1" }, - "dependencies": { - "@improbable-eng/grpc-web": "^0.8.0" - }, - "author": "", + "author": "Improbable", "license": "Apache-2.0", + "peerDependencies": { + "@improbable-eng/grpc-web": ">=0.7.0" + }, "devDependencies": { + "@improbable-eng/grpc-web": "^0.8.0", "@types/node": "^10.12.0", + "google-protobuf": "^3.2.0", "typescript": "^3.1.3" } } diff --git a/client/grpc-web/package.json b/client/grpc-web/package.json index c4814d1e..bbca0a6d 100644 --- a/client/grpc-web/package.json +++ b/client/grpc-web/package.json @@ -27,7 +27,6 @@ "dist" ], "peerDependencies": { - "@types/google-protobuf": "^3.2.5", "google-protobuf": "^3.2.0" }, "dependencies": { diff --git a/integration_test/package.json b/integration_test/package.json index d7cabf07..f9d1a938 100644 --- a/integration_test/package.json +++ b/integration_test/package.json @@ -23,7 +23,7 @@ "event-stream": "^3.3.4", "google-protobuf": "^3.2.0", "@improbable-eng/grpc-web": "^0.8.0", - "grpc-web-node-http-transport": "^0.0.1", + "@improbable-eng/grpc-web-node-http-transport": "^0.0.2", "typedarray": "0.0.6" }, "devDependencies": { diff --git a/integration_test/ts/src/testRpcCombinations.ts b/integration_test/ts/src/testRpcCombinations.ts index e5cea77f..eacdf01d 100644 --- a/integration_test/ts/src/testRpcCombinations.ts +++ b/integration_test/ts/src/testRpcCombinations.ts @@ -3,7 +3,7 @@ import { corsHost } from "../../hosts-config"; import {grpc} from "@improbable-eng/grpc-web"; -import {NodeHttpTransport} from "grpc-web-node-http-transport"; +import {NodeHttpTransport} from "@improbable-eng/grpc-web-node-http-transport"; type TestConfig = { testHostUrl: string,