clarifai-web-grpc 1.1.6 → 1.1.7
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 +0 -2
- package/CHANGELOG.md +3 -2
- package/package.json +2 -1
- package/tsconfig.json +1 -0
- package/.husky/pre-commit +0 -4
- package/.mocharc.yml +0 -5
- package/tests/basic.test.ts +0 -15
- package/tests/helpers.test.ts +0 -31
package/.github/workflows/ci.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
## [1.1.
|
|
1
|
+
## [1.1.7](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.6...v1.1.7) (2022-02-04)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* ci process ([ba35822](https://github.com/Clarifai/clarifai-web-grpc/commit/ba35822346bf70e0d7549e77a44f299a123d524c))
|
|
7
|
+
* make it a module ([0238835](https://github.com/Clarifai/clarifai-web-grpc/commit/02388359e195b4180fbd3ae81c146da25b61631b))
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
package/.husky/pre-commit
DELETED
package/.mocharc.yml
DELETED
package/tests/basic.test.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { describe, it } from 'mocha'
|
|
2
|
-
import { expect } from 'chai'
|
|
3
|
-
import { ClarifaiStub } from '../src/index'
|
|
4
|
-
|
|
5
|
-
describe('Client Stub', () => {
|
|
6
|
-
it('works', () => {
|
|
7
|
-
const client = ClarifaiStub.grpc()
|
|
8
|
-
expect(client.hostname_).to.equal('api-grpc-web.clarifai.com')
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
it('allows custom hostname', () => {
|
|
12
|
-
const client = ClarifaiStub.grpc('api-dev.clarifai.com')
|
|
13
|
-
expect(client.hostname_).to.equal('api-dev.clarifai.com')
|
|
14
|
-
})
|
|
15
|
-
})
|
package/tests/helpers.test.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { describe, it } from 'mocha'
|
|
2
|
-
import { expect } from 'chai'
|
|
3
|
-
import * as Resources from '../src/resources'
|
|
4
|
-
|
|
5
|
-
describe('Resources/Helpers', () => {
|
|
6
|
-
it('exports various google-protobuf & grpc-web helper classes', () => {
|
|
7
|
-
expect(Resources.Any).to.be.instanceOf(Function)
|
|
8
|
-
expect(Resources.Api).to.be.instanceOf(Function)
|
|
9
|
-
expect(Resources.Duration).to.be.instanceOf(Function)
|
|
10
|
-
expect(Resources.Empty).to.be.instanceOf(Function)
|
|
11
|
-
expect(Resources.Struct).to.be.instanceOf(Function)
|
|
12
|
-
expect(Resources.Timestamp).to.be.instanceOf(Function)
|
|
13
|
-
expect(Resources.Type).to.be.instanceOf(Function)
|
|
14
|
-
expect(Resources.Field).to.be.instanceOf(Function)
|
|
15
|
-
expect(Resources.Enum).to.be.instanceOf(Function)
|
|
16
|
-
expect(Resources.EnumValue).to.be.instanceOf(Function)
|
|
17
|
-
expect(Resources.Option).to.be.instanceOf(Function)
|
|
18
|
-
expect(Resources.DoubleValue).to.be.instanceOf(Function)
|
|
19
|
-
expect(Resources.FloatValue).to.be.instanceOf(Function)
|
|
20
|
-
expect(Resources.Int64Value).to.be.instanceOf(Function)
|
|
21
|
-
expect(Resources.UInt64Value).to.be.instanceOf(Function)
|
|
22
|
-
expect(Resources.Int32Value).to.be.instanceOf(Function)
|
|
23
|
-
expect(Resources.UInt32Value).to.be.instanceOf(Function)
|
|
24
|
-
expect(Resources.BoolValue).to.be.instanceOf(Function)
|
|
25
|
-
expect(Resources.StringValue).to.be.instanceOf(Function)
|
|
26
|
-
expect(Resources.BytesValue).to.be.instanceOf(Function)
|
|
27
|
-
expect(Resources.BaseResponse).to.be.instanceOf(Function)
|
|
28
|
-
expect(Resources.Status).to.be.instanceOf(Function)
|
|
29
|
-
expect(Resources.StatusCode).to.be.instanceOf(Object)
|
|
30
|
-
})
|
|
31
|
-
})
|