Socket
Socket
Sign inDemoInstall

@google-cloud/promisify

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/promisify - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

14

build/src/index.js

@@ -77,5 +77,6 @@ "use strict";

// clang-format off
return (typeof Class.prototype[methodName] === 'function' && // is it a function?
!/(^_|(Stream|_)|promise$)|^constructor$/.test(methodName) && // is it promisable?
exclude.indexOf(methodName) === -1); // is it blacklisted?
return (!exclude.includes(methodName) &&
typeof Class.prototype[methodName] === 'function' && // is it a function?
!/(^_|(Stream|_)|promise$)|^constructor$/.test(methodName) // is it promisable?
);
// clang-format on

@@ -134,5 +135,6 @@ });

// clang-format off
return (typeof Class.prototype[methodName] === 'function' && // is it a function?
!/^_|(Stream|_)|^constructor$/.test(methodName) && // is it callbackifyable?
exclude.indexOf(methodName) === -1); // is it blacklisted?
return (!exclude.includes(methodName) &&
typeof Class.prototype[methodName] === 'function' && // is it a function?
!/^_|(Stream|_)|^constructor$/.test(methodName) // is it callbackifyable?
);
// clang-format on

@@ -139,0 +141,0 @@ });

@@ -7,2 +7,9 @@ # Changelog

### [2.0.3](https://www.github.com/googleapis/nodejs-promisify/compare/v2.0.2...v2.0.3) (2020-09-04)
### Bug Fixes
* allow excluding accessor methods ([#228](https://www.github.com/googleapis/nodejs-promisify/issues/228)) ([114d8bc](https://www.github.com/googleapis/nodejs-promisify/commit/114d8bcef7093bdfda195a15e0c2f376195fd3fc))
### [2.0.2](https://www.github.com/googleapis/nodejs-promisify/compare/v2.0.1...v2.0.2) (2020-07-06)

@@ -9,0 +16,0 @@

{
"name": "@google-cloud/promisify",
"version": "2.0.2",
"version": "2.0.3",
"description": "A simple utility for promisifying functions and classes.",

@@ -23,3 +23,5 @@ "main": "build/src/index.js",

"clean": "gts clean",
"precompile": "gts clean"
"precompile": "gts clean",
"api-extractor": "api-extractor run --local",
"api-documenter": "api-documenter yaml --input-folder=temp"
},

@@ -46,3 +48,5 @@ "keywords": [],

"sinon": "^9.0.0",
"typescript": "^3.8.3"
"typescript": "^3.8.3",
"@microsoft/api-documenter": "^7.8.10",
"@microsoft/api-extractor": "^7.8.10"
},

@@ -49,0 +53,0 @@ "engines": {

@@ -17,2 +17,5 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

A comprehensive list of changes in each version may be found in
[the CHANGELOG](https://github.com/googleapis/nodejs-promisify/blob/master/CHANGELOG.md).
* [Google Cloud Common Promisify Node.js Client API Reference][client-docs]

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