Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-utility-belt

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-utility-belt - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

4

es6/file/compute_file_hash.js

@@ -34,3 +34,3 @@ import SparkMD5 from 'spark-md5';

if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -48,3 +48,3 @@ console.info('Hashing chunk ' + (currentChunk + 1) + ' of ' + chunks);

if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
var hashTime = (new Date() - startTime) / 1000 % 60;

@@ -51,0 +51,0 @@

@@ -57,3 +57,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

expandedUrl = formatText(url, urlTemplateSpec);
} else if (undefined !== 'production') {
} else if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -69,3 +69,3 @@ console.warn('Supplied urlTemplateSpec was not an array or object. Ignoring...');

expandedUrl += stringifyAsQueryParam(query);
} else if (undefined !== 'production') {
} else if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -72,0 +72,0 @@ console.warn('Supplied query was not a string or object. Ignoring...');

@@ -70,3 +70,3 @@ /**

if (fnParams != null && !Array.isArray(fnParams)) {
if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -73,0 +73,0 @@ console.warn("Params to pass into safeInvoke's fn is not an array. Ignoring...", fnParams);

@@ -15,3 +15,3 @@ /**

if (typeof text !== 'string') {
if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -22,3 +22,3 @@ console.warn('Supplied text for truncation was not a string. Ignoring...');

} else if (typeof truncIndex !== 'number') {
if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -25,0 +25,0 @@ console.warn('Supplied index for truncating text was not a non-negative number. ' + 'Ignoring...');

@@ -47,3 +47,3 @@ 'use strict';

if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -61,3 +61,3 @@ console.info('Hashing chunk ' + (currentChunk + 1) + ' of ' + chunks);

if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
var hashTime = (new Date() - startTime) / 1000 % 60;

@@ -64,0 +64,0 @@

@@ -75,3 +75,3 @@ 'use strict';

expandedUrl = (0, _format_text2.default)(url, urlTemplateSpec);
} else if (undefined !== 'production') {
} else if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -87,3 +87,3 @@ console.warn('Supplied urlTemplateSpec was not an array or object. Ignoring...');

expandedUrl += (0, _stringify_as_query_param2.default)(query);
} else if (undefined !== 'production') {
} else if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -90,0 +90,0 @@ console.warn('Supplied query was not a string or object. Ignoring...');

@@ -76,3 +76,3 @@ 'use strict';

if (fnParams != null && !Array.isArray(fnParams)) {
if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -79,0 +79,0 @@ console.warn("Params to pass into safeInvoke's fn is not an array. Ignoring...", fnParams);

@@ -21,3 +21,3 @@ 'use strict';

if (typeof text !== 'string') {
if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -28,3 +28,3 @@ console.warn('Supplied text for truncation was not a string. Ignoring...');

} else if (typeof truncIndex !== 'number') {
if (undefined !== 'production') {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console

@@ -31,0 +31,0 @@ console.warn('Supplied index for truncating text was not a non-negative number. ' + 'Ignoring...');

{
"name": "js-utility-belt",
"version": "1.4.3",
"version": "1.4.4",
"description": "Opinionated collection of JavaScript nice-to-haves",

@@ -5,0 +5,0 @@ "homepage": "https://www.bigchain.io/",

Sorry, the diff of this file is not supported yet

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