async-compatibilty
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "async-compatibilty", | ||
"version": "1.3.0", | ||
"description": "Compatibility functions for writing libraries that support both callbacks and promises", | ||
"version": "1.4.0", | ||
"description": "Compatibility functions for writing libraries that support synchronous, callback and promise signatures", | ||
"main": "index.js", | ||
@@ -16,3 +16,3 @@ "engines": { | ||
"type": "git", | ||
"url": "git@github.com:kmalakoff/async-compatibility.git" | ||
"url": "git@github.com:kmalakoff/async-compat.git" | ||
}, | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"homepage": "https://github.com/kmalakoff/async-compatibility", | ||
"homepage": "https://github.com/kmalakoff/async-compat", | ||
"dependencies": { | ||
@@ -31,0 +31,0 @@ "is-error": "^2.2.2", |
@@ -1,25 +0,6 @@ | ||
## reduce-deep | ||
## async-compatibilty | ||
Deep reduce an array. | ||
Do not use this library. Use async-compat instead. Thank you! | ||
``` | ||
var reduceDeep = require('reduce-deep'); | ||
var assert = require('assert'); | ||
function flattenDeep(array) { | ||
return reduceDeep( | ||
array, | ||
function (memo, value) { | ||
memo.push(value); | ||
return memo; | ||
}, | ||
[] | ||
); | ||
} | ||
var array1 = [1, [2, [3, [4]], 5]]; | ||
assert.deepStrictEqual(flattenDeep(array1), [1, 2, 3, 4, 5]); | ||
var array2 = [[], [[]], [[], [[[]]]]]; | ||
assert.deepStrictEqual(flattenDeep(array2), []); | ||
``` | ||
[npm](https://www.npmjs.com/package/async-compat) | ||
[Github](https://github.com/kmalakoff/async-compat) |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
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
2449
3
0
7
1