Socket
Socket
Sign inDemoInstall

bluebird

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluebird - npm Package Compare versions

Comparing version 0.9.10-0 to 0.9.10-1

3

js/main/captured_trace.js

@@ -29,3 +29,3 @@ /**

"\\b(?:Promise(?:Array|Spawn)?\\$_\\w+|tryCatch(?:1|2|Apply)|setTimeout" +
"|makeNodePromisified|processImmediate|nextTick" +
"|CatchFilter\\$_\\w+|makeNodePromisified|processImmediate|nextTick" +
"|Async\\$\\w+)\\b"

@@ -80,2 +80,3 @@ );

}
current.push( "From previous event:" );

@@ -82,0 +83,0 @@ var lines = current.concat( prev );

@@ -35,3 +35,3 @@ /**

function safePredicate( predicate, e ) {
function CatchFilter$_safePredicate( predicate, e ) {
var safeObject = {};

@@ -52,3 +52,3 @@ var retfilter = tryCatch1( predicate, safeObject, e );

CatchFilter.prototype.doFilter = function CatchFilter$doFilter( e ) {
CatchFilter.prototype.doFilter = function CatchFilter$_doFilter( e ) {
var cb = this._callback;

@@ -68,3 +68,3 @@

} else if( typeof item === "function" && !itemIsErrorType ) {
var shouldHandle = safePredicate(item, e);
var shouldHandle = CatchFilter$_safePredicate(item, e);
if( shouldHandle === errorObj ) {

@@ -71,0 +71,0 @@ this._promise._attachExtraTrace( errorObj.e );

@@ -93,3 +93,3 @@ /**

Promise.prototype.caught = Promise.prototype["catch"] =
function Promise$catch( fn ) {
function Promise$_catch( fn ) {
var len = arguments.length;

@@ -117,2 +117,4 @@ if( len > 1 ) {

fn = arguments[i];
this._resetTrace();
var catchFilter = new CatchFilter( catchInstances, fn, this );

@@ -699,2 +701,15 @@ return this._then( void 0, catchFilter.doFilter, void 0,

Promise.prototype._resetTrace = function Promise$_resetTrace( caller ) {
if( longStackTraces ) {
var context = this._peekContext();
var isTopLevel = context === void 0;
this._trace = new CapturedTrace(
typeof caller === "function"
? caller
: this._resetTrace,
isTopLevel
);
}
};
Promise.prototype._setTrace = function Promise$_setTrace( caller, parent ) {

@@ -701,0 +716,0 @@ if( longStackTraces ) {

@@ -29,3 +29,3 @@ /**

"\\b(?:Promise(?:Array|Spawn)?\\$_\\w+|tryCatch(?:1|2|Apply)|setTimeout" +
"|makeNodePromisified|processImmediate|nextTick" +
"|CatchFilter\\$_\\w+|makeNodePromisified|processImmediate|nextTick" +
"|Async\\$\\w+)\\b"

@@ -80,2 +80,3 @@ );

}
current.push( "From previous event:" );

@@ -82,0 +83,0 @@ var lines = current.concat( prev );

@@ -35,3 +35,3 @@ /**

function safePredicate( predicate, e ) {
function CatchFilter$_safePredicate( predicate, e ) {
var safeObject = {};

@@ -52,3 +52,3 @@ var retfilter = tryCatch1( predicate, safeObject, e );

CatchFilter.prototype.doFilter = function CatchFilter$doFilter( e ) {
CatchFilter.prototype.doFilter = function CatchFilter$_doFilter( e ) {
var cb = this._callback;

@@ -68,3 +68,3 @@

} else if( typeof item === "function" && !itemIsErrorType ) {
var shouldHandle = safePredicate(item, e);
var shouldHandle = CatchFilter$_safePredicate(item, e);
if( shouldHandle === errorObj ) {

@@ -71,0 +71,0 @@ this._promise._attachExtraTrace( errorObj.e );

@@ -93,3 +93,3 @@ /**

Promise.prototype.caught = Promise.prototype["catch"] =
function Promise$catch( fn ) {
function Promise$_catch( fn ) {
var len = arguments.length;

@@ -117,2 +117,4 @@ if( len > 1 ) {

fn = arguments[i];
this._resetTrace();
var catchFilter = new CatchFilter( catchInstances, fn, this );

@@ -695,2 +697,15 @@ return this._then( void 0, catchFilter.doFilter, void 0,

Promise.prototype._resetTrace = function Promise$_resetTrace( caller ) {
if( longStackTraces ) {
var context = this._peekContext();
var isTopLevel = context === void 0;
this._trace = new CapturedTrace(
typeof caller === "function"
? caller
: this._resetTrace,
isTopLevel
);
}
};
Promise.prototype._setTrace = function Promise$_setTrace( caller, parent ) {

@@ -697,0 +712,0 @@ if( longStackTraces ) {

{
"name": "bluebird",
"description": "Full featured Promises/A+ implementation with exceptionally good performance",
"version": "0.9.10-0",
"version": "0.9.10-1",
"keywords": [

@@ -6,0 +6,0 @@ "promise",

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