Socket
Socket
Sign inDemoInstall

cronometro

Package Overview
Dependencies
23
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.0 to 1.0.0-beta.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 2021-08-14 / 1.0.0-beta.1
- feat: Allow main module to export a function.
### 2021-08-14 / 1.0.0-beta.0

@@ -2,0 +6,0 @@

10

dist/runner.js

@@ -17,3 +17,2 @@ import { isMainThread, parentPort, workerData } from 'worker_threads';

}
/* c8 ignore stop */
// Require the script to set tests

@@ -24,2 +23,10 @@ chain

})
.then((module) => {
if (typeof module === 'function') {
return module();
}
else if (typeof module.default === 'function') {
return module.default();
}
})
.then(() => {

@@ -29,3 +36,2 @@ // Run the worker

})
/* c8 ignore start */
.catch((e) => {

@@ -32,0 +38,0 @@ process.nextTick(() => {

{
"name": "cronometro",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.1",
"description": "Simple benchmarking suite powered by HDR histograms.",

@@ -5,0 +5,0 @@ "homepage": "https://sw.cowtech.it/cronometro",

@@ -42,2 +42,4 @@ # cronometro

If your main module returns a function, cronometro will execute it before running tests. The function can also return a promise and that will be awaited.
## Usage

@@ -44,0 +46,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc