Socket
Socket
Sign inDemoInstall

metal

Package Overview
Dependencies
Maintainers
3
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.0.0 to 2.2.3

16

lib/core.js

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

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -144,3 +144,3 @@

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -156,3 +156,3 @@

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -179,3 +179,3 @@

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -202,3 +202,3 @@

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -227,3 +227,3 @@

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -239,3 +239,3 @@

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -245,3 +245,3 @@

core.isString = function isString(val) {
return typeof val === 'string';
return typeof val === 'string' || val instanceof String;
};

@@ -248,0 +248,0 @@

{
"name": "metal",
"version": "2.0.0",
"version": "2.2.3",
"description": "Core functions from Metal.js, with utilities for dealing with arrays, objects and others.",

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

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

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -117,3 +117,3 @@ static isDefAndNotNull(val) {

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -127,3 +127,3 @@ static isDocument(val) {

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -146,3 +146,3 @@ static isElement(val) {

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -165,3 +165,3 @@ static isNull(val) {

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -186,3 +186,3 @@ static isWindow(val) {

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/

@@ -196,6 +196,6 @@ static isPromise(val) {

* @param {*} val
* @return {Boolean}
* @return {boolean}
*/
static isString(val) {
return typeof val === 'string';
return typeof val === 'string' || val instanceof String;
}

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