Skip to content

Commit

Permalink
Update dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Dec 6, 2016
1 parent 9d8713e commit a455fd3
Show file tree
Hide file tree
Showing 6 changed files with 535 additions and 79 deletions.
2 changes: 1 addition & 1 deletion dist/cli.js
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node #!/usr/bin/env node
/*! /*!
CSSLint v1.0.3 CSSLint v1.0.4
Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved. Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
4 changes: 2 additions & 2 deletions dist/csslint-node.js
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! /*!
CSSLint v1.0.3 CSSLint v1.0.4
Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved. Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -41,7 +41,7 @@ var CSSLint = (function() {
embeddedRuleset = /\/\*\s*csslint([^\*]*)\*\//, embeddedRuleset = /\/\*\s*csslint([^\*]*)\*\//,
api = new parserlib.util.EventTarget(); api = new parserlib.util.EventTarget();


api.version = "1.0.3"; api.version = "1.0.4";


//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// Rule Management // Rule Management
Expand Down
152 changes: 133 additions & 19 deletions dist/csslint-rhino.js
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! /*!
CSSLint v1.0.3 CSSLint v1.0.4
Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved. Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -48,7 +48,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
*/ */
/* Version v1.0.0, Build time: 15-July-2016 12:36:10 */ /* Version v1.1.0, Build time: 6-December-2016 10:31:29 */
var parserlib = (function () { var parserlib = (function () {
var require; var require;
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
Expand Down Expand Up @@ -1266,6 +1266,8 @@ Parser.prototype = function() {
this._document(); this._document();
} else if (tokenStream.peek() === Tokens.SUPPORTS_SYM) { } else if (tokenStream.peek() === Tokens.SUPPORTS_SYM) {
this._supports(); this._supports();
} else if (tokenStream.peek() === Tokens.MEDIA_SYM) {
this._media();
} else if (!this._ruleset()) { } else if (!this._ruleset()) {
break; break;
} }
Expand Down Expand Up @@ -3300,6 +3302,7 @@ var Properties = module.exports = {
"align-items" : "flex-start | flex-end | center | baseline | stretch", "align-items" : "flex-start | flex-end | center | baseline | stretch",
"align-content" : "flex-start | flex-end | center | space-between | space-around | stretch", "align-content" : "flex-start | flex-end | center | space-between | space-around | stretch",
"align-self" : "auto | flex-start | flex-end | center | baseline | stretch", "align-self" : "auto | flex-start | flex-end | center | baseline | stretch",
"all" : "initial | inherit | unset",
"-webkit-align-items" : "flex-start | flex-end | center | baseline | stretch", "-webkit-align-items" : "flex-start | flex-end | center | baseline | stretch",
"-webkit-align-content" : "flex-start | flex-end | center | space-between | space-around | stretch", "-webkit-align-content" : "flex-start | flex-end | center | space-between | space-around | stretch",
"-webkit-align-self" : "auto | flex-start | flex-end | center | baseline | stretch", "-webkit-align-self" : "auto | flex-start | flex-end | center | baseline | stretch",
Expand Down Expand Up @@ -3345,7 +3348,12 @@ var Properties = module.exports = {
"-o-animation-name" : "[ none | <single-animation-name> ]#", "-o-animation-name" : "[ none | <single-animation-name> ]#",
"-o-animation-play-state" : "[ running | paused ]#", "-o-animation-play-state" : "[ running | paused ]#",


"appearance" : "icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal | none", "appearance" : "none | auto",
"-moz-appearance" : "none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",
"-ms-appearance" : "none | icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",
"-webkit-appearance" : "none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox | listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical",
"-o-appearance" : "none | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",

"azimuth" : "<azimuth>", "azimuth" : "<azimuth>",


//B //B
Expand Down Expand Up @@ -3716,7 +3724,10 @@ var Properties = module.exports = {
"text-align" : "left | right | center | justify | match-parent | start | end", "text-align" : "left | right | center | justify | match-parent | start | end",
"text-align-last" : 1, "text-align-last" : 1,
"text-anchor" : "start | middle | end", "text-anchor" : "start | middle | end",
"text-decoration" : "<text-decoration>", "text-decoration" : "<text-decoration-line> || <text-decoration-style> || <text-decoration-color>",
"text-decoration-color" : "<text-decoration-color>",
"text-decoration-line" : "<text-decoration-line>",
"text-decoration-style" : "<text-decoration-style>",
"text-emphasis" : 1, "text-emphasis" : 1,
"text-height" : 1, "text-height" : 1,
"text-indent" : "<length> | <percentage>", "text-indent" : "<length> | <percentage>",
Expand Down Expand Up @@ -4059,6 +4070,7 @@ function PropertyValuePart(text, line, col, optionalHint) {
case "deg": case "deg":
case "rad": case "rad":
case "grad": case "grad":
case "turn":
this.type = "angle"; this.type = "angle";
break; break;


Expand Down Expand Up @@ -5190,7 +5202,7 @@ TokenStream.prototype = mix(new TokenStreamBase(), {


if (/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(ident)) { if (/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(ident)) {
tt = Tokens.LENGTH; tt = Tokens.LENGTH;
} else if (/^deg|^rad$|^grad$/i.test(ident)) { } else if (/^deg|^rad$|^grad$|^turn$/i.test(ident)) {
tt = Tokens.ANGLE; tt = Tokens.ANGLE;
} else if (/^ms$|^s$/i.test(ident)) { } else if (/^ms$|^s$/i.test(ident)) {
tt = Tokens.TIME; tt = Tokens.TIME;
Expand Down Expand Up @@ -5575,7 +5587,6 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
} }
}); });



},{"../util/TokenStreamBase":27,"./PropertyValuePart":11,"./Tokens":18}],18:[function(require,module,exports){ },{"../util/TokenStreamBase":27,"./PropertyValuePart":11,"./Tokens":18}],18:[function(require,module,exports){
"use strict"; "use strict";


Expand Down Expand Up @@ -6333,9 +6344,15 @@ copy(ValidationTypes, {
Matcher.many([true /* length is required */], Matcher.many([true /* length is required */],
Matcher.cast("<length>").braces(2, 4), "inset", "<color>"), Matcher.cast("<length>").braces(2, 4), "inset", "<color>"),


"<text-decoration>": "<text-decoration-color>":
"<color>",

"<text-decoration-line>":
"none | [ underline || overline || line-through || blink ]", "none | [ underline || overline || line-through || blink ]",


"<text-decoration-style>":
"solid | double | dotted | dashed | wavy",

"<will-change>": "<will-change>":
"auto | <animateable-feature>#", "auto | <animateable-feature>#",


Expand Down Expand Up @@ -7315,6 +7332,29 @@ return require('parserlib');
var clone = (function() { var clone = (function() {
'use strict'; 'use strict';


var nativeMap;
try {
nativeMap = Map;
} catch(_) {
// maybe a reference error because no `Map`. Give it a dummy value that no
// value will ever be an instanceof.
nativeMap = function() {};
}

var nativeSet;
try {
nativeSet = Set;
} catch(_) {
nativeSet = function() {};
}

var nativePromise;
try {
nativePromise = Promise;
} catch(_) {
nativePromise = function() {};
}

/** /**
* Clones (copies) an Object using deep copying. * Clones (copies) an Object using deep copying.
* *
Expand All @@ -7332,14 +7372,16 @@ var clone = (function() {
* a particular depth. (optional - defaults to Infinity) * a particular depth. (optional - defaults to Infinity)
* @param `prototype` - sets the prototype to be used when cloning an object. * @param `prototype` - sets the prototype to be used when cloning an object.
* (optional - defaults to parent prototype). * (optional - defaults to parent prototype).
* @param `includeNonEnumerable` - set to true if the non-enumerable properties
* should be cloned as well. Non-enumerable properties on the prototype
* chain will be ignored. (optional - false by default)
*/ */
function clone(parent, circular, depth, prototype) { function clone(parent, circular, depth, prototype, includeNonEnumerable) {
var filter;
if (typeof circular === 'object') { if (typeof circular === 'object') {
depth = circular.depth; depth = circular.depth;
prototype = circular.prototype; prototype = circular.prototype;
filter = circular.filter; includeNonEnumerable = circular.includeNonEnumerable;
circular = circular.circular circular = circular.circular;
} }
// maintain two arrays for circular references, where corresponding parents // maintain two arrays for circular references, where corresponding parents
// and children have the same index // and children have the same index
Expand All @@ -7360,7 +7402,7 @@ function clone(parent, circular, depth, prototype) {
if (parent === null) if (parent === null)
return null; return null;


if (depth == 0) if (depth === 0)
return parent; return parent;


var child; var child;
Expand All @@ -7369,7 +7411,19 @@ function clone(parent, circular, depth, prototype) {
return parent; return parent;
} }


if (clone.__isArray(parent)) { if (parent instanceof nativeMap) {
child = new nativeMap();
} else if (parent instanceof nativeSet) {
child = new nativeSet();
} else if (parent instanceof nativePromise) {
child = new nativePromise(function (resolve, reject) {
parent.then(function(value) {
resolve(_clone(value, depth - 1));
}, function(err) {
reject(_clone(err, depth - 1));
});
});
} else if (clone.__isArray(parent)) {
child = []; child = [];
} else if (clone.__isRegExp(parent)) { } else if (clone.__isRegExp(parent)) {
child = new RegExp(parent.source, __getRegExpFlags(parent)); child = new RegExp(parent.source, __getRegExpFlags(parent));
Expand All @@ -7380,6 +7434,8 @@ function clone(parent, circular, depth, prototype) {
child = new Buffer(parent.length); child = new Buffer(parent.length);
parent.copy(child); parent.copy(child);
return child; return child;
} else if (parent instanceof Error) {
child = Object.create(parent);
} else { } else {
if (typeof prototype == 'undefined') { if (typeof prototype == 'undefined') {
proto = Object.getPrototypeOf(parent); proto = Object.getPrototypeOf(parent);
Expand All @@ -7401,6 +7457,30 @@ function clone(parent, circular, depth, prototype) {
allChildren.push(child); allChildren.push(child);
} }


if (parent instanceof nativeMap) {
var keyIterator = parent.keys();
while(true) {
var next = keyIterator.next();
if (next.done) {
break;
}
var keyChild = _clone(next.value, depth - 1);
var valueChild = _clone(parent.get(next.value), depth - 1);
child.set(keyChild, valueChild);
}
}
if (parent instanceof nativeSet) {
var iterator = parent.keys();
while(true) {
var next = iterator.next();
if (next.done) {
break;
}
var entryChild = _clone(next.value, depth - 1);
child.add(entryChild);
}
}

for (var i in parent) { for (var i in parent) {
var attrs; var attrs;
if (proto) { if (proto) {
Expand All @@ -7413,6 +7493,40 @@ function clone(parent, circular, depth, prototype) {
child[i] = _clone(parent[i], depth - 1); child[i] = _clone(parent[i], depth - 1);
} }


if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(parent);
for (var i = 0; i < symbols.length; i++) {
// Don't need to worry about cloning a symbol because it is a primitive,
// like a number or string.
var symbol = symbols[i];
var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
continue;
}
child[symbol] = _clone(parent[symbol], depth - 1);
if (!descriptor.enumerable) {
Object.defineProperty(child, symbol, {
enumerable: false
});
}
}
}

if (includeNonEnumerable) {
var allPropertyNames = Object.getOwnPropertyNames(parent);
for (var i = 0; i < allPropertyNames.length; i++) {
var propertyName = allPropertyNames[i];
var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
if (descriptor && descriptor.enumerable) {
continue;
}
child[propertyName] = _clone(parent[propertyName], depth - 1);
Object.defineProperty(child, propertyName, {
enumerable: false
});
}
}

return child; return child;
} }


Expand All @@ -7439,22 +7553,22 @@ clone.clonePrototype = function clonePrototype(parent) {


function __objToStr(o) { function __objToStr(o) {
return Object.prototype.toString.call(o); return Object.prototype.toString.call(o);
}; }
clone.__objToStr = __objToStr; clone.__objToStr = __objToStr;


function __isDate(o) { function __isDate(o) {
return typeof o === 'object' && __objToStr(o) === '[object Date]'; return typeof o === 'object' && __objToStr(o) === '[object Date]';
}; }
clone.__isDate = __isDate; clone.__isDate = __isDate;


function __isArray(o) { function __isArray(o) {
return typeof o === 'object' && __objToStr(o) === '[object Array]'; return typeof o === 'object' && __objToStr(o) === '[object Array]';
}; }
clone.__isArray = __isArray; clone.__isArray = __isArray;


function __isRegExp(o) { function __isRegExp(o) {
return typeof o === 'object' && __objToStr(o) === '[object RegExp]'; return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
}; }
clone.__isRegExp = __isRegExp; clone.__isRegExp = __isRegExp;


function __getRegExpFlags(re) { function __getRegExpFlags(re) {
Expand All @@ -7463,7 +7577,7 @@ function __getRegExpFlags(re) {
if (re.ignoreCase) flags += 'i'; if (re.ignoreCase) flags += 'i';
if (re.multiline) flags += 'm'; if (re.multiline) flags += 'm';
return flags; return flags;
}; }
clone.__getRegExpFlags = __getRegExpFlags; clone.__getRegExpFlags = __getRegExpFlags;


return clone; return clone;
Expand Down Expand Up @@ -7491,7 +7605,7 @@ var CSSLint = (function() {
embeddedRuleset = /\/\*\s*csslint([^\*]*)\*\//, embeddedRuleset = /\/\*\s*csslint([^\*]*)\*\//,
api = new parserlib.util.EventTarget(); api = new parserlib.util.EventTarget();


api.version = "1.0.3"; api.version = "1.0.4";


//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// Rule Management // Rule Management
Expand Down
Loading

0 comments on commit a455fd3

Please sign in to comment.