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

apr-intercept

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apr-intercept - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

11

index.js

@@ -19,5 +19,8 @@ /**

*/
module.exports = (p) => new Promise((resolve) => p.then(
(...res) => resolve([null, ...res]),
(err) => resolve([err, undefined])
));
module.exports = p =>
new Promise(resolve =>
p.then(
(...res) => resolve([null, ...res]),
err => resolve([err, undefined])
)
);
{
"name": "apr-intercept",
"version": "1.0.2",
"version": "1.0.3",
"description": "Intercepts errors, the Go way!",

@@ -13,5 +13,13 @@ "keywords": [

"control-flow",
"awaitful"
"awaitful",
"promises",
"async-await",
"es2015",
"es2016",
"es2017",
"es6",
"es7",
"es8"
],
"homepage": "https://ramitos.github.io/apr#intercept",
"homepage": "https://apr.js.org#intercept",
"bugs": "https://github.com/ramitos/apr/issues",

@@ -18,0 +26,0 @@ "license": "MIT",

@@ -12,2 +12,3 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. -->

- `p`
- `input` **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**

@@ -14,0 +15,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