clarifai-web-grpc 1.1.0 → 1.1.4
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 +2 -7
- package/dist/google/api/annotations_grpc_pb.d.ts +0 -0
- package/dist/google/api/annotations_grpc_pb.js +2 -0
- package/dist/{cjs/google → google}/api/annotations_pb.d.ts +0 -0
- package/dist/{cjs/google → google}/api/annotations_pb.js +0 -0
- package/dist/google/api/http_grpc_pb.d.ts +0 -0
- package/dist/google/api/http_grpc_pb.js +2 -0
- package/dist/{cjs/google → google}/api/http_pb.d.ts +0 -0
- package/dist/{cjs/google → google}/api/http_pb.js +0 -0
- package/dist/{cjs/index.d.ts → index.d.ts} +0 -0
- package/dist/{cjs/index.js → index.js} +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/resources_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/resources_pb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/serviceServiceClientPb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/serviceServiceClientPb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/service_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/service_pb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/status/status_code_pb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/status/status_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/status/status_pb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/utils/extensions_pb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/api/utils/test_proto_pb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/auth/scope/scope_pb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/auth/types/types_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/auth/types/types_pb.js +0 -0
- package/dist/{cjs/proto → proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
- package/dist/{cjs/proto → proto}/clarifai/auth/util/extension_pb.js +0 -0
- package/dist/{cjs/resources.d.ts → resources.d.ts} +1 -1
- package/dist/{cjs/resources.js → resources.js} +0 -0
- package/dist/{cjs/service.d.ts → service.d.ts} +0 -0
- package/dist/{cjs/service.js → service.js} +0 -0
- package/lib/google/api/annotations_grpc_pb.d.ts +0 -0
- package/lib/google/api/annotations_grpc_pb.js +2 -0
- package/{dist/esm → lib}/google/api/annotations_pb.d.ts +0 -0
- package/{dist/esm → lib}/google/api/annotations_pb.js +0 -0
- package/lib/google/api/http_grpc_pb.d.ts +0 -0
- package/lib/google/api/http_grpc_pb.js +2 -0
- package/{dist/esm → lib}/google/api/http_pb.d.ts +0 -0
- package/{dist/esm → lib}/google/api/http_pb.js +0 -0
- package/{dist/esm → lib}/index.d.ts +0 -0
- package/{dist/esm → lib}/index.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/resources_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/resources_pb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/serviceServiceClientPb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/service_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/service_pb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/status/status_code_pb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/status/status_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/status/status_pb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/utils/extensions_pb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/api/utils/test_proto_pb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/auth/scope/scope_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/auth/scope/scope_pb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/auth/types/types_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/auth/types/types_pb.js +0 -0
- package/{dist/esm → lib}/proto/clarifai/auth/util/extension_pb.d.ts +0 -0
- package/{dist/esm → lib}/proto/clarifai/auth/util/extension_pb.js +0 -0
- package/{dist/esm → lib}/resources.d.ts +1 -1
- package/{dist/esm → lib}/resources.js +0 -0
- package/{dist/esm → lib}/service.d.ts +0 -0
- package/{dist/esm → lib}/service.js +0 -0
- package/package.json +27 -6
- package/{google → src/google}/api/annotations_grpc_pb.js +0 -0
- package/{google → src/google}/api/annotations_pb.js +0 -0
- package/{google → src/google}/api/http_grpc_pb.js +0 -0
- package/{google → src/google}/api/http_pb.js +0 -0
- package/{proto → src/proto}/clarifai/api/resources_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/api/resources_pb.js +0 -0
- package/{proto → src/proto}/clarifai/api/serviceServiceClientPb.ts +0 -0
- package/{proto → src/proto}/clarifai/api/service_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/api/service_pb.js +0 -0
- package/{proto → src/proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/api/status/status_code_pb.js +0 -0
- package/{proto → src/proto}/clarifai/api/status/status_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/api/status/status_pb.js +0 -0
- package/{proto → src/proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/api/utils/extensions_pb.js +0 -0
- package/{proto → src/proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/api/utils/test_proto_pb.js +0 -0
- package/{proto → src/proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/auth/scope/scope_pb.js +0 -0
- package/{proto → src/proto}/clarifai/auth/types/types_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/auth/types/types_pb.js +0 -0
- package/{proto → src/proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
- package/{proto → src/proto}/clarifai/auth/util/extension_pb.js +0 -0
- package/tests/basic.test.ts +3 -3
- package/tests/helpers.test.ts +3 -3
- package/tsconfig.cjs.json +1 -1
- package/tsconfig.json +2 -5
- package/index.ts +0 -9
- package/resources.ts +0 -15
- package/service.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## [1.1.4](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.3...v1.1.4) (2022-01-28)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* move helpers from index to resources ([e3b6cf1](https://github.com/Clarifai/clarifai-web-grpc/commit/e3b6cf1bcb275c237246382e2f5e2e4b2905ae8e))
|
|
6
|
+
* improve exports ([74ec444](https://github.com/Clarifai/clarifai-web-grpc/commit/74ec444367c61c26a4ab9fd884cb295bbb124bf6))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,6 +7,6 @@ export { Struct } from 'google-protobuf/google/protobuf/struct_pb';
|
|
|
7
7
|
export { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb';
|
|
8
8
|
export { Type, Field, Enum, EnumValue, Option } from 'google-protobuf/google/protobuf/type_pb';
|
|
9
9
|
export { DoubleValue, FloatValue, Int64Value, UInt64Value, Int32Value, UInt32Value, BoolValue, StringValue, BytesValue } from 'google-protobuf/google/protobuf/wrappers_pb';
|
|
10
|
-
export { Error, Metadata } from 'grpc-web';
|
|
10
|
+
export type { Error, Metadata } from 'grpc-web';
|
|
11
11
|
export { Status, BaseResponse } from './proto/clarifai/api/status/status_pb';
|
|
12
12
|
export { StatusCode } from './proto/clarifai/api/status/status_code_pb';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,6 +7,6 @@ export { Struct } from 'google-protobuf/google/protobuf/struct_pb';
|
|
|
7
7
|
export { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb';
|
|
8
8
|
export { Type, Field, Enum, EnumValue, Option } from 'google-protobuf/google/protobuf/type_pb';
|
|
9
9
|
export { DoubleValue, FloatValue, Int64Value, UInt64Value, Int32Value, UInt32Value, BoolValue, StringValue, BytesValue } from 'google-protobuf/google/protobuf/wrappers_pb';
|
|
10
|
-
export { Error, Metadata } from 'grpc-web';
|
|
10
|
+
export type { Error, Metadata } from 'grpc-web';
|
|
11
11
|
export { Status, BaseResponse } from './proto/clarifai/api/status/status_pb';
|
|
12
12
|
export { StatusCode } from './proto/clarifai/api/status/status_code_pb';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,18 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clarifai-web-grpc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "The official Clarifai gRPC-web client",
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"module": "
|
|
7
|
-
"types": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./lib/index.js",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./resources": {
|
|
14
|
+
"import": "./lib/resources.js",
|
|
15
|
+
"require": "./dist/resources.js"
|
|
16
|
+
},
|
|
17
|
+
"./service": {
|
|
18
|
+
"import": "./lib/service.js",
|
|
19
|
+
"require": "./dist/service.js"
|
|
20
|
+
},
|
|
21
|
+
"./lib/resources": {
|
|
22
|
+
"import": "./lib/resources.js"
|
|
23
|
+
},
|
|
24
|
+
"./lib/service": {
|
|
25
|
+
"import": "./lib/service.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
8
28
|
"repository": "https://github.com/Clarifai/clarifai-web-grpc",
|
|
9
29
|
"author": "Clarifai Inc.",
|
|
10
30
|
"license": "Apache-2.0",
|
|
11
31
|
"keywords": [],
|
|
12
32
|
"scripts": {
|
|
13
33
|
"test": "mocha",
|
|
14
|
-
"lint": "
|
|
15
|
-
"clean": "rm -rf dist clarifai-web-grpc-*.tgz",
|
|
34
|
+
"lint": "eslint ./src/index.ts ./src/resources.ts ./src/service.ts",
|
|
35
|
+
"clean": "rm -rf dist lib clarifai-web-grpc-*.tgz",
|
|
36
|
+
"typecheck": "tsc --pretty --noEmit",
|
|
16
37
|
"build:cjs": "tsc -b tsconfig.cjs.json",
|
|
17
38
|
"build:esm": "tsc -b",
|
|
18
39
|
"build": "yarn build:esm && yarn build:cjs",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/tests/basic.test.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { describe, it } from 'mocha'
|
|
2
2
|
import { expect } from 'chai'
|
|
3
|
-
import { ClarifaiStub as StubSRC } from '../index'
|
|
4
|
-
import { ClarifaiStub as StubCJS } from '../dist/
|
|
5
|
-
import { ClarifaiStub as StubESM } from '../
|
|
3
|
+
import { ClarifaiStub as StubSRC } from '../src/index'
|
|
4
|
+
import { ClarifaiStub as StubCJS } from '../dist/index'
|
|
5
|
+
import { ClarifaiStub as StubESM } from '../lib/index'
|
|
6
6
|
|
|
7
7
|
describe('Client Stub (src)', () => {
|
|
8
8
|
it('works', () => {
|
package/tests/helpers.test.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { describe, it } from 'mocha'
|
|
2
2
|
import { expect } from 'chai'
|
|
3
|
-
import * as ResourcesSRC from '../resources'
|
|
4
|
-
import * as ResourcesCJS from '../dist/
|
|
5
|
-
import * as ResourcesESM from '../
|
|
3
|
+
import * as ResourcesSRC from '../src/resources'
|
|
4
|
+
import * as ResourcesCJS from '../dist/resources'
|
|
5
|
+
import * as ResourcesESM from '../lib/resources'
|
|
6
6
|
|
|
7
7
|
function verifyInterface (modInterface: Record<string, unknown>) {
|
|
8
8
|
expect(modInterface.Any).to.be.instanceOf(Function)
|
package/tsconfig.cjs.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -5,14 +5,11 @@
|
|
|
5
5
|
"strict": true,
|
|
6
6
|
"declaration": true,
|
|
7
7
|
"allowJs": true,
|
|
8
|
-
"outDir": "./
|
|
8
|
+
"outDir": "./lib",
|
|
9
9
|
"moduleResolution": "node"
|
|
10
10
|
},
|
|
11
11
|
"include": [
|
|
12
|
-
"./
|
|
13
|
-
"./resources.ts",
|
|
14
|
-
"./service.ts",
|
|
15
|
-
"proto/",
|
|
12
|
+
"./src",
|
|
16
13
|
],
|
|
17
14
|
"exclude": [
|
|
18
15
|
"node_modules"
|
package/index.ts
DELETED
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 { 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'
|