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.4.7 to 1.5.0

dist/cjs/asyncFunction.cjs

46

package.json
{
"name": "async-compat",
"version": "1.4.7",
"version": "1.5.0",
"description": "Compatibility functions for writing libraries that support synchronous, callback and promise signatures",

@@ -19,13 +19,7 @@ "keywords": [

"author": "Kevin Malakoff <kmalakoff@gmail.com> (https://github.com/kmalakoff)",
"main": "lib/index.js",
"main": "dist/cjs/index.cjs",
"types": "dist/types/index.d.ts",
"files": [
"lib"
"dist"
],
"scripts": {
"format": "prettier --write .",
"lint": "eslint .",
"prepublishOnly": "npm run lint && depcheck",
"test": "mocha-compat test/spec/**/*.test.js",
"test:engines": "nvu engines npm test"
},
"dependencies": {

@@ -36,16 +30,26 @@ "is-error": "^2.2.2",

"devDependencies": {
"@typescript-eslint/parser": "^5.30.7",
"depcheck": "^1.4.3",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.4",
"eslint-plugin-promise": "^6.0.0",
"mocha-compat": "^3.5.5",
"prettier": "^2.7.1"
"@biomejs/biome": "^1.9.4",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.3",
"mocha-compat": "^3.6.2",
"pinkie-promise": "^2.0.1",
"ts-swc-loaders": "^1.8.10"
},
"engines": {
"node": ">=0.8"
},
"tsds": {
"source": "src/index.mjs",
"targets": [
"cjs"
]
},
"scripts": {
"build": "tsds build",
"deploy": "tsds deploy",
"format": "biome check --write --unsafe src/ test/",
"test": "ts-swc mocha-compat test/spec/**/*.test.js --no-timeouts",
"test:engines": "nvu engines npm test",
"version": "tsds version"
}
}
}

@@ -20,3 +20,3 @@ ## async-compat

compat.asyncFunction(fn, false /* no callbacks */, 1, function (err, result) {
assert.ok(!err);
assert.ok(!err, err ? err.message : '');
assert.equal(result, 4);

@@ -43,3 +43,3 @@ });

compat.asyncFunction(callbackFn, true /* no callbacks */, 1, function (err, result) {
assert.ok(!err);
assert.ok(!err, err ? err.message : '');
assert.equal(result, 4);

@@ -66,3 +66,3 @@ });

compat.asyncFunction(promiseFn, false /* no callbacks */, 1, function (err, result) {
assert.ok(!err);
assert.ok(!err, err ? err.message : '');
assert.equal(result, 4);

@@ -69,0 +69,0 @@ });

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