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

dynamic-typing

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-typing - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

lib/index.js

@@ -18,2 +18,5 @@ 'use strict';

let number = Number(value);
if (number === 0 && !value.includes('0')) {
return value;
}
if (!Number.isNaN(number)) return number;

@@ -20,0 +23,0 @@ return value;

2

package.json
{
"name": "dynamic-typing",
"version": "0.1.0",
"version": "0.1.1",
"description": "Dynamically type a string",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -14,4 +14,7 @@ /**

let number = Number(value);
if (number === 0 && !value.includes('0')) {
return value;
}
if (!Number.isNaN(number)) return number;
return value;
}
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