Comparing version 2.6.4 to 2.13.0
@@ -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. |
{ | ||
"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. |
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
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
59917
1745