async-compat
Advanced tools
Comparing version 1.4.7 to 1.5.0
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15471
6
15
123
1