clarifai-web-grpc 1.0.0 → 1.0.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,6 +1,6 @@
1
- # 1.0.0 (2022-01-05)
1
+ ## [1.0.1](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.0.0...v1.0.1) (2022-01-05)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * add GITHUB_TOKEN to workflow ([a162ad1](https://github.com/Clarifai/clarifai-web-grpc/commit/a162ad1ad8d7a0c5559a25cba62ef3190833d256))
6
+ * re-export grpc-web error type for ease-of-use ([faf6d1a](https://github.com/Clarifai/clarifai-web-grpc/commit/faf6d1a573c943d0158013519ef0885a260e39e3))
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The official Clarifai gRPC client for use in client browser applications.
4
4
 
5
+ [![NPM](https://nodei.co/npm/clarifai-web-grpc.png?downloads=true)](https://www.npmjs.com/package/clarifai-web-grpc)
6
+
5
7
  ## Installation
6
8
 
7
9
  ```bash
@@ -12,8 +14,8 @@ yarn add clarifai-web-grpc
12
14
 
13
15
  ```ts
14
16
  import { ClarifaiStub } from 'clarifai-web-grpc'
15
- import { App } from './resources'
16
- import { PostAppsRequest } from './service'
17
+ import { App } from 'clarifai-web-grpc/resources'
18
+ import { PostAppsRequest } from 'clarifai-web-grpc/service'
17
19
 
18
20
  const client = ClarifaiStub.grpc()
19
21
  // use client to create an App
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export declare class ClarifaiStub {
3
3
  static grpc(hostname?: string): V2Client;
4
4
  }
5
5
  export { V2Client };
6
+ export { Error } from 'grpc-web';
package/index.ts CHANGED
@@ -7,3 +7,5 @@ export class ClarifaiStub {
7
7
  }
8
8
 
9
9
  export { V2Client }
10
+
11
+ export { Error } from 'grpc-web'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",