Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cockatiel

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cockatiel - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

dist/common/Executor.bench.d.ts

4

changelog.md
# Changelog
## 1.0.1 - 2020-06-22
- **fix:** cockatiel not working in certain browser builds
## 1.0.0 - 2020-06-16

@@ -4,0 +8,0 @@

14

dist/common/Executor.js

@@ -14,4 +14,10 @@ "use strict";

const makeStopwatch = () => {
const start = process.hrtime.bigint();
return () => Number(process.hrtime.bigint() - start) / 1000000; // ns->ms
if (typeof performance !== 'undefined') {
const start = performance.now();
return () => performance.now() - start;
}
else {
const start = process.hrtime.bigint();
return () => Number(process.hrtime.bigint() - start) / 1000000; // ns->ms
}
};

@@ -31,4 +37,4 @@ class ExecuteWrapper {

const e = new ExecuteWrapper(this.errorFilter, this.resultFilter);
e.onSuccess(evt => this.successEmitter.emit(evt));
e.onFailure(evt => this.failureEmitter.emit(evt));
e.onSuccess((evt) => this.successEmitter.emit(evt));
e.onFailure((evt) => this.failureEmitter.emit(evt));
return e;

@@ -35,0 +41,0 @@ }

@@ -12,4 +12,10 @@ import { EventEmitter } from './Event';

const makeStopwatch = () => {
const start = process.hrtime.bigint();
return () => Number(process.hrtime.bigint() - start) / 1000000; // ns->ms
if (typeof performance !== 'undefined') {
const start = performance.now();
return () => performance.now() - start;
}
else {
const start = process.hrtime.bigint();
return () => Number(process.hrtime.bigint() - start) / 1000000; // ns->ms
}
};

@@ -29,4 +35,4 @@ export class ExecuteWrapper {

const e = new ExecuteWrapper(this.errorFilter, this.resultFilter);
e.onSuccess(evt => this.successEmitter.emit(evt));
e.onFailure(evt => this.failureEmitter.emit(evt));
e.onSuccess((evt) => this.successEmitter.emit(evt));
e.onFailure((evt) => this.failureEmitter.emit(evt));
return e;

@@ -33,0 +39,0 @@ }

{
"name": "cockatiel",
"version": "1.0.0",
"version": "1.0.1",
"description": "A resilience and transient-fault-handling library that allows developers to express policies such as Backoff, Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. Inspired by .NET Polly.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc