@podium/client 5.1.0 → 5.1.2

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/README.md CHANGED
@@ -380,7 +380,7 @@ Response object containing the keys `content`, `headers`, `css` and `js`.
380
380
 
381
381
  #### incoming (required)
382
382
 
383
- A HttpIncoming object. See https://github.com/podium-lib/utils/blob/master/lib/http-incoming.js
383
+ A HttpIncoming object. See https://github.com/podium-lib/utils/blob/main/lib/http-incoming.js
384
384
 
385
385
  #### options (optional)
386
386
 
@@ -411,7 +411,7 @@ emitted.
411
411
 
412
412
  #### incoming (required)
413
413
 
414
- A HttpIncoming object. See https://github.com/podium-lib/utils/blob/master/lib/http-incoming.js
414
+ A HttpIncoming object. See https://github.com/podium-lib/utils/blob/main/lib/http-incoming.js
415
415
 
416
416
  #### options (optional)
417
417
 
@@ -1,5 +1,3 @@
1
- /* eslint-disable no-underscore-dangle */
2
-
3
1
  import { PassThrough } from 'stream';
4
2
  import assert from 'assert';
5
3
 
@@ -1,6 +1,3 @@
1
- /* eslint-disable no-plusplus */
2
- /* eslint-disable no-param-reassign */
3
-
4
1
  import clonedeep from 'lodash.clonedeep';
5
2
  import abslog from 'abslog';
6
3
  import assert from 'assert';
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-param-reassign */
2
1
  import { pipeline } from 'stream';
3
2
  import Metrics from '@metrics/client';
4
3
  import abslog from 'abslog';
@@ -1,5 +1,3 @@
1
- /* eslint-disable no-param-reassign */
2
-
3
1
  import abslog from 'abslog';
4
2
  import Metrics from '@metrics/client';
5
3
  import { join, dirname } from 'path';
@@ -153,6 +151,7 @@ export default class PodletClientFallbackResolver {
153
151
  `successfully read fallback from remote resource - resource: ${outgoing.name} - url: ${outgoing.fallbackUri}`,
154
152
  );
155
153
  return outgoing;
154
+ // eslint-disable-next-line no-unused-vars
156
155
  } catch (error) {
157
156
  timer({
158
157
  labels: {
@@ -1,5 +1,3 @@
1
- /* eslint-disable no-param-reassign */
2
-
3
1
  import CachePolicy from 'http-cache-semantics';
4
2
  import { manifest as validateManifest } from '@podium/schemas';
5
3
  import Metrics from '@metrics/client';
@@ -248,6 +246,7 @@ export default class PodletClientManifestResolver {
248
246
  `successfully read manifest from remote resource - resource: ${outgoing.name} - url: ${outgoing.manifestUri}`,
249
247
  );
250
248
  return outgoing;
249
+ // eslint-disable-next-line no-unused-vars
251
250
  } catch (error) {
252
251
  timer({
253
252
  labels: {
package/lib/resource.js CHANGED
@@ -1,5 +1,3 @@
1
- /* eslint-disable no-param-reassign */
2
-
3
1
  import Metrics from '@metrics/client';
4
2
  import abslog from 'abslog';
5
3
  import assert from 'assert';
@@ -165,7 +163,7 @@ export default class PodiumClientResource {
165
163
  await this.#resolver.resolve(outgoing);
166
164
 
167
165
  const chunks = [];
168
- // eslint-disable-next-line no-restricted-syntax
166
+
169
167
  for await (const chunk of outgoing) {
170
168
  chunks.push(chunk);
171
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podium/client",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -31,22 +31,23 @@
31
31
  "scripts": {
32
32
  "lint": "eslint .",
33
33
  "lint:fix": "eslint --fix .",
34
- "test": "tap tests/*.js --disable-coverage --allow-empty-coverage && tsc --project tsconfig.test.json",
34
+ "test": "run-s test:unit test:types",
35
+ "test:unit": "tap --disable-coverage --allow-empty-coverage",
36
+ "test:types": "tsc --project tsconfig.test.json",
35
37
  "types": "tsc --declaration --emitDeclarationOnly"
36
38
  },
37
39
  "dependencies": {
38
40
  "@hapi/boom": "10.0.1",
39
41
  "@metrics/client": "2.5.2",
40
- "@podium/schemas": "5.0.5",
42
+ "@podium/schemas": "5.0.6",
41
43
  "@podium/utils": "5.0.7",
42
44
  "abslog": "2.4.4",
43
45
  "http-cache-semantics": "^4.0.3",
44
46
  "lodash.clonedeep": "^4.5.0",
45
47
  "ttl-mem-cache": "4.1.0",
46
- "undici": "6.19.2"
48
+ "undici": "6.19.3"
47
49
  },
48
50
  "devDependencies": {
49
- "@babel/eslint-parser": "7.24.7",
50
51
  "@podium/test-utils": "2.5.2",
51
52
  "@semantic-release/changelog": "6.0.3",
52
53
  "@semantic-release/git": "10.0.1",
@@ -56,15 +57,15 @@
56
57
  "@sinonjs/fake-timers": "11.2.2",
57
58
  "@types/readable-stream": "4.0.14",
58
59
  "benchmark": "2.1.4",
59
- "eslint": "8.57.0",
60
- "eslint-config-airbnb-base": "15.0.0",
60
+ "eslint": "9.6.0",
61
61
  "eslint-config-prettier": "9.1.0",
62
- "eslint-plugin-import": "2.29.1",
63
62
  "eslint-plugin-prettier": "5.1.3",
64
63
  "express": "4.19.2",
65
64
  "get-stream": "9.0.1",
65
+ "globals": "15.8.0",
66
66
  "http-proxy": "1.18.1",
67
67
  "is-stream": "4.0.1",
68
+ "npm-run-all": "4.1.5",
68
69
  "prettier": "3.3.2",
69
70
  "semantic-release": "23.1.1",
70
71
  "tap": "18.7.2",