@webpieces/cloudtasks-client 0.4.794 → 0.4.796

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -8,7 +8,7 @@ where it runs through the full server filter chain.
8
8
  ```ts
9
9
  // one shared contract
10
10
  @PubSub() @WpAuthOidc() @ApiPath('/email')
11
- abstract class EmailApi { @Endpoint('/send') sendEmail(r: SendEmailRequest): Promise<void> {…} }
11
+ abstract class EmailApi { @Endpoint(POST, '/send', WRITE, CLOUDTASKS) sendEmail(r: SendEmailRequest): Promise<void> {…} }
12
12
 
13
13
  // build the client once (sync); 'email-svc' is the callee's Cloud Run service name
14
14
  const emailTasks = factory.createPubSubClient(EmailApi, new TaskClientConfig('email-svc'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpieces/cloudtasks-client",
3
- "version": "0.4.794",
3
+ "version": "0.4.796",
4
4
  "description": "Cloud Tasks enqueue client generated from a shared @PubSub API contract (twin of http-client)",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -23,9 +23,9 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@webpieces/core-context": "0.4.794",
27
- "@webpieces/core-util": "0.4.794",
28
- "@webpieces/gcp-identity": "0.4.794",
26
+ "@webpieces/core-context": "0.4.796",
27
+ "@webpieces/core-util": "0.4.796",
28
+ "@webpieces/gcp-identity": "0.4.796",
29
29
  "@google-cloud/tasks": "5.5.2",
30
30
  "inversify": "7.10.4",
31
31
  "reflect-metadata": "0.2.2"