Socket
Socket
Sign inDemoInstall

metal

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metal - npm Package Compare versions

Comparing version 2.6.4 to 2.13.0

11

lib/coreNamed.js

@@ -35,2 +35,3 @@ 'use strict';

exports.isString = isString;
exports.isServerSide = isServerSide;
exports.nullFunction = nullFunction;

@@ -315,2 +316,12 @@ var compatibilityModeData_ = void 0;

/**
* Sets to true if running inside Node.js environment with extra check for
* `process.browser` to skip Karma runner environment. Karma environment has
* `process` defined even though it runs on the browser.
* @return {boolean}
*/
function isServerSide() {
return typeof process !== 'undefined' && typeof process.env !== 'undefined' && process.env.NODE_ENV !== 'test' && !process.browser;
}
/**
* Null function used for default values of callbacks, etc.

@@ -317,0 +328,0 @@ * @return {void} Nothing.

2

package.json
{
"name": "metal",
"version": "2.6.4",
"version": "2.13.0",
"description": "Core functions from Metal.js, with utilities for dealing with arrays, objects and others.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -287,2 +287,15 @@ 'use strict';

/**
* Sets to true if running inside Node.js environment with extra check for
* `process.browser` to skip Karma runner environment. Karma environment has
* `process` defined even though it runs on the browser.
* @return {boolean}
*/
export function isServerSide() {
return typeof process !== 'undefined' &&
typeof process.env !== 'undefined' &&
process.env.NODE_ENV !== 'test' &&
!process.browser;
}
/**
* Null function used for default values of callbacks, etc.

@@ -289,0 +302,0 @@ * @return {void} Nothing.

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