Skip to content

Commit 57dd5ac

Browse files
authored
Merge branch 'dapr:master' into add_dapr_docs
2 parents ffbba7c + 2935614 commit 57dd5ac

39 files changed

+3931
-3571
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
**example.ts**
4242
4343
```javascript
44-
import { DaprClient, DaprServer } from "@dapr/js-sdk";
44+
import { DaprClient, DaprServer } from "dapr-client";
4545

4646
const daprHost = "127.0.0.1"; // Dapr Sidecar Host
4747
const daprPort = "50000"; // Dapr Sidecar Port

build-grpc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ generateGrpc() {
7979
--plugin="protoc-gen-ts=${PROTOC_GEN_TS_PATH}" \
8080
--plugin=protoc-gen-grpc=${PROTOC_GEN_GRPC_PATH} \
8181
--js_out="import_style=commonjs,binary:$PATH_PROTO" \
82-
--ts_out="service=grpc-node,mode=grpc-js:$PATH_PROTO" \
82+
--ts_out="grpc_js:$PATH_PROTO" \
8383
--grpc_out="grpc_js:$PATH_PROTO" \
8484
"$PATH_PROTO/$PATH_FILE"
8585
}

build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
echo "Preparing Build"
33
rm -rf build/
44
mkdir build/
5+
56
# @todo: gRPC binding pulling and building?
67

7-
echo ""
8-
echo "Building Protobuf"
9-
./build-grpc.sh
8+
# echo ""
9+
# echo "Building Protobuf"
10+
# ./build-grpc.sh
1011

1112
# Build Package
1213
echo ""

examples/grpc/hello-world-distributed/client/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/grpc/hello-world-distributed/client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@dapr/js-sdk-example-grpc-hello-world-distributed-client",
2+
"name": "dapr-client-example-grpc-hello-world-distributed-client",
33
"version": "1.0.0",
44
"description": "An example utilizing the Dapr JS SDK",
55
"main": "index.js",
@@ -20,7 +20,7 @@
2020
"typescript": "^4.2.4"
2121
},
2222
"dependencies": {
23-
"@dapr/js-sdk": "file:../../../build",
23+
"dapr-client": "file:../../../build",
2424
"@types/node": "^15.3.0"
2525
}
2626
}

examples/grpc/hello-world-distributed/client/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DaprClient, HttpMethod } from "@dapr/js-sdk";
1+
import { DaprClient, HttpMethod } from "dapr-client";
22

33
const daprHost = "127.0.0.1";
44
const daprPort = "3500";

examples/grpc/hello-world-distributed/server/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/grpc/hello-world-distributed/server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@dapr/js-sdk-example-grpc-hello-world-distributed-server",
2+
"name": "dapr-client-example-grpc-hello-world-distributed-server",
33
"version": "1.0.0",
44
"description": "An example utilizing the Dapr JS SDK",
55
"main": "index.js",
@@ -20,7 +20,7 @@
2020
"typescript": "^4.2.4"
2121
},
2222
"dependencies": {
23-
"@dapr/js-sdk": "file:../../../build",
23+
"dapr-client": "file:../../../build",
2424
"@types/node": "^15.3.0"
2525
}
2626
}

examples/grpc/hello-world-distributed/server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DaprServer, HttpMethod, CommunicationProtocolEnum } from "@dapr/js-sdk";
1+
import { DaprServer, HttpMethod, CommunicationProtocolEnum } from "dapr-client";
22

33
const daprHost = "127.0.0.1";
44
const daprPort = "50050"; // Dapr Sidecar Port of this Example Server

0 commit comments

Comments
 (0)