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

apr-constant

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-constant - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

8

index.js

@@ -22,8 +22,2 @@ /**

*/
module.exports = (...args) => {
return () => {
return new Promise((resolve) => {
resolve(...args);
});
};
};
module.exports = (...args) => () => new Promise(resolve => resolve(...args));

14

package.json
{
"name": "apr-constant",
"version": "1.0.3",
"version": "1.0.4",
"description": "Returns a promise that when called, then's with the values provided. Useful as the first function in a waterfall.",

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

"control-flow",
"awaitful"
"awaitful",
"promises",
"async-await",
"es2015",
"es2016",
"es2017",
"es6",
"es7",
"es8"
],
"homepage": "https://ramitos.github.io/apr#constant",
"homepage": "https://apr.js.org#constant",
"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. -->

- `args` **...any**
- `arguments` **...any**

@@ -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