clarifai-web-grpc 1.0.3 → 1.1.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/.eslintrc.yml +12 -0
- 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} +0 -2
- package/dist/cjs/index.js +11 -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 +12 -0
- package/dist/cjs/resources.js +47 -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 +5 -0
- package/dist/{index.js → esm/index.js} +1 -3
- 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 +12 -0
- package/dist/esm/resources.js +11 -0
- package/dist/{service.js → esm/service.d.ts} +0 -0
- package/dist/esm/service.js +1 -0
- package/index.ts +1 -3
- package/package.json +17 -4
- package/resources.ts +14 -0
- package/tests/basic.test.ts +32 -5
- package/tests/helpers.test.ts +47 -0
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +1 -1
- package/dist/resources.d.ts +0 -1
- package/dist/resources.js +0 -1
package/.eslintrc.yml
ADDED
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.
|
|
1
|
+
## [1.1.1](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.0...v1.1.1) (2022-01-27)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* re-export
|
|
6
|
+
* use eslint. change re-export syntax to appease typescript compiler ([8992d6c](https://github.com/Clarifai/clarifai-web-grpc/commit/8992d6ce693f074661b2d6238490c315b430427b))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|