clarifai-web-grpc 1.0.1 → 1.0.5
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/.github/workflows/ci.yml +4 -2
- package/CHANGELOG.md +2 -2
- 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} +2 -1
- package/dist/cjs/index.js +15 -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/cjs/proto/clarifai/api/serviceServiceClientPb.js +908 -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/cjs/resources.d.ts +2 -0
- package/dist/cjs/resources.js +16 -0
- package/dist/{service.d.ts → cjs/service.d.ts} +0 -0
- package/dist/cjs/service.js +13 -0
- package/dist/esm/google/api/annotations_pb.d.ts +1 -0
- package/dist/esm/google/api/annotations_pb.js +32 -0
- package/dist/esm/google/api/http_pb.d.ts +1 -0
- package/dist/esm/google/api/http_pb.js +813 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/proto/clarifai/api/resources_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +32957 -0
- package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +275 -0
- package/dist/{proto → esm/proto}/clarifai/api/serviceServiceClientPb.js +0 -0
- package/dist/esm/proto/clarifai/api/service_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +38791 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +312 -0
- package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/status/status_pb.js +473 -0
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +52 -0
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +521 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +294 -0
- package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +26 -0
- package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +80 -0
- package/dist/esm/resources.d.ts +2 -0
- package/dist/esm/resources.js +2 -0
- package/dist/{service.js → esm/service.d.ts} +0 -0
- package/dist/esm/service.js +1 -0
- package/index.ts +3 -3
- package/package.json +9 -4
- package/resources.ts +1 -0
- package/tests/basic.test.ts +32 -5
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +1 -1
- package/dist/index.js +0 -7
- package/dist/resources.d.ts +0 -1
- package/dist/resources.js +0 -1
package/.github/workflows/ci.yml
CHANGED
|
@@ -18,10 +18,12 @@ jobs:
|
|
|
18
18
|
node-version: 16
|
|
19
19
|
- name: Install deps
|
|
20
20
|
run: yarn install
|
|
21
|
-
- name:
|
|
22
|
-
run: yarn
|
|
21
|
+
- name: Lint code
|
|
22
|
+
run: yarn lint
|
|
23
23
|
- name: Build package
|
|
24
24
|
run: yarn build
|
|
25
|
+
- name: Run tests
|
|
26
|
+
run: yarn test
|
|
25
27
|
|
|
26
28
|
release:
|
|
27
29
|
needs: build
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.0.
|
|
1
|
+
## [1.0.5](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.0.4...v1.0.5) (2022-01-20)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* re-export
|
|
6
|
+
* correct default host. re-export struct for convenience ([c71e83f](https://github.com/Clarifai/clarifai-web-grpc/commit/c71e83f0f41e4c57274676bf9e90eea6f56ff850))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,4 +3,5 @@ export declare class ClarifaiStub {
|
|
|
3
3
|
static grpc(hostname?: string): V2Client;
|
|
4
4
|
}
|
|
5
5
|
export { V2Client };
|
|
6
|
-
export { Error } from 'grpc-web';
|
|
6
|
+
export { Error, Metadata, ClientReadableStream } from 'grpc-web';
|
|
7
|
+
export { BaseResponse } from './proto/clarifai/api/status/status_pb';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseResponse = exports.ClientReadableStream = exports.V2Client = exports.ClarifaiStub = void 0;
|
|
4
|
+
const serviceServiceClientPb_1 = require("./proto/clarifai/api/serviceServiceClientPb");
|
|
5
|
+
Object.defineProperty(exports, "V2Client", { enumerable: true, get: function () { return serviceServiceClientPb_1.V2Client; } });
|
|
6
|
+
class ClarifaiStub {
|
|
7
|
+
static grpc(hostname = 'api-grpc-web.clarifai.com') {
|
|
8
|
+
return new serviceServiceClientPb_1.V2Client(hostname);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ClarifaiStub = ClarifaiStub;
|
|
12
|
+
var grpc_web_1 = require("grpc-web");
|
|
13
|
+
Object.defineProperty(exports, "ClientReadableStream", { enumerable: true, get: function () { return grpc_web_1.ClientReadableStream; } });
|
|
14
|
+
var status_pb_1 = require("./proto/clarifai/api/status/status_pb");
|
|
15
|
+
Object.defineProperty(exports, "BaseResponse", { enumerable: true, get: function () { return status_pb_1.BaseResponse; } });
|
|
File without changes
|
|
File without changes
|
|
File without changes
|