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

async-later

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-later - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

dist/types/src/concurrently.d.ts

10

package.json
{
"name": "async-later",
"version": "0.1.8",
"version": "0.1.9",
"description": "Functional directives for Promise and AsyncIterable",
"types": "src/index.ts",
"types": "dist/types/src/index.d.ts",
"main": "./dist/node/cjs.js",

@@ -11,5 +11,6 @@ "module": "./dist/node/esm.js",

"scripts": {
"build": "node scripts/build.js",
"build": "node scripts/build.js && tsc",
"test:node": "tape dist/node/test.cjs | tap-spec; nyc report ---reporter=text",
"test:web": "rushx build && cat dist/browser/test.js | testling -u",
"type-check": "tsc",
"lint": "eslint ./src --fix"

@@ -67,4 +68,5 @@ },

"dependencies": {
"@babel/runtime": "~7.17.2"
"@babel/runtime": "~7.17.2",
"tslib": "~2.3.1"
}
}

4

src/curried.ts

@@ -16,3 +16,3 @@ // Pending: https://stackoverflow.com/questions/68761267/capture-generic-type-of-passed-function-for-overloads-in-typescript

export function overloadWithCurried<F extends (...args) => any>(
export function overloadWithCurried<F extends (...args: any) => any>(
fn: F

@@ -24,4 +24,4 @@ ): {

return (...args) =>
args.length == fn.length - 1 ? curried => fn(...[...args, curried]) : fn(...args);
args.length == fn.length - 1 ? (curried: any) => fn(...[...args, curried]) : fn(...args);
}
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