Socket
Socket
Sign inDemoInstall

@appliedblockchain/assert-combinators

Package Overview
Dependencies
Maintainers
43
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appliedblockchain/assert-combinators - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

5

Changelog.md
# Changelog
## [v5.1.1](../../compare/v5.1.0...v5.1.1) (2022-03-28)
* Fixing result type in eventually.
* Updating changelog.
## [v5.1.0](../../compare/v5.0.0...v5.1.0) (2022-03-28)

@@ -4,0 +9,0 @@

4

cjs/eventually.d.ts

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

declare const eventually: <T>(assert: (result: T) => T, poll: () => Promise<T>, { retries, delay }?: {
declare const eventually: <T, U>(assert: (result: T) => U, poll: () => Promise<T>, { retries, delay }?: {
retries?: number | undefined;
delay?: number | undefined;
}) => Promise<T>;
}) => Promise<U>;
export default eventually;

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

declare const eventually: <T>(assert: (result: T) => T, poll: () => Promise<T>, { retries, delay }?: {
declare const eventually: <T, U>(assert: (result: T) => U, poll: () => Promise<T>, { retries, delay }?: {
retries?: number | undefined;
delay?: number | undefined;
}) => Promise<T>;
}) => Promise<U>;
export default eventually;
{
"name": "@appliedblockchain/assert-combinators",
"version": "5.1.0",
"version": "5.1.1",
"description": "Assertion combinators.",

@@ -5,0 +5,0 @@ "type": "module",

const eventually =
async <T>(assert: (result: T) => T, poll: () => Promise<T>, {
async <T, U>(assert: (result: T) => U, poll: () => Promise<T>, {
retries = 10,

@@ -8,3 +8,3 @@ delay = 1000

delay?: number
} = {}): Promise<T> => {
} = {}): Promise<U> => {
for (let retry = 1; retry <= retries; retry++) {

@@ -11,0 +11,0 @@ const before = Date.now()

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