clarifai-web-grpc 1.1.1 → 1.1.2

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.1.1](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.0...v1.1.1) (2022-01-27)
1
+ ## [1.1.2](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.1...v1.1.2) (2022-01-28)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * use eslint. change re-export syntax to appease typescript compiler ([8992d6c](https://github.com/Clarifai/clarifai-web-grpc/commit/8992d6ce693f074661b2d6238490c315b430427b))
6
+ * remove source files from packages, and properly map entrypoints ([f66bab3](https://github.com/Clarifai/clarifai-web-grpc/commit/f66bab30da9c998881d61c7fa6bfce23e1ffa454))
package/package.json CHANGED
@@ -1,10 +1,24 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/esm/index.js",
11
+ "require": "./dist/cjs/index.js"
12
+ },
13
+ "./resources": {
14
+ "import": "./dist/esm/resources.js",
15
+ "require": "./dist/cjs/resources.js"
16
+ },
17
+ "./service": {
18
+ "import": "./dist/esm/service.js",
19
+ "require": "./dist/cjs/service.js"
20
+ }
21
+ },
8
22
  "repository": "https://github.com/Clarifai/clarifai-web-grpc",
9
23
  "author": "Clarifai Inc.",
10
24
  "license": "Apache-2.0",
package/index.ts DELETED
@@ -1,9 +0,0 @@
1
- import { V2Client } from './proto/clarifai/api/serviceServiceClientPb'
2
-
3
- export class ClarifaiStub {
4
- static grpc (hostname = 'api-grpc-web.clarifai.com') {
5
- return new V2Client(hostname)
6
- }
7
- }
8
-
9
- export { V2Client }
package/resources.ts DELETED
@@ -1,15 +0,0 @@
1
- export * from './proto/clarifai/api/resources_pb'
2
- export { Any } from 'google-protobuf/google/protobuf/any_pb'
3
- export { Api } from 'google-protobuf/google/protobuf/api_pb'
4
- export { Duration } from 'google-protobuf/google/protobuf/duration_pb'
5
- export { Empty } from 'google-protobuf/google/protobuf/empty_pb'
6
- export { Struct } from 'google-protobuf/google/protobuf/struct_pb'
7
- export { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb'
8
- export { Type, Field, Enum, EnumValue, Option } from 'google-protobuf/google/protobuf/type_pb'
9
- export {
10
- DoubleValue, FloatValue, Int64Value, UInt64Value, Int32Value, UInt32Value,
11
- BoolValue, StringValue, BytesValue
12
- } from 'google-protobuf/google/protobuf/wrappers_pb'
13
- export type { Error, Metadata } from 'grpc-web'
14
- export { Status, BaseResponse } from './proto/clarifai/api/status/status_pb'
15
- export { StatusCode } from './proto/clarifai/api/status/status_code_pb'
package/service.ts DELETED
@@ -1 +0,0 @@
1
- export * from './proto/clarifai/api/service_pb'