postcss-merge-rules
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -0,1 +1,6 @@ | ||
# 2.0.10 | ||
* Replaces the internal list of vendor prefixes with the `vendors` module | ||
(now, some less widely used prefixes are supported). | ||
# 2.0.9 | ||
@@ -2,0 +7,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
@@ -13,9 +11,18 @@ var _postcss = require('postcss'); | ||
var _libClone = require('./lib/clone'); | ||
var _vendors = require('vendors'); | ||
var _libClone2 = _interopRequireDefault(_libClone); | ||
var _vendors2 = _interopRequireDefault(_vendors); | ||
var list = _postcss2['default'].list; | ||
var prefixes = ['-webkit-', '-moz-', '-ms-', '-o-']; | ||
var _clone = require('./lib/clone'); | ||
var _clone2 = _interopRequireDefault(_clone); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var list = _postcss2.default.list; | ||
var prefixes = _vendors2.default.map(function (v) { | ||
return '-' + v + '-'; | ||
}); | ||
function intersect(a, b, not) { | ||
@@ -94,4 +101,4 @@ return a.filter(function (c) { | ||
var parts = prop.split('-'); | ||
var base = undefined, | ||
rest = undefined; | ||
var base = void 0, | ||
rest = void 0; | ||
// Treat vendor prefixed properties as if they were unprefixed; | ||
@@ -140,3 +147,3 @@ // moving them when combined with non-prefixed properties can | ||
} | ||
var recievingBlock = (0, _libClone2['default'])(second); | ||
var recievingBlock = (0, _clone2.default)(second); | ||
recievingBlock.selector = joinSelectors(first, second); | ||
@@ -165,4 +172,4 @@ recievingBlock.nodes = []; | ||
intersection = filterConflicts(getDecls(second), intersection); | ||
var firstClone = (0, _libClone2['default'])(first); | ||
var secondClone = (0, _libClone2['default'])(second); | ||
var firstClone = (0, _clone2.default)(first); | ||
var secondClone = (0, _clone2.default)(second); | ||
var moveDecl = function moveDecl(callback) { | ||
@@ -228,3 +235,3 @@ return function (decl) { | ||
if (cache.selector === rule.selector) { | ||
var _ret = (function () { | ||
var _ret = function () { | ||
var toString = String(cache); | ||
@@ -239,7 +246,7 @@ rule.walk(function (decl) { | ||
return { | ||
v: undefined | ||
v: void 0 | ||
}; | ||
})(); | ||
}(); | ||
if (typeof _ret === 'object') return _ret.v; | ||
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; | ||
} | ||
@@ -252,3 +259,3 @@ // Partial merge: check if the rule contains a subset of the last; if | ||
exports['default'] = _postcss2['default'].plugin('postcss-merge-rules', function () { | ||
exports.default = _postcss2.default.plugin('postcss-merge-rules', function () { | ||
return function (css) { | ||
@@ -258,2 +265,3 @@ return css.walkRules(selectorMerger()); | ||
}); | ||
module.exports = exports['default']; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7OztJQUVPLEkscUJBQUEsSTs7QUFDUCxJQUFNLFdBQVcsa0JBQVEsR0FBUixDQUFZO0FBQUEsaUJBQVMsQ0FBVDtBQUFBLENBQVosQ0FBakI7O0FBRUEsU0FBUyxTQUFULENBQW9CLENBQXBCLEVBQXVCLENBQXZCLEVBQTBCLEdBQTFCLEVBQStCO0FBQzNCLFdBQU8sRUFBRSxNQUFGLENBQVMsYUFBSztBQUNqQixZQUFNLFFBQVEsQ0FBQyxFQUFFLE9BQUYsQ0FBVSxDQUFWLENBQWY7QUFDQSxlQUFPLE1BQU0sQ0FBQyxLQUFQLEdBQWUsS0FBdEI7QUFDSCxLQUhNLENBQVA7QUF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1vdmUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZGVjbC5tb3ZlVG8oY2FjaGUpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBydWxlLnJlbW92ZSgpO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIC8vIFBhcnRpYWwgbWVyZ2U6IGNoZWNrIGlmIHRoZSBydWxlIGNvbnRhaW5zIGEgc3Vic2V0IG9mIHRoZSBsYXN0OyBpZlxuICAgICAgICAvLyBzbyBjcmVhdGUgYSBqb2luZWQgc2VsZWN0b3Igd2l0aCB0aGUgc3Vic2V0LCBpZiBzbWFsbGVyLlxuICAgICAgICBjYWNoZSA9IHBhcnRpYWxNZXJnZShjYWNoZSwgcnVsZSk7XG4gICAgfTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgcG9zdGNzcy5wbHVnaW4oJ3Bvc3Rjc3MtbWVyZ2UtcnVsZXMnLCAoKSA9PiB7XG4gICAgcmV0dXJuIGNzcyA9PiBjc3Mud2Fsa1J1bGVzKHNlbGVjdG9yTWVyZ2VyKCkpO1xufSk7XG4iXX0= |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var clone = function clone(obj, parent) { | ||
if (typeof obj !== 'object' || obj === null) { | ||
if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object' || obj === null) { | ||
return obj; | ||
@@ -12,7 +13,7 @@ } | ||
for (var i in obj) { | ||
if (!({}).hasOwnProperty.call(obj, i)) { | ||
if (!{}.hasOwnProperty.call(obj, i)) { | ||
continue; | ||
} | ||
var value = obj[i]; | ||
if (i === 'parent' && typeof value === 'object') { | ||
if (i === 'parent' && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') { | ||
if (parent) { | ||
@@ -34,3 +35,4 @@ cloned[i] = parent; | ||
exports['default'] = clone; | ||
module.exports = exports['default']; | ||
exports.default = clone; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvY2xvbmUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsSUFBTSxRQUFRLFNBQVIsS0FBUSxDQUFDLEdBQUQsRUFBTSxNQUFOLEVBQWlCO0FBQzNCLFFBQUksUUFBTyxHQUFQLHlDQUFPLEdBQVAsT0FBZSxRQUFmLElBQTJCLFFBQVEsSUFBdkMsRUFBNkM7QUFDekMsZUFBTyxHQUFQO0FBQ0g7QUFDRCxRQUFNLFNBQVMsSUFBSSxJQUFJLFdBQVIsRUFBZjtBQUNBLFNBQUssSUFBSSxDQUFULElBQWMsR0FBZCxFQUFtQjtBQUNmLFlBQUksQ0FBRSxHQUFHLGNBQUgsQ0FBa0IsSUFBbEIsQ0FBdUIsR0FBdkIsRUFBNEIsQ0FBNUIsQ0FBTixFQUF1QztBQUNuQztBQUNIO0FBQ0QsWUFBSSxRQUFRLElBQUksQ0FBSixDQUFaO0FBQ0EsWUFBSSxNQUFNLFFBQU4sSUFBa0IsUUFBTyxLQUFQLHlDQUFPLEtBQVAsT0FBaUIsUUFBdkMsRUFBaUQ7QUFDN0MsZ0JBQUksTUFBSixFQUFZO0FBQ1IsdUJBQU8sQ0FBUCxJQUFZLE1BQVo7QUFDSDtBQUNKLFNBSkQsTUFJTyxJQUFJLE1BQU0sUUFBVixFQUFvQjtBQUN2QixtQkFBTyxDQUFQLElBQVksS0FBWjtBQUNILFNBRk0sTUFFQSxJQUFJLGlCQUFpQixLQUFyQixFQUE0QjtBQUMvQixtQkFBTyxDQUFQLElBQVksTUFBTSxHQUFOLENBQVU7QUFBQSx1QkFBSyxNQUFNLENBQU4sRUFBUyxNQUFULENBQUw7QUFBQSxhQUFWLENBQVo7QUFDSCxTQUZNLE1BRUE7QUFDSCxtQkFBTyxDQUFQLElBQVksTUFBTSxLQUFOLEVBQWEsTUFBYixDQUFaO0FBQ0g7QUFDSjtBQUNELFdBQU8sTUFBUDtBQUNILENBdkJEOztrQkF5QmUsSyIsImZpbGUiOiJjbG9uZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IGNsb25lID0gKG9iaiwgcGFyZW50KSA9PiB7XG4gICAgaWYgKHR5cGVvZiBvYmogIT09ICdvYmplY3QnIHx8IG9iaiA9PT0gbnVsbCkge1xuICAgICAgICByZXR1cm4gb2JqO1xuICAgIH1cbiAgICBjb25zdCBjbG9uZWQgPSBuZXcgb2JqLmNvbnN0cnVjdG9yKCk7XG4gICAgZm9yIChsZXQgaSBpbiBvYmopIHtcbiAgICAgICAgaWYgKCEoe30uaGFzT3duUHJvcGVydHkuY2FsbChvYmosIGkpKSkge1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cbiAgICAgICAgbGV0IHZhbHVlID0gb2JqW2ldO1xuICAgICAgICBpZiAoaSA9PT0gJ3BhcmVudCcgJiYgdHlwZW9mIHZhbHVlID09PSAnb2JqZWN0Jykge1xuICAgICAgICAgICAgaWYgKHBhcmVudCkge1xuICAgICAgICAgICAgICAgIGNsb25lZFtpXSA9IHBhcmVudDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIGlmIChpID09PSAnc291cmNlJykge1xuICAgICAgICAgICAgY2xvbmVkW2ldID0gdmFsdWU7XG4gICAgICAgIH0gZWxzZSBpZiAodmFsdWUgaW5zdGFuY2VvZiBBcnJheSkge1xuICAgICAgICAgICAgY2xvbmVkW2ldID0gdmFsdWUubWFwKGogPT4gY2xvbmUoaiwgY2xvbmVkKSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBjbG9uZWRbaV0gPSBjbG9uZSh2YWx1ZSwgY2xvbmVkKTtcbiAgICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gY2xvbmVkO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgY2xvbmU7XG4iXX0= |
{ | ||
"name": "postcss-merge-rules", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "Merge CSS rules with PostCSS.", | ||
@@ -13,3 +13,4 @@ "main": "dist/index.js", | ||
"prepublish": "babel src --out-dir dist --ignore /__tests__/", | ||
"test": "babel-tape-runner \"src/**/__tests__/*.js\" | tap-spec" | ||
"test": "ava src/__tests__", | ||
"test-012": "ava src/__tests__" | ||
}, | ||
@@ -24,10 +25,17 @@ "keywords": [ | ||
"devDependencies": { | ||
"babel": "^5.8.23", | ||
"babel-tape-runner": "1.2.0", | ||
"eslint": "^2.8.0", | ||
"eslint-config-cssnano": "^2.0.0", | ||
"ava": "^0.15.0", | ||
"babel-cli": "^6.3.17", | ||
"babel-core": "^6.3.26", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-preset-es2015-loose": "^7.0.0", | ||
"babel-preset-stage-0": "^6.3.13", | ||
"babel-register": "^6.9.0", | ||
"del-cli": "^0.2.0", | ||
"eslint": "^3.0.0", | ||
"eslint-config-cssnano": "^3.0.0", | ||
"eslint-plugin-babel": "^3.3.0", | ||
"eslint-plugin-import": "^1.10.2", | ||
"postcss-discard-comments": "^2.0.4", | ||
"postcss-simple-vars": "^1.2.0", | ||
"tap-spec": "^4.1.0", | ||
"tape": "^4.2.0" | ||
"postcss-simple-vars": "^3.0.0" | ||
}, | ||
@@ -42,7 +50,11 @@ "homepage": "https://github.com/ben-eb/postcss-merge-rules", | ||
"dependencies": { | ||
"postcss": "^5.0.4" | ||
"postcss": "^5.0.4", | ||
"vendors": "^1.0.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": "cssnano" | ||
}, | ||
"ava": { | ||
"require": "babel-register" | ||
} | ||
} |
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
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
35907
258
2
15
+ Addedvendors@^1.0.0
+ Addedvendors@1.0.4(transitive)