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.2.0 to 0.3.0

component.json

9

changelog.md

@@ -0,1 +1,10 @@

### Version 0.3.0 (2014-06-19) ###
- Added: Support for `--custom-properties`. (Backwards-incompatible change.)
- Fixed: `@-` and `.-` (followed by a non-name character) are now matched as
invalid + operator, instead of name. Note that `#-` is actually allowed by
the spec. That used to be matched as a name, but is now matched as invalid +
operator, too. It doesn’t matter. (Backwards-incompatible change.)
### Version 0.2.0 (2014-03-11) ###

@@ -2,0 +11,0 @@

6

index.js

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

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

@@ -7,8 +7,8 @@ "whitespace",

"number",
"unquotedUrl",
"name",
"operator",
"punctuation",
"unquotedUrl",
"name",
"empty",
"invalid"
]
{
"name": "css-tokens",
"version": "0.2.0",
"version": "0.3.0",
"author": "Simon Lydell",

@@ -8,3 +8,2 @@ "license": "MIT",

"main": "index.js",
"repository": "lydell/css-tokens",
"keywords": [

@@ -17,2 +16,3 @@ "CSS",

],
"repository": "lydell/css-tokens",
"scripts": {

@@ -25,2 +25,2 @@ "test": "mocha"

}
}
}

@@ -27,3 +27,4 @@ Overview [![Build Status](https://travis-ci.org/lydell/css-tokens.png?branch=master)](https://travis-ci.org/lydell/css-tokens)

`npm install css-tokens`
- `npm install css-tokens`
- `component install lydell/css-tokens`

@@ -75,10 +76,2 @@ ```js

### `@` or `.` followed by a single `-` ###
Ideally, `@-` and `.-` (followed by a non-name character) would be matched as
invalid + operator, but they are in fact matched as names. This _could_ be
fixed, but isn’t to simplify the regex. It doesn’t really matter.
Note that `#-` is actually allowed by the spec.
### Quoted vs. unquoted urls ###

@@ -85,0 +78,0 @@

@@ -206,3 +206,3 @@ // Copyright 2014 Simon Lydell

match("-''", "-")
match("--vendor-foo", "-")
match("--custom-prop", false)

@@ -349,4 +349,4 @@ })

match(c + "-π")
match(c + "--a", false)
match(c + "--\\A", false)
match(c + "--a")
match(c + "--\\A")
match(c + "a-")

@@ -361,2 +361,7 @@ match(c + "a-b")

match(c + "-ms-foo")
match(c + "--custom-prop")
match(c + "-----dashes-ftw")
match(c + "-", false)
match(c + "--", false)
match(c + "---", false)

@@ -396,4 +401,2 @@ match(c + "\\0")

match("-", false) // `@-` and `.-` unfortunately match, but whatever.
match("#_")

@@ -419,3 +422,2 @@ match("#a")

match("#-") // Actually allowed by the spec.
match("#-a")

@@ -422,0 +424,0 @@ match("#-0")

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