New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

charybdis

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

charybdis - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

index.js

@@ -1,2 +0,4 @@

const Q = require('q')
if (!('Promise' in this)) {
var Promise = require('bluebird')
}
const EventEmitter = require('events').EventEmitter

@@ -21,3 +23,3 @@ const util = require('util')

const stream = new Writable({objectMode: true})
const deferred = Q.defer()
const deferred = Promise.defer()

@@ -24,0 +26,0 @@ const stats = stream.stats = {

{
"name": "charybdis",
"author": "jden <jason@denizac.org>",
"version": "0.1.1",
"version": "0.1.2",
"description": "drain an object stream and wrap it in a promise",

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

"dependencies": {
"q": "~0.9.6",
"refcount": "~0.1.2"
"refcount": "~0.1.2",
"bluebird": "~0.11.5-0"
}
}
var chai = require('chai')
chai.should()
var ReadStream = require('stream').Readable
var Q = require('q')
var Promise = require('bluebird')
chai.use(require('chai-interface'))

@@ -21,3 +21,3 @@

if (obj.i % 2) { return false }
var dfd = Q.defer()
var dfd = Promise.defer()
dfds.push(dfd)

@@ -66,3 +66,3 @@ return dfd.promise

rs._read = function () {
this.push(i ? Q({i: i--}) : null)
this.push(i ? Promise.resolve({i: i--}) : null)
}

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