@polkadot/util
Advanced tools
Comparing version 0.16.4 to 0.16.5
@@ -6,3 +6,10 @@ 'use strict'; | ||
// of the ISC license. See the LICENSE file for details. | ||
var isFunction = require('./is/function'); | ||
function apply(log, type, values) { | ||
if (values.length === 1 && isFunction(values[0])) { | ||
// flowlint-next-line unclear-type:off | ||
return apply(log, type, values[0]()); | ||
} | ||
console[log].apply(console, [new Date().toString(), type].concat(values)); | ||
@@ -9,0 +16,0 @@ } |
{ | ||
"name": "@polkadot/util", | ||
"version": "0.16.4", | ||
"version": "0.16.5", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143003
1377
2