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

superagent-as-promised

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superagent-as-promised - npm Package Compare versions

Comparing version 3.2.1 to 4.0.0

3

index.coffee.md

@@ -5,4 +5,5 @@ SuperAgent as Promised

# Request.Request.prototype.end = Promise.promisify Request.Request.prototype.end
NativePromise = Promise
module.exports = (Request,Promise = require 'bluebird') ->
module.exports = (Request,Promise = NativePromise) ->
Request.Request.prototype.endAsync = ->

@@ -9,0 +10,0 @@ new Promise (resolve,reject) =>

// Generated by CoffeeScript 1.10.0
(function() {
var NativePromise;
NativePromise = Promise;
module.exports = function(Request, Promise) {
if (Promise == null) {
Promise = require('bluebird');
Promise = NativePromise;
}

@@ -7,0 +11,0 @@ Request.Request.prototype.endAsync = function() {

{
"name": "superagent-as-promised",
"version": "3.2.1",
"version": "4.0.0",
"description": "SuperAgent with a Promise twist",

@@ -17,6 +17,4 @@ "main": "index.js",

"license": "MIT",
"dependencies": {
"bluebird": "^3.0.5"
},
"devDependencies": {
"bluebird": "^3.0.5",
"chai": "^3.4.1",

@@ -23,0 +21,0 @@ "chai-as-promised": "^5.1.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