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

astype

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astype - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

dist/number.js

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

if (typeof input === 'string' && allowFindInString && /\d/igm.test(input)) {
return Number(input.replace(/\D/igm, ''));
return Number(input.replace(/[^.\d]/igm, ''));
}

@@ -41,0 +41,0 @@ if (allowNaN) return NaN;else return 0;

{
"name": "astype",
"version": "0.1.0",
"version": "0.1.1",
"description": "Convert unknown type to certain type",

@@ -5,0 +5,0 @@ "homepage": "",

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