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

style-value-types

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

style-value-types - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

lib/index.d.ts

6

lib/index.js

@@ -48,3 +48,3 @@ "use strict";

var matches = v.match && v.match(FLOAT_REGEX);
return (matches.constructor === Array && matches.length > 1);
return (matches !== undefined && matches.constructor === Array && matches.length > 1);
},

@@ -58,3 +58,3 @@ parse: function (v) {

var counter = 0;
var template = prop.replace(FLOAT_REGEX, function () { return generateToken(counter++); });
var template = prop.replace(FLOAT_REGEX, function () { return generateToken("" + counter++); });
return function (v) {

@@ -64,3 +64,3 @@ var output = template;

if (v.hasOwnProperty(key)) {
output = output.replace(generateToken(key), v[key]);
output = output.replace(generateToken(key), v[key].toString());
}

@@ -67,0 +67,0 @@ }

{
"name": "style-value-types",
"version": "1.0.2",
"version": "1.0.3",
"description": "Parsers, transformers and tests for special value types, eg: %, hex codes etc.",

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

Sorry, the diff of this file is not supported yet

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