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

@xolvio/fiber-utils

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xolvio/fiber-utils - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

3

__tests__/index-spec.js

@@ -268,2 +268,5 @@ describe('fiber-utils', function () {

var myFunc = myObject.myFunc;
myFunc.bind = function () {
return myFunc;
}

@@ -270,0 +273,0 @@ var myObjectWrapper = fiberUtils.wrapAsyncObject(myObject, ['myFunc'], {

5

index.js

@@ -64,2 +64,3 @@ var Fiber = require('fibers');

var asyncMethod = object[propertyName];
var boundAsyncMethod = asyncMethod.bind(object);
if (_.isFunction(asyncMethod)) {

@@ -72,3 +73,3 @@ var syncMethod = wrapAsync(asyncMethod, object);

}
wrapper[asyncMethodName] = asyncMethod.bind(object);
wrapper[asyncMethodName] = boundAsyncMethod;

@@ -81,3 +82,3 @@ var syncMethodName = propertyName + 'Sync';

wrapper[propertyName] = syncByDefault ? syncMethod : asyncMethod;
wrapper[propertyName] = syncByDefault ? syncMethod : boundAsyncMethod;
}

@@ -84,0 +85,0 @@ });

{
"name": "@xolvio/fiber-utils",
"version": "2.0.1",
"version": "2.0.2",
"description": "Fiber utilities to convert async functions to sync ones",

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

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