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

async-compatibilty

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-compatibilty - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

8

package.json
{
"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)
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