@naturalcycles/bench-lib 1.6.2 → 1.6.3

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.
@@ -1,5 +1,5 @@
1
1
  export interface BenchDeferred {
2
- resolve(): void;
2
+ resolve: () => void;
3
3
  }
4
4
  export type BenchDeferredFunction = (done: BenchDeferred) => any;
5
5
  export interface RunBenchOptions {
@@ -74,7 +74,6 @@ async function runBenchOnce(opt, run) {
74
74
  // console.log(event.target)
75
75
  })
76
76
  .on('complete', function () {
77
- // eslint-disable-next-line unicorn/no-array-callback-reference
78
77
  console.log(`Fastest in run ${(0, colors_1.yellow)(run)} is ` + this.filter('fastest').map('name'));
79
78
  // console.log(this[0].stats)
80
79
  // console.log(this)
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "benchmark": "^2.1.4",
11
11
  "express": "^4.17.1",
12
12
  "fs-extra": "^11.1.0",
13
- "helmet": "^6.0.0",
13
+ "helmet": "^7.0.0",
14
14
  "vega": "^5.10.1",
15
15
  "vega-lite": "^5.0.0"
16
16
  },
@@ -18,7 +18,7 @@
18
18
  "@naturalcycles/dev-lib": "^13.6.0",
19
19
  "@types/benchmark": "^2.1.0",
20
20
  "@types/express": "^4.17.6",
21
- "@types/node": "^18.7.20",
21
+ "@types/node": "^20.1.0",
22
22
  "fastify": "^4.6.0",
23
23
  "jest": "^29.0.3"
24
24
  },
@@ -37,7 +37,7 @@
37
37
  "engines": {
38
38
  "node": ">=16.10.0"
39
39
  },
40
- "version": "1.6.2",
40
+ "version": "1.6.3",
41
41
  "description": "Benchmarking library, based on Benchmark.js and Autocannon",
42
42
  "author": "Natural Cycles Team",
43
43
  "license": "MIT"