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

async-compat

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-compat - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

dist/cjs/types.cjs

6

dist/types/asyncFunction.d.ts

@@ -1,2 +0,4 @@

declare function _exports(fn: any, useCallback: any, arg1: any, arg2: any, arg3: any, arg4: any, arg5: any, arg6: any, callback: any, ...args: any[]): any;
export = _exports;
import type { AsyncCallback } from './types';
type Optional = AsyncCallback | undefined | unknown;
export default function asyncFunction(fn: any, useCallback: boolean, arg1?: Optional, arg2?: Optional, arg3?: Optional, arg4?: Optional, arg5?: Optional, arg6?: Optional, callback?: Optional): any;
export {};

@@ -1,2 +0,1 @@

declare function _exports(value: any, callback: any): any;
export = _exports;
export default function asyncValue(value: any, callback: any): any;

@@ -1,2 +0,1 @@

declare function _exports(result: any, value: any): any;
export = _exports;
export default function defaultValue(result: any, value: any): any;
{
"name": "async-compat",
"version": "1.5.0",
"version": "1.5.1",
"description": "Compatibility functions for writing libraries that support synchronous, callback and promise signatures",
"keywords": [
"async",
"compatibilty",
"compatibility",
"library",

@@ -19,3 +19,13 @@ "callback",

"author": "Kevin Malakoff <kmalakoff@gmail.com> (https://github.com/kmalakoff)",
"type": "module",
"exports": {
".": {
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs",
"types": "./dist/types/index.d.ts"
},
"./*": "./*"
},
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
"types": "dist/types/index.d.ts",

@@ -41,6 +51,3 @@ "files": [

"tsds": {
"source": "src/index.mjs",
"targets": [
"cjs"
]
"source": "src/index.ts"
},

@@ -51,3 +58,3 @@ "scripts": {

"format": "biome check --write --unsafe src/ test/",
"test": "ts-swc mocha-compat test/spec/**/*.test.js --no-timeouts",
"test": "tsds test:node --no-timeouts",
"test:engines": "nvu engines npm test",

@@ -54,0 +61,0 @@ "version": "tsds version"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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