fela-plugin-fallback-value
Advanced tools
Comparing version 11.7.0 to 12.0.0-rc.0
@@ -1,2 +0,2 @@ | ||
import resolveArrayValue from 'css-in-js-utils/lib/resolveArrayValue'; | ||
import { resolveArrayValue } from 'css-in-js-utils'; | ||
import isPlainObject from 'isobject'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -6,13 +6,10 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports["default"] = void 0; | ||
var _resolveArrayValue = require('css-in-js-utils/lib/resolveArrayValue'); | ||
var _cssInJsUtils = require("css-in-js-utils"); | ||
var _resolveArrayValue2 = _interopRequireDefault(_resolveArrayValue); | ||
var _isobject = _interopRequireDefault(require("isobject")); | ||
var _isobject = require('isobject'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _isobject2 = _interopRequireDefault(_isobject); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function resolveFallbackValues(style) { | ||
@@ -23,4 +20,4 @@ for (var property in style) { | ||
if (Array.isArray(value)) { | ||
style[property] = (0, _resolveArrayValue2.default)(property, value); | ||
} else if ((0, _isobject2.default)(value) && property !== 'fontFace') { | ||
style[property] = (0, _cssInJsUtils.resolveArrayValue)(property, value); | ||
} else if ((0, _isobject["default"])(value) && property !== 'fontFace') { | ||
style[property] = resolveFallbackValues(value); | ||
@@ -35,3 +32,3 @@ } | ||
if (Array.isArray(props.value)) { | ||
props.value = (0, _resolveArrayValue2.default)(props.property, props.value); | ||
props.value = (0, _cssInJsUtils.resolveArrayValue)(props.property, props.value); | ||
} | ||
@@ -42,4 +39,6 @@ | ||
exports.default = function () { | ||
var _default = function _default() { | ||
return resolveFallbackValues; | ||
}; | ||
}; | ||
exports["default"] = _default; |
{ | ||
"name": "fela-plugin-fallback-value", | ||
"version": "11.7.0", | ||
"version": "12.0.0-rc.0", | ||
"description": "Fela plugin to resolve fallback values", | ||
@@ -17,2 +17,15 @@ "typings": "index.d.ts", | ||
], | ||
"scripts": { | ||
"setup": "yarn build", | ||
"clean": "rimraf lib es coverage", | ||
"build": "yarn clean && yarn build:es && yarn build:lib", | ||
"build:es": "babel src --out-dir es --ignore **/__tests__", | ||
"build:lib": "cross-env BABEL_ENV=commonjs babel src --out-dir lib --ignore **/__tests__", | ||
"build:umd": "webpack --config webpack.config.js", | ||
"watch": "npm run watch:lib & npm run watch:es", | ||
"watch:lib": "BABEL_ENV=commonjs babel src -d lib -w", | ||
"watch:es": "babel src -d es -w", | ||
"test": "jest --config=jest.config.js", | ||
"coverage": "yarn test --coverage" | ||
}, | ||
"repository": "https://github.com/robinweser/fela/", | ||
@@ -28,6 +41,22 @@ "keywords": [ | ||
"dependencies": { | ||
"css-in-js-utils": "^3.0.0", | ||
"isobject": "^3.0.1" | ||
"css-in-js-utils": "^3.0.0" | ||
}, | ||
"gitHead": "e067b284984d3dbfc259fcbffde9bb50679fda9b" | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.0", | ||
"@babel/core": "^7.2.2", | ||
"@babel/node": "^7.13.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.5.0", | ||
"@babel/polyfill": "^7.7.0", | ||
"@babel/preset-env": "^7.5.5", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^26.6.0", | ||
"babel-loader": "^8.2.3", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"cross-env": "^6.0.3", | ||
"jest": "^26.6.0", | ||
"rimraf": "^3.0.0", | ||
"webpack": "^4.41.6", | ||
"webpack-cli": "^3.3.10" | ||
}, | ||
"gitHead": "00f02f410f17a7693479ea3349bb3a9f223359af" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6538
1
42329
15
2
- Removedisobject@^3.0.1
- Removedisobject@3.0.1(transitive)