Comparing version 1.0.1 to 2.0.0
12
index.js
@@ -1,9 +0,13 @@ | ||
// Copyright 2014, 2015 Simon Lydell | ||
// X11 (“MIT”) Licensed. (See LICENSE.) | ||
// Copyright 2014, 2015, 2017 Simon Lydell | ||
// License: MIT. (See LICENSE.) | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}) | ||
// This regex comes from regex.coffee, and is inserted here by generate-index.js | ||
// (run `npm run build`). | ||
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]))+)|([~|^$*]?=|[>~+*\/]|-|[|[\](){},;!%]|::?)|([ \t\n\r\f]+)|(^$|[\s\S])/g | ||
exports.default = /((['"])(?:(?!\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]))+)|([~|^$*]?=|[>~+*\/]|-|[|[\](){},;!%]|::?)|([ \t\n\r\f]+)|(^$|[\s\S])/g | ||
module.exports.matchToToken = function(match) { | ||
exports.matchToToken = function(match) { | ||
var token = {type: "invalid", value: match[0]} | ||
@@ -10,0 +14,0 @@ if (match[ 1]) token.type = "string" , token.closed = !!match[3] |
{ | ||
"name": "css-tokens", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"author": "Simon Lydell", | ||
@@ -14,2 +14,5 @@ "license": "MIT", | ||
], | ||
"files": [ | ||
"index.js" | ||
], | ||
"repository": "lydell/css-tokens", | ||
@@ -22,5 +25,5 @@ "scripts": { | ||
"devDependencies": { | ||
"coffee-script": "~1.9.3", | ||
"mocha": "^2.2.5" | ||
"coffee-script": "~1.12.2", | ||
"mocha": "^3.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
109
1
8531
5
20
1