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 0.4.0 to 0.4.1

5

changelog.md

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

### Version 0.4.1 (2015-01-08) ###
- Fixed: \f is now recognized as a newline.
### Version 0.4.0 (2014-12-19) ###

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

4

index.js

@@ -1,2 +0,2 @@

// Copyright 2014 Simon Lydell
// Copyright 2014, 2015 Simon Lydell
// X11 (“MIT”) Licensed. (See LICENSE.)

@@ -6,3 +6,3 @@

// (run `npm run build`).
module.exports = /((['"])(?:(?!\2)[^\\\r\n]|\\(?:\r\n|[\s\S]))*(\2)?)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)|(url\((?!\s*["'])\s*(?:[^"'()\\\s]|\\(?:[\da-fA-F]{1,6}\s?|.))*(?:\s*\))?)|((?:[@.]?(?!-?\d)|\#)(?!-+(?![\w\-\u0080-\uFFFF\\]))(?:[\w\-\u0080-\uFFFF]|\\(?:[\da-fA-F]{1,6}\s?|.))+)|([~|^$*]?=|[>~+*\/]|-)|([|[\](){},;!%]|:{1,2})|(\s+)|(^$|[\s\S])/g
module.exports = /((['"])(?:(?!\2)[^\\\r\n\f]|\\(?:\r\n|[\s\S]))*(\2)?)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)|(url\((?!\s*["'])\s*(?:[^"'()\\\s]|\\(?:[\da-fA-F]{1,6}\s?|[^\r\n\f]))*(?:\s*\))?)|((?:[@.]?(?!-?\d)|\#)(?!-+(?![\w\-\u0080-\uFFFF\\]))(?:[\w\-\u0080-\uFFFF]|\\(?:[\da-fA-F]{1,6}\s?|[^\r\n\f]))+)|([~|^$*]?=|[>~+*\/]|-)|([|[\](){},;!%]|:{1,2})|(\s+)|(^$|[\s\S])/g

@@ -9,0 +9,0 @@ module.exports.matchToToken = function(match) {

{
"name": "css-tokens",
"version": "0.4.0",
"version": "0.4.1",
"author": "Simon Lydell",

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

@@ -1,2 +0,2 @@

// Copyright 2014 Simon Lydell
// Copyright 2014, 2015 Simon Lydell
// X11 (“MIT”) Licensed. (See LICENSE.)

@@ -76,4 +76,7 @@

match("\ra", "\r")
match(" \t\n\r \r\n")
match(" \t\n\r \r\n-1", " \t\n\r \r\n")
match("\f")
match("\f\f\f")
match("\fa", "\f")
match(" \t\n\r\f \r\n")
match(" \t\n\r\f \r\n-1", " \t\n\r\f \r\n")

@@ -90,3 +93,3 @@ })

match("/*/*/")
match("/*\n\r \r\n*/")
match("/*\n\r\f \r\n*/")

@@ -119,2 +122,4 @@ match("/*", {closed: false})

match('"\\\r"')
match("'\\\f'")
match('"\\\f"')
match("'\\\r\n'")

@@ -135,2 +140,4 @@ match('"\\\r\n"')

match('"\r', '"', {closed: false})
match("'\f", "'", {closed: false})
match('"\f', '"', {closed: false})
match("'\r\n", "'", {closed: false})

@@ -142,2 +149,4 @@ match('"\r\n', '"', {closed: false})

match('"\\\r', {closed: false})
match("'\\\f", {closed: false})
match('"\\\f', {closed: false})
match("'\\\r\n", {closed: false})

@@ -265,2 +274,6 @@ match('"\\\r\n', {closed: false})

match("url(\fhttp://www.w3.org/2000/svg\f)")
match("url(\f'http://www.w3.org/2000/svg'\f)", false)
match('url(\f"http://www.w3.org/2000/svg"\f)', false)
match("url(\r\nhttp://www.w3.org/2000/svg\r\n)")

@@ -280,2 +293,3 @@ match("url(\r\n'http://www.w3.org/2000/svg'\r\n)", false)

match("url(\\\r)", "url(")
match("url(\\\f)", "url(")
match("url(\\\r\n)", "url(")

@@ -326,8 +340,11 @@ match("url(foo)code url(another foo)", "url(foo)")

match("url(\r")
match("url(\f")
match("url(\r\n")
match("url(a\n", "url(a")
match("url(a\r", "url(a")
match("url(a\f", "url(a")
match("url(a\r\n", "url(a")
match("url(a\nb", "url(a")
match("url(a\rb", "url(a")
match("url(a\fb", "url(a")
match("url(a\r\nb", "url(a")

@@ -360,2 +377,3 @@

match(c + "$", false)
match(c + "a\u00a0\u2028\u2029b") // Unicode whitespace is allowed.

@@ -412,2 +430,3 @@ match(c + "-a")

match(c + "\\\r", false)
match(c + "\\\f", false)
match(c + "\\\r\n", false)

@@ -481,2 +500,3 @@ })

match("#\\\r", false)
match("#\\\f", false)
match("#\\\r\n", false)

@@ -483,0 +503,0 @@

Sorry, the diff of this file is not supported yet

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