Skip to content

Commit

Permalink
Merge pull request #320 from opravil-jan/bump-versions
Browse files Browse the repository at this point in the history
Bump package versions due to vulnerability issues
  • Loading branch information
lo1tuma committed Apr 11, 2022
2 parents 9b4b0a4 + 1227c21 commit 33a54df
Show file tree
Hide file tree
Showing 4 changed files with 1,136 additions and 1,082 deletions.
19 changes: 12 additions & 7 deletions .eslintrc.json
@@ -1,6 +1,4 @@
{
"extends": [ "plugin:eslint-plugin/recommended" ],

"plugins": [
"eslint-plugin",
"node",
Expand Down Expand Up @@ -291,14 +289,21 @@
"lines-between-class-members": [ "error", "always"],

"node/no-unsupported-features": "error",
"unicorn/prefer-includes": "error",
"eslint-plugin/require-meta-docs-url": [
"error",
{ "pattern": "https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/{{name}}.md" }
]
"unicorn/prefer-includes": "error"
},

"overrides": [
{

"files": ["lib/rules/**/*.js", "test/rules/**/*.js"],
"extends": [ "plugin:eslint-plugin/recommended" ],
"rules": {
"eslint-plugin/require-meta-docs-url": [
"error",
{ "pattern": "https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/{{name}}.md" }
]
}
},
{
"files": [ "test/**/*.js", "benchmarks/**/*.js"],
"env": { "mocha": true },
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/measure.js
@@ -1,7 +1,7 @@
'use strict';

const os = require('os');
const { performance } = require('perf_hooks');
const { performance: performanceHooks } = require('perf_hooks');
const times = require('ramda/src/times');
const median = require('ramda/src/median');
const map = require('ramda/src/map');
Expand Down Expand Up @@ -30,10 +30,10 @@ function runBenchmark(fn, count) {
const results = [];

times(() => {
const startTime = performance.now();
const startTime = performanceHooks.now();
const startMemory = process.memoryUsage().rss;
fn();
const endTime = performance.now();
const endTime = performanceHooks.now();
const endMemory = process.memoryUsage().rss;
const duration = endTime - startTime;
const memory = endMemory - startMemory;
Expand Down

0 comments on commit 33a54df

Please sign in to comment.