clarifai-web-grpc 1.1.4 → 1.1.8
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 +10 -3
- package/dist/{google → cjs/google}/api/annotations_pb.d.ts +0 -0
- package/dist/{google → cjs/google}/api/annotations_pb.js +0 -0
- package/dist/{google → cjs/google}/api/http_pb.d.ts +0 -0
- package/dist/{google → cjs/google}/api/http_pb.js +0 -0
- package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- package/dist/{index.js → cjs/index.js} +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/resources_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/resources_pb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/serviceServiceClientPb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/serviceServiceClientPb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/service_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/service_pb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/status/status_code_pb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/status/status_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/status/status_pb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/utils/extensions_pb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/api/utils/test_proto_pb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/auth/scope/scope_pb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/auth/types/types_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/auth/types/types_pb.js +0 -0
- package/dist/{proto → cjs/proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
- package/dist/{proto → cjs/proto}/clarifai/auth/util/extension_pb.js +0 -0
- package/dist/{resources.d.ts → cjs/resources.d.ts} +1 -1
- package/dist/{resources.js → cjs/resources.js} +0 -0
- package/dist/{service.d.ts → cjs/service.d.ts} +0 -0
- package/dist/{service.js → cjs/service.js} +0 -0
- package/{lib → dist/esm}/google/api/annotations_pb.d.ts +0 -0
- package/{lib → dist/esm}/google/api/annotations_pb.js +0 -0
- package/{lib → dist/esm}/google/api/http_pb.d.ts +0 -0
- package/{lib → dist/esm}/google/api/http_pb.js +0 -0
- package/{lib → dist/esm}/index.d.ts +0 -0
- package/{lib → dist/esm}/index.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/resources_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/resources_pb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/serviceServiceClientPb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/service_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/service_pb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/status/status_code_pb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/status/status_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/status/status_pb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/utils/extensions_pb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/api/utils/test_proto_pb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/auth/scope/scope_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/auth/scope/scope_pb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/auth/types/types_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/auth/types/types_pb.js +0 -0
- package/{lib → dist/esm}/proto/clarifai/auth/util/extension_pb.d.ts +0 -0
- package/{lib → dist/esm}/proto/clarifai/auth/util/extension_pb.js +0 -0
- package/{lib → dist/esm}/resources.d.ts +1 -1
- package/{lib → dist/esm}/resources.js +0 -0
- package/{lib → dist/esm}/service.d.ts +0 -0
- package/{lib → dist/esm}/service.js +0 -0
- package/{src/google → google}/api/annotations_grpc_pb.js +0 -0
- package/{src/google → google}/api/annotations_pb.js +0 -0
- package/{src/google → google}/api/http_grpc_pb.js +0 -0
- package/{src/google → google}/api/http_pb.js +0 -0
- package/package.json +12 -18
- package/{src/proto → proto}/clarifai/api/resources_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/resources_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/serviceServiceClientPb.ts +0 -0
- package/{src/proto → proto}/clarifai/api/service_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/service_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_code_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/utils/extensions_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/auth/scope/scope_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/types/types_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/auth/types/types_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
- package/{src/proto → 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 +5 -2
- package/dist/google/api/annotations_grpc_pb.d.ts +0 -0
- package/dist/google/api/annotations_grpc_pb.js +0 -2
- package/dist/google/api/http_grpc_pb.d.ts +0 -0
- package/dist/google/api/http_grpc_pb.js +0 -2
- package/lib/google/api/annotations_grpc_pb.d.ts +0 -0
- package/lib/google/api/annotations_grpc_pb.js +0 -2
- package/lib/google/api/http_grpc_pb.d.ts +0 -0
- package/lib/google/api/http_grpc_pb.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
## [1.1.
|
|
1
|
+
## [1.1.8](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.7...v1.1.8) (2022-02-04)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Reverts
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* Revert "fix: move stuff to src, split dist/esm to lib for easier entry references" ([4b45e0a](https://github.com/Clarifai/clarifai-web-grpc/commit/4b45e0afd0085c289a8b61ec130f3e5bbf8a7375))
|
|
7
|
+
* Revert "fix: fix the paths in the lint cmd" ([146aa24](https://github.com/Clarifai/clarifai-web-grpc/commit/146aa24d1469b1bd24db427e3c1ce808715c3ce9))
|
|
8
|
+
* Revert "fix: improve exports" ([8d4afaa](https://github.com/Clarifai/clarifai-web-grpc/commit/8d4afaa4270b3cfe8f1d42376611f4cb2285e417))
|
|
9
|
+
* Revert "fix: remove CJS and clean up package resolution" ([3275dc3](https://github.com/Clarifai/clarifai-web-grpc/commit/3275dc3e3089a196358dd8ba30f3f8380cb5624f))
|
|
10
|
+
* Revert "fix: fix typesVersions filesystem shimming" ([fa4bc4f](https://github.com/Clarifai/clarifai-web-grpc/commit/fa4bc4f5a48766abe51ad193118803b95d808225))
|
|
11
|
+
* Revert "fix: make it a module" ([4900de9](https://github.com/Clarifai/clarifai-web-grpc/commit/4900de9f5ef2a6ba40ead5fe3d177744963a685d))
|
|
12
|
+
* Revert "fix: ci process" ([253f652](https://github.com/Clarifai/clarifai-web-grpc/commit/253f652c43cb603d63f00b6bd9156b2c6cbe2d53))
|
|
13
|
+
* Revert "fix: use eslint. change re-export syntax to appease typescript compiler" ([aa2f82b](https://github.com/Clarifai/clarifai-web-grpc/commit/aa2f82b8cbfb61a2c1622c9edd82b9479d68083b))
|
|
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
|
|
10
|
+
export { 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
|
|
@@ -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
|
|
10
|
+
export { 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
|
package/package.json
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clarifai-web-grpc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "The official Clarifai gRPC-web client",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "
|
|
7
|
-
"types": "
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"import": "./
|
|
11
|
-
"require": "./dist/index.js"
|
|
10
|
+
"import": "./dist/esm/index.js",
|
|
11
|
+
"require": "./dist/cjs/index.js"
|
|
12
12
|
},
|
|
13
13
|
"./resources": {
|
|
14
|
-
"import": "./
|
|
15
|
-
"require": "./dist/resources.js"
|
|
14
|
+
"import": "./dist/esm/resources.js",
|
|
15
|
+
"require": "./dist/cjs/resources.js"
|
|
16
16
|
},
|
|
17
17
|
"./service": {
|
|
18
|
-
"import": "./
|
|
19
|
-
"require": "./dist/service.js"
|
|
20
|
-
},
|
|
21
|
-
"./lib/resources": {
|
|
22
|
-
"import": "./lib/resources.js"
|
|
23
|
-
},
|
|
24
|
-
"./lib/service": {
|
|
25
|
-
"import": "./lib/service.js"
|
|
18
|
+
"import": "./dist/esm/service.js",
|
|
19
|
+
"require": "./dist/cjs/service.js"
|
|
26
20
|
}
|
|
27
21
|
},
|
|
28
22
|
"repository": "https://github.com/Clarifai/clarifai-web-grpc",
|
|
@@ -31,8 +25,8 @@
|
|
|
31
25
|
"keywords": [],
|
|
32
26
|
"scripts": {
|
|
33
27
|
"test": "mocha",
|
|
34
|
-
"lint": "eslint
|
|
35
|
-
"clean": "rm -rf dist
|
|
28
|
+
"lint": "eslint index.ts resources.ts service.ts",
|
|
29
|
+
"clean": "rm -rf dist clarifai-web-grpc-*.tgz",
|
|
36
30
|
"typecheck": "tsc --pretty --noEmit",
|
|
37
31
|
"build:cjs": "tsc -b tsconfig.cjs.json",
|
|
38
32
|
"build:esm": "tsc -b",
|
|
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 '../
|
|
4
|
-
import { ClarifaiStub as StubCJS } from '../dist/index'
|
|
5
|
-
import { ClarifaiStub as StubESM } from '../
|
|
3
|
+
import { ClarifaiStub as StubSRC } from '../index'
|
|
4
|
+
import { ClarifaiStub as StubCJS } from '../dist/cjs/index'
|
|
5
|
+
import { ClarifaiStub as StubESM } from '../dist/esm/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 '../
|
|
4
|
-
import * as ResourcesCJS from '../dist/resources'
|
|
5
|
-
import * as ResourcesESM from '../
|
|
3
|
+
import * as ResourcesSRC from '../resources'
|
|
4
|
+
import * as ResourcesCJS from '../dist/cjs/resources'
|
|
5
|
+
import * as ResourcesESM from '../dist/esm/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,11 +5,14 @@
|
|
|
5
5
|
"strict": true,
|
|
6
6
|
"declaration": true,
|
|
7
7
|
"allowJs": true,
|
|
8
|
-
"outDir": "./
|
|
8
|
+
"outDir": "./dist/esm",
|
|
9
9
|
"moduleResolution": "node"
|
|
10
10
|
},
|
|
11
11
|
"include": [
|
|
12
|
-
"./
|
|
12
|
+
"./index.ts",
|
|
13
|
+
"./resources.ts",
|
|
14
|
+
"./service.ts",
|
|
15
|
+
"proto/",
|
|
13
16
|
],
|
|
14
17
|
"exclude": [
|
|
15
18
|
"node_modules"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|