@verdaccio/proxy 6.0.0-6-next.39 → 6.0.0-6-next.41

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @verdaccio/proxy
2
2
 
3
+ ## 6.0.0-6-next.41
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ddb6a223]
8
+ - Updated dependencies [dc571aab]
9
+ - @verdaccio/config@6.0.0-6-next.63
10
+ - @verdaccio/core@6.0.0-6-next.63
11
+ - @verdaccio/local-storage@11.0.0-6-next.33
12
+ - @verdaccio/utils@6.0.0-6-next.31
13
+ - @verdaccio/logger@6.0.0-6-next.31
14
+
15
+ ## 6.0.0-6-next.40
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [378e907d]
20
+ - @verdaccio/core@6.0.0-6-next.62
21
+ - @verdaccio/logger@6.0.0-6-next.30
22
+ - @verdaccio/local-storage@11.0.0-6-next.32
23
+ - @verdaccio/config@6.0.0-6-next.62
24
+ - @verdaccio/utils@6.0.0-6-next.30
25
+
3
26
  ## 6.0.0-6-next.39
4
27
 
5
28
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/proxy",
3
- "version": "6.0.0-6-next.39",
3
+ "version": "6.0.0-6-next.41",
4
4
  "description": "verdaccio proxy fetcher",
5
5
  "main": "./build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -30,11 +30,11 @@
30
30
  "npm": ">=6"
31
31
  },
32
32
  "dependencies": {
33
- "@verdaccio/config": "6.0.0-6-next.61",
34
- "@verdaccio/core": "6.0.0-6-next.61",
35
- "@verdaccio/local-storage": "11.0.0-6-next.31",
36
- "@verdaccio/logger": "6.0.0-6-next.29",
37
- "@verdaccio/utils": "6.0.0-6-next.29",
33
+ "@verdaccio/config": "6.0.0-6-next.63",
34
+ "@verdaccio/core": "6.0.0-6-next.63",
35
+ "@verdaccio/local-storage": "11.0.0-6-next.33",
36
+ "@verdaccio/logger": "6.0.0-6-next.31",
37
+ "@verdaccio/utils": "6.0.0-6-next.31",
38
38
  "JSONStream": "1.3.5",
39
39
  "debug": "4.3.4",
40
40
  "lodash": "4.17.21",
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@types/node": "16.18.10",
47
47
  "p-cancelable": "2.1.1",
48
- "@verdaccio/types": "11.0.0-6-next.20",
48
+ "@verdaccio/types": "11.0.0-6-next.22",
49
49
  "get-stream": "^6.0.1",
50
50
  "nock": "13.2.9",
51
51
  "node-mocks-http": "1.12.1",
@@ -187,7 +187,7 @@ describe('proxy', () => {
187
187
  prox1.getRemoteMetadata('jquery', {
188
188
  remoteAddress: '127.0.0.1',
189
189
  })
190
- ).rejects.toThrowError(new Error('something awful happened'));
190
+ ).rejects.toThrow(new Error('something awful happened'));
191
191
  });
192
192
 
193
193
  test('reply with 409 error', async () => {
@@ -205,7 +205,7 @@ describe('proxy', () => {
205
205
  prox1.getRemoteMetadata('jquery', {
206
206
  remoteAddress: '127.0.0.1',
207
207
  })
208
- ).rejects.toThrowError(
208
+ ).rejects.toThrow(
209
209
  new Error(
210
210
  'Unexpected token s in JSON at position 0 in "https://registry.npmjs.org/jquery"'
211
211
  )
@@ -219,7 +219,7 @@ describe('proxy', () => {
219
219
  prox1.getRemoteMetadata('jquery', {
220
220
  remoteAddress: '127.0.0.1',
221
221
  })
222
- ).rejects.toThrowError(
222
+ ).rejects.toThrow(
223
223
  errorUtils.getInternalError(`${errorUtils.API_ERROR.BAD_STATUS_CODE}: 409`)
224
224
  );
225
225
  });
@@ -231,7 +231,7 @@ describe('proxy', () => {
231
231
  prox1.getRemoteMetadata('jquery', {
232
232
  remoteAddress: '127.0.0.1',
233
233
  })
234
- ).rejects.toThrowError(errorUtils.getNotFound(API_ERROR.NOT_PACKAGE_UPLINK));
234
+ ).rejects.toThrow(errorUtils.getNotFound(API_ERROR.NOT_PACKAGE_UPLINK));
235
235
  expect(mockHttp).toHaveBeenCalledTimes(1);
236
236
  expect(mockHttp).toHaveBeenLastCalledWith(
237
237
  {
@@ -278,13 +278,13 @@ describe('proxy', () => {
278
278
  remoteAddress: '127.0.0.1',
279
279
  retry: { limit: 2 },
280
280
  })
281
- ).rejects.toThrowError();
281
+ ).rejects.toThrow();
282
282
  await expect(
283
283
  prox1.getRemoteMetadata('jquery', {
284
284
  remoteAddress: '127.0.0.1',
285
285
  retry: { limit: 2 },
286
286
  })
287
- ).rejects.toThrowError(errorUtils.getInternalError(errorUtils.API_ERROR.UPLINK_OFFLINE));
287
+ ).rejects.toThrow(errorUtils.getInternalError(errorUtils.API_ERROR.UPLINK_OFFLINE));
288
288
  expect(mockWarn).toHaveBeenCalledTimes(1);
289
289
  expect(mockWarn).toHaveBeenLastCalledWith(
290
290
  {
@@ -315,14 +315,14 @@ describe('proxy', () => {
315
315
  remoteAddress: '127.0.0.1',
316
316
  retry: { limit: 2 },
317
317
  })
318
- ).rejects.toThrowError();
318
+ ).rejects.toThrow();
319
319
  // display offline error on exausted retry
320
320
  await expect(
321
321
  prox1.getRemoteMetadata('jquery', {
322
322
  remoteAddress: '127.0.0.1',
323
323
  retry: { limit: 2 },
324
324
  })
325
- ).rejects.toThrowError(errorUtils.getInternalError(errorUtils.API_ERROR.UPLINK_OFFLINE));
325
+ ).rejects.toThrow(errorUtils.getInternalError(errorUtils.API_ERROR.UPLINK_OFFLINE));
326
326
  expect(mockWarn).toHaveBeenCalledTimes(2);
327
327
  expect(mockWarn).toHaveBeenLastCalledWith(
328
328
  {