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

reshow-runtime

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-runtime - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

es/helpers/typeof.js

9

es/getTypeOf.js

@@ -1,2 +0,2 @@

var getTypeOf = function getTypeOf(val) {
var getTypeOf = function getTypeOf(val, name) {
if (Number.isNaN(val)) {

@@ -6,5 +6,8 @@ return 'NaN';

try {
return Object.getPrototypeOf(val).constructor.name;
if (!name) {
name = Object.getPrototypeOf(val).constructor.name.toLowerCase();
}
return name;
} catch (ex) {
return Object.prototype.toString.call(val).replace(/^\[object\s(.*)\]$/, '$1');
return Object.prototype.toString.call(val).replace(/^\[object\s(.*)\]$/, '$1').toLowerCase();
}

@@ -11,0 +14,0 @@ };

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

});
var getTypeOf = function getTypeOf(val) {
var getTypeOf = function getTypeOf(val, name) {
if (Number.isNaN(val)) {

@@ -12,5 +12,8 @@ return 'NaN';

try {
return Object.getPrototypeOf(val).constructor.name;
if (!name) {
name = Object.getPrototypeOf(val).constructor.name.toLowerCase();
}
return name;
} catch (ex) {
return Object.prototype.toString.call(val).replace(/^\[object\s(.*)\]$/, '$1');
return Object.prototype.toString.call(val).replace(/^\[object\s(.*)\]$/, '$1').toLowerCase();
}

@@ -17,0 +20,0 @@ };

{
"name": "reshow-runtime",
"version": "0.0.6",
"modules.root": "es",
"version": "0.0.7",
"description": "Babel runtime alternative",

@@ -11,3 +10,13 @@ "repository": "react-atomic/reshow",

"author": "Hill <hill@kimo.com>",
"license": "MIT"
"license": "MIT",
"devDependencies": {
"chai": "*",
"jsdom": "*",
"jsdom-global": "*",
"mocha": "*"
},
"scripts": {
"test": "mocha 'tests/**/*.js' -r jsdom-global/register",
"prepublishOnly": "npm run test"
}
}
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