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

css-tokens

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-tokens - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

changelog.md

@@ -0,1 +1,6 @@

### Version 1.0.1 (2015-06-20) ###
- Fixed: Declared an undeclared variable.
### Version 1.0.0 (2015-02-26) ###

@@ -2,0 +7,0 @@

11

generate-index.js

@@ -10,3 +10,12 @@ // Copyright 2014 Simon Lydell

var code = fs.readFileSync("index.js").toString()
code = code.replace(/\/.+\/.+/, "/" + regex.source.replace(/\//g, "\\/") + "/g")
var regexString = ""
// Older V8 versions are buggy and don’t escape slashes correctly.
if (RegExp("/").source === "/") {
regexString = "/" + regex.source.replace(/\//g, "\\/") + "/g"
} else {
regexString = regex.toString()
}
code = code.replace(/\/.+\/.+/, regexString)
fs.writeFileSync("index.js", code)

2

index.js

@@ -9,3 +9,3 @@ // Copyright 2014, 2015 Simon Lydell

module.exports.matchToToken = function(match) {
token = {type: "invalid", value: match[0]}
var token = {type: "invalid", value: match[0]}
if (match[ 1]) token.type = "string" , token.closed = !!match[3]

@@ -12,0 +12,0 @@ else if (match[ 4]) token.type = "comment", token.closed = !!match[5]

{
"name": "css-tokens",
"version": "1.0.0",
"version": "1.0.1",
"author": "Simon Lydell",

@@ -21,5 +21,5 @@ "license": "MIT",

"devDependencies": {
"coffee-script": "^1.8.0",
"mocha": "^2.0.1"
"coffee-script": "~1.9.3",
"mocha": "^2.2.5"
}
}

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