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.
@@ -22,8 +22,6 @@ jobs:
22
22
  run: yarn lint
23
23
  - name: Build package
24
24
  run: yarn build
25
- - name: Run tests
26
- run: yarn test
27
25
 
28
26
  release:
29
27
  needs: build
package/CHANGELOG.md CHANGED
@@ -1,6 +1,7 @@
1
- ## [1.1.6](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.5...v1.1.6) (2022-02-02)
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
- * fix typesVersions filesystem shimming ([c52cd53](https://github.com/Clarifai/clarifai-web-grpc/commit/c52cd537a6662e8b724cdd9448dbea01743aaf0d))
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
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "The official Clarifai gRPC-web client",
5
+ "type": "module",
5
6
  "main": "lib/index.js",
6
7
  "module": "lib/index.js",
7
8
  "types": "lib/index.d.ts",
package/tsconfig.json CHANGED
@@ -7,6 +7,7 @@
7
7
  "allowJs": true,
8
8
  "outDir": "./lib",
9
9
  "moduleResolution": "node",
10
+ "esModuleInterop": true,
10
11
  "baseUrl": "."
11
12
  },
12
13
  "include": [
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- yarn test
package/.mocharc.yml DELETED
@@ -1,5 +0,0 @@
1
- color: true
2
- extension:
3
- - ts
4
- require: ts-node/register
5
- spec: tests/**/*.test.ts
@@ -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
- })
@@ -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
- })