@langchain/google-gauth 0.2.18 → 1.0.0

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 (66) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSE +6 -6
  3. package/README.md +1 -1
  4. package/dist/_virtual/rolldown_runtime.cjs +25 -0
  5. package/dist/auth.cjs +31 -87
  6. package/dist/auth.cjs.map +1 -0
  7. package/dist/auth.js +30 -79
  8. package/dist/auth.js.map +1 -0
  9. package/dist/chat_models.cjs +21 -19
  10. package/dist/chat_models.cjs.map +1 -0
  11. package/dist/chat_models.d.cts +21 -0
  12. package/dist/chat_models.d.cts.map +1 -0
  13. package/dist/chat_models.d.ts +12 -6
  14. package/dist/chat_models.d.ts.map +1 -0
  15. package/dist/chat_models.js +20 -15
  16. package/dist/chat_models.js.map +1 -0
  17. package/dist/embeddings.cjs +22 -25
  18. package/dist/embeddings.cjs.map +1 -0
  19. package/dist/embeddings.d.cts +22 -0
  20. package/dist/embeddings.d.cts.map +1 -0
  21. package/dist/embeddings.d.ts +14 -8
  22. package/dist/embeddings.d.ts.map +1 -0
  23. package/dist/embeddings.js +21 -21
  24. package/dist/embeddings.js.map +1 -0
  25. package/dist/index.cjs +10 -20
  26. package/dist/index.d.cts +5 -0
  27. package/dist/index.d.ts +5 -4
  28. package/dist/index.js +6 -4
  29. package/dist/llms.cjs +22 -25
  30. package/dist/llms.cjs.map +1 -0
  31. package/dist/llms.d.cts +22 -0
  32. package/dist/llms.d.cts.map +1 -0
  33. package/dist/llms.d.ts +13 -7
  34. package/dist/llms.d.ts.map +1 -0
  35. package/dist/llms.js +21 -21
  36. package/dist/llms.js.map +1 -0
  37. package/dist/media.cjs +19 -16
  38. package/dist/media.cjs.map +1 -0
  39. package/dist/media.d.cts +16 -0
  40. package/dist/media.d.cts.map +1 -0
  41. package/dist/media.d.ts +12 -9
  42. package/dist/media.d.ts.map +1 -0
  43. package/dist/media.js +17 -11
  44. package/dist/media.js.map +1 -0
  45. package/dist/types.cjs +9 -17
  46. package/dist/types.d.cts +1 -0
  47. package/dist/types.d.ts +1 -1
  48. package/dist/types.js +1 -1
  49. package/dist/utils.cjs +9 -17
  50. package/dist/utils.d.cts +1 -0
  51. package/dist/utils.d.ts +1 -1
  52. package/dist/utils.js +1 -1
  53. package/package.json +56 -73
  54. package/dist/auth.d.ts +0 -27
  55. package/index.cjs +0 -1
  56. package/index.d.cts +0 -1
  57. package/index.d.ts +0 -1
  58. package/index.js +0 -1
  59. package/types.cjs +0 -1
  60. package/types.d.cts +0 -1
  61. package/types.d.ts +0 -1
  62. package/types.js +0 -1
  63. package/utils.cjs +0 -1
  64. package/utils.d.cts +0 -1
  65. package/utils.d.ts +0 -1
  66. package/utils.js +0 -1
package/package.json CHANGED
@@ -1,118 +1,101 @@
1
1
  {
2
2
  "name": "@langchain/google-gauth",
3
- "version": "0.2.18",
3
+ "version": "1.0.0",
4
4
  "description": "Google auth based authentication support for Google services",
5
+ "author": "LangChain",
6
+ "license": "MIT",
5
7
  "type": "module",
6
8
  "engines": {
7
- "node": ">=18"
9
+ "node": ">=20"
8
10
  },
9
- "main": "./index.js",
10
- "types": "./index.d.ts",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git@github.com:langchain-ai/langchainjs.git"
14
14
  },
15
15
  "homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-gauth/",
16
- "scripts": {
17
- "build": "yarn turbo:command build:internal --filter=@langchain/google-gauth",
18
- "build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
19
- "lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
20
- "lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
21
- "lint": "yarn lint:eslint && yarn lint:dpdm",
22
- "lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
23
- "clean": "rm -rf .turbo dist/",
24
- "prepack": "yarn build",
25
- "test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
26
- "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
27
- "test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
28
- "test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
29
- "test:standard:unit": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%",
30
- "test:standard:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
31
- "test:standard": "yarn test:standard:unit && yarn test:standard:int",
32
- "format": "prettier --config .prettierrc --write \"src\"",
33
- "format:check": "prettier --config .prettierrc --check \"src\""
34
- },
35
- "author": "LangChain",
36
- "license": "MIT",
37
16
  "dependencies": {
38
- "@langchain/google-common": "^0.2.18",
17
+ "@langchain/google-common": "^1.0.0",
39
18
  "google-auth-library": "^10.1.0"
40
19
  },
41
- "peerDependencies": {
42
- "@langchain/core": ">=0.3.58 <0.4.0"
43
- },
44
20
  "devDependencies": {
45
21
  "@jest/globals": "^29.5.0",
46
- "@langchain/core": "workspace:*",
47
- "@langchain/scripts": ">=0.1.0 <0.2.0",
48
22
  "@swc/core": "^1.3.90",
49
23
  "@swc/jest": "^0.2.29",
50
24
  "@tsconfig/recommended": "^1.0.3",
51
- "@typescript-eslint/eslint-plugin": "^6.12.0",
52
- "@typescript-eslint/parser": "^6.12.0",
53
25
  "dotenv": "^16.3.1",
54
26
  "dpdm": "^3.14.0",
55
- "eslint": "^8.33.0",
56
- "eslint-config-airbnb-base": "^15.0.0",
57
- "eslint-config-prettier": "^8.6.0",
58
- "eslint-plugin-import": "^2.27.5",
59
- "eslint-plugin-no-instanceof": "^1.0.1",
60
- "eslint-plugin-prettier": "^4.2.1",
27
+ "eslint": "^9.34.0",
61
28
  "jest": "^29.5.0",
62
29
  "jest-environment-node": "^29.6.4",
63
30
  "prettier": "^2.8.3",
64
- "release-it": "^18.1.2",
65
31
  "rollup": "^4.5.2",
66
32
  "ts-jest": "^29.1.0",
67
33
  "typescript": "~5.8.3",
68
- "zod": "^3.22.4"
34
+ "zod": "^3.25.76",
35
+ "@langchain/eslint": "0.1.0"
69
36
  },
70
37
  "publishConfig": {
71
38
  "access": "public"
72
39
  },
40
+ "main": "./dist/index.js",
41
+ "types": "./dist/index.d.ts",
73
42
  "exports": {
74
43
  ".": {
75
- "types": {
76
- "import": "./index.d.ts",
77
- "require": "./index.d.cts",
78
- "default": "./index.d.ts"
44
+ "input": "./src/index.ts",
45
+ "import": {
46
+ "types": "./dist/index.d.ts",
47
+ "default": "./dist/index.js"
79
48
  },
80
- "import": "./index.js",
81
- "require": "./index.cjs"
49
+ "require": {
50
+ "types": "./dist/index.d.cts",
51
+ "default": "./dist/index.cjs"
52
+ }
82
53
  },
83
54
  "./utils": {
84
- "types": {
85
- "import": "./utils.d.ts",
86
- "require": "./utils.d.cts",
87
- "default": "./utils.d.ts"
55
+ "input": "./src/utils.ts",
56
+ "import": {
57
+ "types": "./dist/utils.d.ts",
58
+ "default": "./dist/utils.js"
88
59
  },
89
- "import": "./utils.js",
90
- "require": "./utils.cjs"
60
+ "require": {
61
+ "types": "./dist/utils.d.cts",
62
+ "default": "./dist/utils.cjs"
63
+ }
91
64
  },
92
65
  "./types": {
93
- "types": {
94
- "import": "./types.d.ts",
95
- "require": "./types.d.cts",
96
- "default": "./types.d.ts"
66
+ "input": "./src/types.ts",
67
+ "import": {
68
+ "types": "./dist/types.d.ts",
69
+ "default": "./dist/types.js"
97
70
  },
98
- "import": "./types.js",
99
- "require": "./types.cjs"
71
+ "require": {
72
+ "types": "./dist/types.d.cts",
73
+ "default": "./dist/types.cjs"
74
+ }
100
75
  },
101
76
  "./package.json": "./package.json"
102
77
  },
103
78
  "files": [
104
79
  "dist/",
105
- "index.cjs",
106
- "index.js",
107
- "index.d.ts",
108
- "index.d.cts",
109
- "utils.cjs",
110
- "utils.js",
111
- "utils.d.ts",
112
- "utils.d.cts",
113
- "types.cjs",
114
- "types.js",
115
- "types.d.ts",
116
- "types.d.cts"
117
- ]
118
- }
80
+ "CHANGELOG.md",
81
+ "README.md",
82
+ "LICENSE"
83
+ ],
84
+ "scripts": {
85
+ "build": "pnpm --filter @langchain/build compile @langchain/google-gauth",
86
+ "lint:eslint": "eslint --cache src/",
87
+ "lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
88
+ "lint": "pnpm lint:eslint && pnpm lint:dpdm",
89
+ "lint:fix": "pnpm lint:eslint --fix && pnpm lint:dpdm",
90
+ "clean": "rm -rf .turbo dist/",
91
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
92
+ "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
93
+ "test:single": "NODE_OPTIONS=--experimental-vm-modules pnpm run jest --config jest.config.cjs --testTimeout 100000",
94
+ "test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
95
+ "test:standard:unit": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%",
96
+ "test:standard:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
97
+ "test:standard": "pnpm test:standard:unit && pnpm test:standard:int",
98
+ "format": "prettier --config .prettierrc --write \"src\"",
99
+ "format:check": "prettier --config .prettierrc --check \"src\""
100
+ }
101
+ }
package/dist/auth.d.ts DELETED
@@ -1,27 +0,0 @@
1
- import { Readable } from "stream";
2
- import { AbstractStream, GoogleAbstractedClientOps, GoogleAbstractedFetchClient, GoogleConnectionParams } from "@langchain/google-common";
3
- import { GoogleAuth, GoogleAuthOptions } from "google-auth-library";
4
- export declare class NodeAbstractStream implements AbstractStream {
5
- private baseStream;
6
- constructor(baseStream: AbstractStream, data: Readable);
7
- appendBuffer(data: string): void;
8
- closeBuffer(): void;
9
- nextChunk(): Promise<any>;
10
- get streamDone(): boolean;
11
- }
12
- export declare class NodeJsonStream extends NodeAbstractStream {
13
- constructor(data: Readable);
14
- }
15
- export declare class NodeSseStream extends NodeAbstractStream {
16
- constructor(data: Readable);
17
- }
18
- export declare class NodeSseJsonStream extends NodeAbstractStream {
19
- constructor(data: Readable);
20
- }
21
- export declare class GAuthClient extends GoogleAbstractedFetchClient {
22
- gauth: GoogleAuth;
23
- constructor(fields?: GoogleConnectionParams<GoogleAuthOptions>);
24
- get clientType(): string;
25
- getProjectId(): Promise<string>;
26
- request(opts: GoogleAbstractedClientOps): Promise<unknown>;
27
- }
package/index.cjs DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist/index.cjs');
package/index.d.cts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/index.js'
package/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/index.js'
package/index.js DELETED
@@ -1 +0,0 @@
1
- export * from './dist/index.js'
package/types.cjs DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist/types.cjs');
package/types.d.cts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/types.js'
package/types.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/types.js'
package/types.js DELETED
@@ -1 +0,0 @@
1
- export * from './dist/types.js'
package/utils.cjs DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist/utils.cjs');
package/utils.d.cts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/utils.js'
package/utils.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './dist/utils.js'
package/utils.js DELETED
@@ -1 +0,0 @@
1
- export * from './dist/utils.js'