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.0 to 1.0.1

6

lib/index.js

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

var matches = v.match && v.match(FLOAT_REGEX);
return (matches !== undefined && matches.constructor === Array && matches.length > 1);
return (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].toString());
output = output.replace(generateToken(key), v[key]);
}

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

{
"name": "style-value-types",
"version": "1.0.0",
"version": "1.0.1",
"description": "Parsers, transformers and tests for special value types, eg: %, hex codes etc.",
"main": "index.js",
"main": "lib/index.js",
"types": "src/index.d.ts",

@@ -7,0 +7,0 @@ "files": [

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