nsarrazin HF staff commited on
Commit
2a5cd75
1 Parent(s): d196c64

make `@anthropic-ai/sdk` optional in `package-lock.json` (#939)

Browse files
Files changed (1) hide show
  1. package-lock.json +27 -6
package-lock.json CHANGED
@@ -8,7 +8,6 @@
8
  "name": "chat-ui",
9
  "version": "0.7.0",
10
  "dependencies": {
11
- "@anthropic-ai/sdk": "^0.17.1",
12
  "@huggingface/hub": "^0.5.1",
13
  "@huggingface/inference": "^2.6.3",
14
  "@iconify-json/bi": "^1.1.21",
@@ -73,6 +72,7 @@
73
  "vitest": "^0.31.0"
74
  },
75
  "optionalDependencies": {
 
76
  "aws4fetch": "^1.0.17",
77
  "openai": "^4.14.2"
78
  }
@@ -127,6 +127,7 @@
127
  "version": "0.17.1",
128
  "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.17.1.tgz",
129
  "integrity": "sha512-ke/JGfaa4sc1PB58L4B9hXI/BlJphXc696+cVX8Z8gQt51l++a9umZTN/7UymV8Dcat6KKYNQE8P8yeeyAldHg==",
 
130
  "dependencies": {
131
  "@types/node": "^18.11.18",
132
  "@types/node-fetch": "^2.6.4",
@@ -143,6 +144,7 @@
143
  "version": "3.3.3",
144
  "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
145
  "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",
 
146
  "engines": {
147
  "node": ">= 8"
148
  }
@@ -2038,6 +2040,7 @@
2038
  "version": "2.6.5",
2039
  "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.5.tgz",
2040
  "integrity": "sha512-OZsUlr2nxvkqUFLSaY2ZbA+P1q22q+KrlxWOn/38RX+u5kTkYL2mTujEpzUhGkS+K/QCYp9oagfXG39XOzyySg==",
 
2041
  "dependencies": {
2042
  "@types/node": "*",
2043
  "form-data": "^4.0.0"
@@ -2433,6 +2436,7 @@
2433
  "version": "3.0.0",
2434
  "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
2435
  "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
 
2436
  "dependencies": {
2437
  "event-target-shim": "^5.0.0"
2438
  },
@@ -2485,6 +2489,7 @@
2485
  "version": "4.5.0",
2486
  "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz",
2487
  "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==",
 
2488
  "dependencies": {
2489
  "humanize-ms": "^1.2.1"
2490
  },
@@ -2652,7 +2657,8 @@
2652
  "node_modules/base-64": {
2653
  "version": "0.1.0",
2654
  "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz",
2655
- "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA=="
 
2656
  },
2657
  "node_modules/base64-js": {
2658
  "version": "1.5.1",
@@ -2920,6 +2926,7 @@
2920
  "version": "0.0.2",
2921
  "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
2922
  "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==",
 
2923
  "engines": {
2924
  "node": "*"
2925
  }
@@ -3116,6 +3123,7 @@
3116
  "version": "0.0.2",
3117
  "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
3118
  "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==",
 
3119
  "engines": {
3120
  "node": "*"
3121
  }
@@ -3371,6 +3379,7 @@
3371
  "version": "1.3.0",
3372
  "resolved": "https://registry.npmjs.org/digest-fetch/-/digest-fetch-1.3.0.tgz",
3373
  "integrity": "sha512-CGJuv6iKNM7QyZlM2T3sPAdZWd/p9zQiRNS9G+9COUCwzWFTs0Xp8NF5iePx7wtvhDykReiRRrSeNb4oMmB8lA==",
 
3374
  "dependencies": {
3375
  "base-64": "^0.1.0",
3376
  "md5": "^2.3.0"
@@ -3742,6 +3751,7 @@
3742
  "version": "5.0.1",
3743
  "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
3744
  "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
 
3745
  "engines": {
3746
  "node": ">=6"
3747
  }
@@ -3924,12 +3934,14 @@
3924
  "node_modules/form-data-encoder": {
3925
  "version": "1.7.2",
3926
  "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz",
3927
- "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A=="
 
3928
  },
3929
  "node_modules/formdata-node": {
3930
  "version": "4.4.1",
3931
  "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",
3932
  "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",
 
3933
  "dependencies": {
3934
  "node-domexception": "1.0.0",
3935
  "web-streams-polyfill": "4.0.0-beta.3"
@@ -4221,6 +4233,7 @@
4221
  "version": "1.2.1",
4222
  "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
4223
  "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
 
4224
  "dependencies": {
4225
  "ms": "^2.0.0"
4226
  }
@@ -4358,7 +4371,8 @@
4358
  "node_modules/is-buffer": {
4359
  "version": "1.1.6",
4360
  "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
4361
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
 
4362
  },
4363
  "node_modules/is-builtin-module": {
4364
  "version": "3.2.1",
@@ -4832,6 +4846,7 @@
4832
  "version": "2.3.0",
4833
  "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
4834
  "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
 
4835
  "dependencies": {
4836
  "charenc": "0.0.2",
4837
  "crypt": "0.0.2",
@@ -5128,6 +5143,7 @@
5128
  "url": "https://paypal.me/jimmywarting"
5129
  }
5130
  ],
 
5131
  "engines": {
5132
  "node": ">=10.5.0"
5133
  }
@@ -5136,6 +5152,7 @@
5136
  "version": "2.7.0",
5137
  "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
5138
  "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
 
5139
  "dependencies": {
5140
  "whatwg-url": "^5.0.0"
5141
  },
@@ -5154,17 +5171,20 @@
5154
  "node_modules/node-fetch/node_modules/tr46": {
5155
  "version": "0.0.3",
5156
  "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
5157
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
 
5158
  },
5159
  "node_modules/node-fetch/node_modules/webidl-conversions": {
5160
  "version": "3.0.1",
5161
  "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
5162
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
 
5163
  },
5164
  "node_modules/node-fetch/node_modules/whatwg-url": {
5165
  "version": "5.0.0",
5166
  "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
5167
  "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
 
5168
  "dependencies": {
5169
  "tr46": "~0.0.3",
5170
  "webidl-conversions": "^3.0.0"
@@ -8183,6 +8203,7 @@
8183
  "version": "4.0.0-beta.3",
8184
  "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
8185
  "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",
 
8186
  "engines": {
8187
  "node": ">= 14"
8188
  }
 
8
  "name": "chat-ui",
9
  "version": "0.7.0",
10
  "dependencies": {
 
11
  "@huggingface/hub": "^0.5.1",
12
  "@huggingface/inference": "^2.6.3",
13
  "@iconify-json/bi": "^1.1.21",
 
72
  "vitest": "^0.31.0"
73
  },
74
  "optionalDependencies": {
75
+ "@anthropic-ai/sdk": "^0.17.1",
76
  "aws4fetch": "^1.0.17",
77
  "openai": "^4.14.2"
78
  }
 
127
  "version": "0.17.1",
128
  "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.17.1.tgz",
129
  "integrity": "sha512-ke/JGfaa4sc1PB58L4B9hXI/BlJphXc696+cVX8Z8gQt51l++a9umZTN/7UymV8Dcat6KKYNQE8P8yeeyAldHg==",
130
+ "optional": true,
131
  "dependencies": {
132
  "@types/node": "^18.11.18",
133
  "@types/node-fetch": "^2.6.4",
 
144
  "version": "3.3.3",
145
  "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
146
  "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",
147
+ "optional": true,
148
  "engines": {
149
  "node": ">= 8"
150
  }
 
2040
  "version": "2.6.5",
2041
  "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.5.tgz",
2042
  "integrity": "sha512-OZsUlr2nxvkqUFLSaY2ZbA+P1q22q+KrlxWOn/38RX+u5kTkYL2mTujEpzUhGkS+K/QCYp9oagfXG39XOzyySg==",
2043
+ "optional": true,
2044
  "dependencies": {
2045
  "@types/node": "*",
2046
  "form-data": "^4.0.0"
 
2436
  "version": "3.0.0",
2437
  "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
2438
  "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
2439
+ "optional": true,
2440
  "dependencies": {
2441
  "event-target-shim": "^5.0.0"
2442
  },
 
2489
  "version": "4.5.0",
2490
  "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz",
2491
  "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==",
2492
+ "optional": true,
2493
  "dependencies": {
2494
  "humanize-ms": "^1.2.1"
2495
  },
 
2657
  "node_modules/base-64": {
2658
  "version": "0.1.0",
2659
  "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz",
2660
+ "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==",
2661
+ "optional": true
2662
  },
2663
  "node_modules/base64-js": {
2664
  "version": "1.5.1",
 
2926
  "version": "0.0.2",
2927
  "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
2928
  "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==",
2929
+ "optional": true,
2930
  "engines": {
2931
  "node": "*"
2932
  }
 
3123
  "version": "0.0.2",
3124
  "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
3125
  "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==",
3126
+ "optional": true,
3127
  "engines": {
3128
  "node": "*"
3129
  }
 
3379
  "version": "1.3.0",
3380
  "resolved": "https://registry.npmjs.org/digest-fetch/-/digest-fetch-1.3.0.tgz",
3381
  "integrity": "sha512-CGJuv6iKNM7QyZlM2T3sPAdZWd/p9zQiRNS9G+9COUCwzWFTs0Xp8NF5iePx7wtvhDykReiRRrSeNb4oMmB8lA==",
3382
+ "optional": true,
3383
  "dependencies": {
3384
  "base-64": "^0.1.0",
3385
  "md5": "^2.3.0"
 
3751
  "version": "5.0.1",
3752
  "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
3753
  "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
3754
+ "optional": true,
3755
  "engines": {
3756
  "node": ">=6"
3757
  }
 
3934
  "node_modules/form-data-encoder": {
3935
  "version": "1.7.2",
3936
  "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz",
3937
+ "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==",
3938
+ "optional": true
3939
  },
3940
  "node_modules/formdata-node": {
3941
  "version": "4.4.1",
3942
  "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",
3943
  "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",
3944
+ "optional": true,
3945
  "dependencies": {
3946
  "node-domexception": "1.0.0",
3947
  "web-streams-polyfill": "4.0.0-beta.3"
 
4233
  "version": "1.2.1",
4234
  "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
4235
  "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
4236
+ "optional": true,
4237
  "dependencies": {
4238
  "ms": "^2.0.0"
4239
  }
 
4371
  "node_modules/is-buffer": {
4372
  "version": "1.1.6",
4373
  "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
4374
+ "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
4375
+ "optional": true
4376
  },
4377
  "node_modules/is-builtin-module": {
4378
  "version": "3.2.1",
 
4846
  "version": "2.3.0",
4847
  "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
4848
  "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
4849
+ "optional": true,
4850
  "dependencies": {
4851
  "charenc": "0.0.2",
4852
  "crypt": "0.0.2",
 
5143
  "url": "https://paypal.me/jimmywarting"
5144
  }
5145
  ],
5146
+ "optional": true,
5147
  "engines": {
5148
  "node": ">=10.5.0"
5149
  }
 
5152
  "version": "2.7.0",
5153
  "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
5154
  "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
5155
+ "optional": true,
5156
  "dependencies": {
5157
  "whatwg-url": "^5.0.0"
5158
  },
 
5171
  "node_modules/node-fetch/node_modules/tr46": {
5172
  "version": "0.0.3",
5173
  "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
5174
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
5175
+ "optional": true
5176
  },
5177
  "node_modules/node-fetch/node_modules/webidl-conversions": {
5178
  "version": "3.0.1",
5179
  "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
5180
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
5181
+ "optional": true
5182
  },
5183
  "node_modules/node-fetch/node_modules/whatwg-url": {
5184
  "version": "5.0.0",
5185
  "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
5186
  "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
5187
+ "optional": true,
5188
  "dependencies": {
5189
  "tr46": "~0.0.3",
5190
  "webidl-conversions": "^3.0.0"
 
8203
  "version": "4.0.0-beta.3",
8204
  "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
8205
  "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",
8206
+ "optional": true,
8207
  "engines": {
8208
  "node": ">= 14"
8209
  }