inline-style-prefixer
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -1,2 +0,8 @@ | ||
import backgroundClip from 'inline-style-prefixer/lib/plugins/backgroundClip'; | ||
import crossFade from 'inline-style-prefixer/lib/plugins/crossFade'; | ||
import gradient from 'inline-style-prefixer/lib/plugins/gradient'; | ||
import imageSet from 'inline-style-prefixer/lib/plugins/imageSet'; | ||
import position from 'inline-style-prefixer/lib/plugins/position'; | ||
import sizing from 'inline-style-prefixer/lib/plugins/sizing'; | ||
import transition from 'inline-style-prefixer/lib/plugins/transition'; | ||
var w = ["Webkit"]; | ||
@@ -10,4 +16,4 @@ var m = ["Moz"]; | ||
export default { | ||
plugins: [], | ||
prefixMap: { "appearance": wm, "textEmphasisPosition": w, "textEmphasis": w, "textEmphasisStyle": w, "textEmphasisColor": w, "boxDecorationBreak": w, "maskImage": w, "maskMode": w, "maskRepeat": w, "maskPosition": w, "maskClip": w, "maskOrigin": w, "maskSize": w, "maskComposite": w, "mask": w, "maskBorderSource": w, "maskBorderMode": w, "maskBorderSlice": w, "maskBorderWidth": w, "maskBorderOutset": w, "maskBorderRepeat": w, "maskBorder": w, "maskType": w, "textDecorationStyle": w, "textDecorationSkip": w, "textDecorationLine": w, "textDecorationColor": w, "userSelect": wmms, "backdropFilter": w, "fontKerning": w, "scrollSnapType": wms, "scrollSnapPointsX": wms, "scrollSnapPointsY": wms, "scrollSnapDestination": wms, "scrollSnapCoordinate": wms, "clipPath": w, "shapeImageThreshold": w, "shapeImageMargin": w, "shapeImageOutside": w, "filter": w, "hyphens": wms, "flowInto": wms, "flowFrom": wms, "breakBefore": wms, "breakAfter": wms, "breakInside": wms, "regionFragment": wms, "writingMode": w, "textOrientation": w, "tabSize": m, "fontFeatureSettings": w, "columnCount": w, "columnFill": w, "columnGap": w, "columnRule": w, "columnRuleColor": w, "columnRuleStyle": w, "columnRuleWidth": w, "columns": w, "columnSpan": w, "columnWidth": w, "wrapFlow": ms, "wrapThrough": ms, "wrapMargin": ms, "textSizeAdjust": w } | ||
plugins: [backgroundClip, crossFade, gradient, imageSet, position, sizing, transition], | ||
prefixMap: { "appearance": wmms, "textEmphasisPosition": wms, "textEmphasis": wms, "textEmphasisStyle": wms, "textEmphasisColor": wms, "boxDecorationBreak": wms, "maskImage": wms, "maskMode": wms, "maskRepeat": wms, "maskPosition": wms, "maskClip": wms, "maskOrigin": wms, "maskSize": wms, "maskComposite": wms, "mask": wms, "maskBorderSource": wms, "maskBorderMode": wms, "maskBorderSlice": wms, "maskBorderWidth": wms, "maskBorderOutset": wms, "maskBorderRepeat": wms, "maskBorder": wms, "maskType": wms, "userSelect": wms, "backdropFilter": w, "clipPath": w, "textDecorationStyle": w, "textDecorationSkip": w, "textDecorationLine": w, "textDecorationColor": w, "hyphens": wms, "textOrientation": w, "tabSize": m, "wrapFlow": ms, "wrapThrough": ms, "wrapMargin": ms, "scrollSnapType": ms, "scrollSnapPointsX": ms, "scrollSnapPointsY": ms, "scrollSnapDestination": ms, "scrollSnapCoordinate": ms, "textSizeAdjust": ["ms", "Webkit"], "flowInto": ms, "flowFrom": ms, "breakBefore": ms, "breakAfter": ms, "breakInside": ms, "regionFragment": ms, "fontKerning": w } | ||
}; |
@@ -29,9 +29,9 @@ // values are "up-to" | ||
cursor: { | ||
firefox: maximumVersion, | ||
chrome: maximumVersion, | ||
safari: maximumVersion, | ||
opera: maximumVersion | ||
firefox: 24, | ||
chrome: 37, | ||
safari: 9, | ||
opera: 24 | ||
}, | ||
filter: { | ||
ios_saf: maximumVersion, | ||
ios_saf: 9.3, | ||
safari: 9.1 | ||
@@ -53,4 +53,3 @@ }, | ||
ios_saf: 6.2, | ||
android: 4.4, | ||
and_uc: maximumVersion | ||
android: 4.4 | ||
}, | ||
@@ -64,4 +63,3 @@ gradient: { | ||
op_mini: 12.1, | ||
android: 4.4, | ||
and_uc: maximumVersion | ||
android: 4.4 | ||
}, | ||
@@ -77,3 +75,2 @@ grid: { | ||
and_chr: maximumVersion, | ||
and_uc: maximumVersion, | ||
ios_saf: maximumVersion | ||
@@ -83,15 +80,15 @@ }, | ||
chrome: 68, | ||
safari: maximumVersion, | ||
opera: maximumVersion, | ||
safari: 12, | ||
opera: 55, | ||
and_chr: 66, | ||
ios_saf: maximumVersion, | ||
ios_saf: 12, | ||
firefox: 40 | ||
}, | ||
position: { | ||
safari: maximumVersion, | ||
ios_saf: maximumVersion | ||
safari: 12.1, | ||
ios_saf: 12.4 | ||
}, | ||
sizing: { | ||
chrome: 46, | ||
safari: maximumVersion, | ||
safari: 10.1, | ||
opera: 33, | ||
@@ -98,0 +95,0 @@ and_chr: 53, |
@@ -25,3 +25,3 @@ var alternativeValues = { | ||
var isUnitlessNumber = /^\d+(\.\d+)?$/; | ||
var logTag = 'inline-style-prefixer.flexboxIE plugin'; | ||
export default function flexboxIE(property, value, style) { | ||
@@ -45,2 +45,14 @@ if (Object.prototype.hasOwnProperty.call(alternativeProps, property)) { | ||
if (typeof value === 'number' && value < 0) { | ||
// ignore negative values; | ||
console.warn(logTag + ': "flex: ' + value + '", negative values is not valid and will be ignored.'); | ||
return; | ||
} | ||
if (!value.split) { | ||
console.warn(logTag + ': "flex: ' + value + '", value format is not detected, it will be remain as is'); | ||
style.msFlex = value; | ||
return; | ||
} | ||
// The next thing we can look for is if there are multiple values. | ||
@@ -47,0 +59,0 @@ var flexValues = value.split(/\s/); |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -7,2 +7,32 @@ Object.defineProperty(exports, "__esModule", { | ||
var _backgroundClip = require('inline-style-prefixer/lib/plugins/backgroundClip'); | ||
var _backgroundClip2 = _interopRequireDefault(_backgroundClip); | ||
var _crossFade = require('inline-style-prefixer/lib/plugins/crossFade'); | ||
var _crossFade2 = _interopRequireDefault(_crossFade); | ||
var _gradient = require('inline-style-prefixer/lib/plugins/gradient'); | ||
var _gradient2 = _interopRequireDefault(_gradient); | ||
var _imageSet = require('inline-style-prefixer/lib/plugins/imageSet'); | ||
var _imageSet2 = _interopRequireDefault(_imageSet); | ||
var _position = require('inline-style-prefixer/lib/plugins/position'); | ||
var _position2 = _interopRequireDefault(_position); | ||
var _sizing = require('inline-style-prefixer/lib/plugins/sizing'); | ||
var _sizing2 = _interopRequireDefault(_sizing); | ||
var _transition = require('inline-style-prefixer/lib/plugins/transition'); | ||
var _transition2 = _interopRequireDefault(_transition); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var w = ["Webkit"]; | ||
@@ -16,4 +46,4 @@ var m = ["Moz"]; | ||
exports.default = { | ||
plugins: [], | ||
prefixMap: { "appearance": wm, "textEmphasisPosition": w, "textEmphasis": w, "textEmphasisStyle": w, "textEmphasisColor": w, "boxDecorationBreak": w, "maskImage": w, "maskMode": w, "maskRepeat": w, "maskPosition": w, "maskClip": w, "maskOrigin": w, "maskSize": w, "maskComposite": w, "mask": w, "maskBorderSource": w, "maskBorderMode": w, "maskBorderSlice": w, "maskBorderWidth": w, "maskBorderOutset": w, "maskBorderRepeat": w, "maskBorder": w, "maskType": w, "textDecorationStyle": w, "textDecorationSkip": w, "textDecorationLine": w, "textDecorationColor": w, "userSelect": wmms, "backdropFilter": w, "fontKerning": w, "scrollSnapType": wms, "scrollSnapPointsX": wms, "scrollSnapPointsY": wms, "scrollSnapDestination": wms, "scrollSnapCoordinate": wms, "clipPath": w, "shapeImageThreshold": w, "shapeImageMargin": w, "shapeImageOutside": w, "filter": w, "hyphens": wms, "flowInto": wms, "flowFrom": wms, "breakBefore": wms, "breakAfter": wms, "breakInside": wms, "regionFragment": wms, "writingMode": w, "textOrientation": w, "tabSize": m, "fontFeatureSettings": w, "columnCount": w, "columnFill": w, "columnGap": w, "columnRule": w, "columnRuleColor": w, "columnRuleStyle": w, "columnRuleWidth": w, "columns": w, "columnSpan": w, "columnWidth": w, "wrapFlow": ms, "wrapThrough": ms, "wrapMargin": ms, "textSizeAdjust": w } | ||
plugins: [_backgroundClip2.default, _crossFade2.default, _gradient2.default, _imageSet2.default, _position2.default, _sizing2.default, _transition2.default], | ||
prefixMap: { "appearance": wmms, "textEmphasisPosition": wms, "textEmphasis": wms, "textEmphasisStyle": wms, "textEmphasisColor": wms, "boxDecorationBreak": wms, "maskImage": wms, "maskMode": wms, "maskRepeat": wms, "maskPosition": wms, "maskClip": wms, "maskOrigin": wms, "maskSize": wms, "maskComposite": wms, "mask": wms, "maskBorderSource": wms, "maskBorderMode": wms, "maskBorderSlice": wms, "maskBorderWidth": wms, "maskBorderOutset": wms, "maskBorderRepeat": wms, "maskBorder": wms, "maskType": wms, "userSelect": wms, "backdropFilter": w, "clipPath": w, "textDecorationStyle": w, "textDecorationSkip": w, "textDecorationLine": w, "textDecorationColor": w, "hyphens": wms, "textOrientation": w, "tabSize": m, "wrapFlow": ms, "wrapThrough": ms, "wrapMargin": ms, "scrollSnapType": ms, "scrollSnapPointsX": ms, "scrollSnapPointsY": ms, "scrollSnapDestination": ms, "scrollSnapCoordinate": ms, "textSizeAdjust": ["ms", "Webkit"], "flowInto": ms, "flowFrom": ms, "breakBefore": ms, "breakAfter": ms, "breakInside": ms, "regionFragment": ms, "fontKerning": w } | ||
}; |
@@ -34,9 +34,9 @@ "use strict"; | ||
cursor: { | ||
firefox: maximumVersion, | ||
chrome: maximumVersion, | ||
safari: maximumVersion, | ||
opera: maximumVersion | ||
firefox: 24, | ||
chrome: 37, | ||
safari: 9, | ||
opera: 24 | ||
}, | ||
filter: { | ||
ios_saf: maximumVersion, | ||
ios_saf: 9.3, | ||
safari: 9.1 | ||
@@ -58,4 +58,3 @@ }, | ||
ios_saf: 6.2, | ||
android: 4.4, | ||
and_uc: maximumVersion | ||
android: 4.4 | ||
}, | ||
@@ -69,4 +68,3 @@ gradient: { | ||
op_mini: 12.1, | ||
android: 4.4, | ||
and_uc: maximumVersion | ||
android: 4.4 | ||
}, | ||
@@ -82,3 +80,2 @@ grid: { | ||
and_chr: maximumVersion, | ||
and_uc: maximumVersion, | ||
ios_saf: maximumVersion | ||
@@ -88,15 +85,15 @@ }, | ||
chrome: 68, | ||
safari: maximumVersion, | ||
opera: maximumVersion, | ||
safari: 12, | ||
opera: 55, | ||
and_chr: 66, | ||
ios_saf: maximumVersion, | ||
ios_saf: 12, | ||
firefox: 40 | ||
}, | ||
position: { | ||
safari: maximumVersion, | ||
ios_saf: maximumVersion | ||
safari: 12.1, | ||
ios_saf: 12.4 | ||
}, | ||
sizing: { | ||
chrome: 46, | ||
safari: maximumVersion, | ||
safari: 10.1, | ||
opera: 33, | ||
@@ -103,0 +100,0 @@ and_chr: 53, |
@@ -31,3 +31,3 @@ 'use strict'; | ||
var isUnitlessNumber = /^\d+(\.\d+)?$/; | ||
var logTag = 'inline-style-prefixer.flexboxIE plugin'; | ||
function flexboxIE(property, value, style) { | ||
@@ -51,2 +51,14 @@ if (Object.prototype.hasOwnProperty.call(alternativeProps, property)) { | ||
if (typeof value === 'number' && value < 0) { | ||
// ignore negative values; | ||
console.warn(logTag + ': "flex: ' + value + '", negative values is not valid and will be ignored.'); | ||
return; | ||
} | ||
if (!value.split) { | ||
console.warn(logTag + ': "flex: ' + value + '", value format is not detected, it will be remain as is'); | ||
style.msFlex = value; | ||
return; | ||
} | ||
// The next thing we can look for is if there are multiple values. | ||
@@ -53,0 +65,0 @@ var flexValues = value.split(/\s/); |
{ | ||
"name": "inline-style-prefixer", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Run-time Autoprefixer for JavaScript style objects", | ||
@@ -26,3 +26,3 @@ "module": "es/index.js", | ||
"lint": "eslint modules/**/*.js", | ||
"release": "yarn build && npm publish && yarn docs", | ||
"release": "yarn build && npm publish", | ||
"test": "cross-env BABEL_ENV=commonjs jest", | ||
@@ -60,3 +60,2 @@ "coverage": "yarn test --coverage" | ||
"caniuse-api": "^3.0.0", | ||
"codeclimate-test-reporter": "^0.1.1", | ||
"cross-env": "^5.2.0", | ||
@@ -78,5 +77,5 @@ "eslint": "^3.14.0", | ||
"jest": "^19.0.2", | ||
"prettier": "^1.14.2", | ||
"prettier": "^2.2.1", | ||
"rimraf": "^2.6.2" | ||
} | ||
} |
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
28
1825
79990
61