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

node-powertools

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-powertools - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

7

dist/index.js

@@ -505,7 +505,10 @@ (function (root, factory) {

// Prepare wether we should execute the function
const shouldExecute = !schemaDefault.types.includes('any') && !schemaDefault.types.includes('function');
// Run functions
if (typeof schemaDefault.value === 'function') {
if (typeof schemaDefault.value === 'function' && shouldExecute) {
schemaDefault.value = schemaDefault.value();
}
if (typeof schemaDefault.default === 'function') {
if (typeof schemaDefault.default === 'function' && shouldExecute) {
schemaDefault.default = schemaDefault.default();

@@ -512,0 +515,0 @@ }

{
"name": "node-powertools",
"version": "1.4.1",
"version": "1.4.2",
"description": "Powerful assistive functions for Node and Browser environments.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -505,7 +505,10 @@ (function (root, factory) {

// Prepare wether we should execute the function
const shouldExecute = !schemaDefault.types.includes('any') && !schemaDefault.types.includes('function');
// Run functions
if (typeof schemaDefault.value === 'function') {
if (typeof schemaDefault.value === 'function' && shouldExecute) {
schemaDefault.value = schemaDefault.value();
}
if (typeof schemaDefault.default === 'function') {
if (typeof schemaDefault.default === 'function' && shouldExecute) {
schemaDefault.default = schemaDefault.default();

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