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.
Files changed (97) hide show
  1. package/CHANGELOG.md +10 -3
  2. package/dist/{google → cjs/google}/api/annotations_pb.d.ts +0 -0
  3. package/dist/{google → cjs/google}/api/annotations_pb.js +0 -0
  4. package/dist/{google → cjs/google}/api/http_pb.d.ts +0 -0
  5. package/dist/{google → cjs/google}/api/http_pb.js +0 -0
  6. package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  7. package/dist/{index.js → cjs/index.js} +0 -0
  8. package/dist/{proto → cjs/proto}/clarifai/api/resources_pb.d.ts +0 -0
  9. package/dist/{proto → cjs/proto}/clarifai/api/resources_pb.js +0 -0
  10. package/dist/{proto → cjs/proto}/clarifai/api/serviceServiceClientPb.d.ts +0 -0
  11. package/dist/{proto → cjs/proto}/clarifai/api/serviceServiceClientPb.js +0 -0
  12. package/dist/{proto → cjs/proto}/clarifai/api/service_pb.d.ts +0 -0
  13. package/dist/{proto → cjs/proto}/clarifai/api/service_pb.js +0 -0
  14. package/dist/{proto → cjs/proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
  15. package/dist/{proto → cjs/proto}/clarifai/api/status/status_code_pb.js +0 -0
  16. package/dist/{proto → cjs/proto}/clarifai/api/status/status_pb.d.ts +0 -0
  17. package/dist/{proto → cjs/proto}/clarifai/api/status/status_pb.js +0 -0
  18. package/dist/{proto → cjs/proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
  19. package/dist/{proto → cjs/proto}/clarifai/api/utils/extensions_pb.js +0 -0
  20. package/dist/{proto → cjs/proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
  21. package/dist/{proto → cjs/proto}/clarifai/api/utils/test_proto_pb.js +0 -0
  22. package/dist/{proto → cjs/proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
  23. package/dist/{proto → cjs/proto}/clarifai/auth/scope/scope_pb.js +0 -0
  24. package/dist/{proto → cjs/proto}/clarifai/auth/types/types_pb.d.ts +0 -0
  25. package/dist/{proto → cjs/proto}/clarifai/auth/types/types_pb.js +0 -0
  26. package/dist/{proto → cjs/proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
  27. package/dist/{proto → cjs/proto}/clarifai/auth/util/extension_pb.js +0 -0
  28. package/dist/{resources.d.ts → cjs/resources.d.ts} +1 -1
  29. package/dist/{resources.js → cjs/resources.js} +0 -0
  30. package/dist/{service.d.ts → cjs/service.d.ts} +0 -0
  31. package/dist/{service.js → cjs/service.js} +0 -0
  32. package/{lib → dist/esm}/google/api/annotations_pb.d.ts +0 -0
  33. package/{lib → dist/esm}/google/api/annotations_pb.js +0 -0
  34. package/{lib → dist/esm}/google/api/http_pb.d.ts +0 -0
  35. package/{lib → dist/esm}/google/api/http_pb.js +0 -0
  36. package/{lib → dist/esm}/index.d.ts +0 -0
  37. package/{lib → dist/esm}/index.js +0 -0
  38. package/{lib → dist/esm}/proto/clarifai/api/resources_pb.d.ts +0 -0
  39. package/{lib → dist/esm}/proto/clarifai/api/resources_pb.js +0 -0
  40. package/{lib → dist/esm}/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -0
  41. package/{lib → dist/esm}/proto/clarifai/api/serviceServiceClientPb.js +0 -0
  42. package/{lib → dist/esm}/proto/clarifai/api/service_pb.d.ts +0 -0
  43. package/{lib → dist/esm}/proto/clarifai/api/service_pb.js +0 -0
  44. package/{lib → dist/esm}/proto/clarifai/api/status/status_code_pb.d.ts +0 -0
  45. package/{lib → dist/esm}/proto/clarifai/api/status/status_code_pb.js +0 -0
  46. package/{lib → dist/esm}/proto/clarifai/api/status/status_pb.d.ts +0 -0
  47. package/{lib → dist/esm}/proto/clarifai/api/status/status_pb.js +0 -0
  48. package/{lib → dist/esm}/proto/clarifai/api/utils/extensions_pb.d.ts +0 -0
  49. package/{lib → dist/esm}/proto/clarifai/api/utils/extensions_pb.js +0 -0
  50. package/{lib → dist/esm}/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -0
  51. package/{lib → dist/esm}/proto/clarifai/api/utils/test_proto_pb.js +0 -0
  52. package/{lib → dist/esm}/proto/clarifai/auth/scope/scope_pb.d.ts +0 -0
  53. package/{lib → dist/esm}/proto/clarifai/auth/scope/scope_pb.js +0 -0
  54. package/{lib → dist/esm}/proto/clarifai/auth/types/types_pb.d.ts +0 -0
  55. package/{lib → dist/esm}/proto/clarifai/auth/types/types_pb.js +0 -0
  56. package/{lib → dist/esm}/proto/clarifai/auth/util/extension_pb.d.ts +0 -0
  57. package/{lib → dist/esm}/proto/clarifai/auth/util/extension_pb.js +0 -0
  58. package/{lib → dist/esm}/resources.d.ts +1 -1
  59. package/{lib → dist/esm}/resources.js +0 -0
  60. package/{lib → dist/esm}/service.d.ts +0 -0
  61. package/{lib → dist/esm}/service.js +0 -0
  62. package/{src/google → google}/api/annotations_grpc_pb.js +0 -0
  63. package/{src/google → google}/api/annotations_pb.js +0 -0
  64. package/{src/google → google}/api/http_grpc_pb.js +0 -0
  65. package/{src/google → google}/api/http_pb.js +0 -0
  66. package/package.json +12 -18
  67. package/{src/proto → proto}/clarifai/api/resources_pb.d.ts +0 -0
  68. package/{src/proto → proto}/clarifai/api/resources_pb.js +0 -0
  69. package/{src/proto → proto}/clarifai/api/serviceServiceClientPb.ts +0 -0
  70. package/{src/proto → proto}/clarifai/api/service_pb.d.ts +0 -0
  71. package/{src/proto → proto}/clarifai/api/service_pb.js +0 -0
  72. package/{src/proto → proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
  73. package/{src/proto → proto}/clarifai/api/status/status_code_pb.js +0 -0
  74. package/{src/proto → proto}/clarifai/api/status/status_pb.d.ts +0 -0
  75. package/{src/proto → proto}/clarifai/api/status/status_pb.js +0 -0
  76. package/{src/proto → proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
  77. package/{src/proto → proto}/clarifai/api/utils/extensions_pb.js +0 -0
  78. package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
  79. package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.js +0 -0
  80. package/{src/proto → proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
  81. package/{src/proto → proto}/clarifai/auth/scope/scope_pb.js +0 -0
  82. package/{src/proto → proto}/clarifai/auth/types/types_pb.d.ts +0 -0
  83. package/{src/proto → proto}/clarifai/auth/types/types_pb.js +0 -0
  84. package/{src/proto → proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
  85. package/{src/proto → proto}/clarifai/auth/util/extension_pb.js +0 -0
  86. package/tests/basic.test.ts +3 -3
  87. package/tests/helpers.test.ts +3 -3
  88. package/tsconfig.cjs.json +1 -1
  89. package/tsconfig.json +5 -2
  90. package/dist/google/api/annotations_grpc_pb.d.ts +0 -0
  91. package/dist/google/api/annotations_grpc_pb.js +0 -2
  92. package/dist/google/api/http_grpc_pb.d.ts +0 -0
  93. package/dist/google/api/http_grpc_pb.js +0 -2
  94. package/lib/google/api/annotations_grpc_pb.d.ts +0 -0
  95. package/lib/google/api/annotations_grpc_pb.js +0 -2
  96. package/lib/google/api/http_grpc_pb.d.ts +0 -0
  97. package/lib/google/api/http_grpc_pb.js +0 -2
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
- ## [1.1.4](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.3...v1.1.4) (2022-01-28)
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
- ### Bug Fixes
4
+ ### Reverts
5
5
 
6
- * improve exports ([74ec444](https://github.com/Clarifai/clarifai-web-grpc/commit/74ec444367c61c26a4ab9fd884cb295bbb124bf6))
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
@@ -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 type { Error, Metadata } from 'grpc-web';
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
@@ -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 type { Error, Metadata } from 'grpc-web';
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
package/package.json CHANGED
@@ -1,28 +1,22 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "1.1.4",
3
+ "version": "1.1.8",
4
4
  "description": "The official Clarifai gRPC-web client",
5
- "main": "dist/index.js",
6
- "module": "lib/index.js",
7
- "types": "lib/index.d.ts",
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": "./lib/index.js",
11
- "require": "./dist/index.js"
10
+ "import": "./dist/esm/index.js",
11
+ "require": "./dist/cjs/index.js"
12
12
  },
13
13
  "./resources": {
14
- "import": "./lib/resources.js",
15
- "require": "./dist/resources.js"
14
+ "import": "./dist/esm/resources.js",
15
+ "require": "./dist/cjs/resources.js"
16
16
  },
17
17
  "./service": {
18
- "import": "./lib/service.js",
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 ./src/index.ts ./src/resources.ts ./src/service.ts",
35
- "clean": "rm -rf dist lib clarifai-web-grpc-*.tgz",
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
@@ -1,8 +1,8 @@
1
1
  import { describe, it } from 'mocha'
2
2
  import { expect } from 'chai'
3
- import { ClarifaiStub as StubSRC } from '../src/index'
4
- import { ClarifaiStub as StubCJS } from '../dist/index'
5
- import { ClarifaiStub as StubESM } from '../lib/index'
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', () => {
@@ -1,8 +1,8 @@
1
1
  import { describe, it } from 'mocha'
2
2
  import { expect } from 'chai'
3
- import * as ResourcesSRC from '../src/resources'
4
- import * as ResourcesCJS from '../dist/resources'
5
- import * as ResourcesESM from '../lib/resources'
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
@@ -2,6 +2,6 @@
2
2
  "extends": "./tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "module": "CommonJS",
5
- "outDir": "./dist"
5
+ "outDir": "./dist/cjs"
6
6
  }
7
7
  }
package/tsconfig.json CHANGED
@@ -5,11 +5,14 @@
5
5
  "strict": true,
6
6
  "declaration": true,
7
7
  "allowJs": true,
8
- "outDir": "./lib",
8
+ "outDir": "./dist/esm",
9
9
  "moduleResolution": "node"
10
10
  },
11
11
  "include": [
12
- "./src",
12
+ "./index.ts",
13
+ "./resources.ts",
14
+ "./service.ts",
15
+ "proto/",
13
16
  ],
14
17
  "exclude": [
15
18
  "node_modules"
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- // GENERATED CODE -- NO SERVICES IN PROTO
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- // GENERATED CODE -- NO SERVICES IN PROTO
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- // GENERATED CODE -- NO SERVICES IN PROTO
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- // GENERATED CODE -- NO SERVICES IN PROTO