aesthetic-utils
Advanced tools
Comparing version 1.6.2 to 2.0.0-alpha.1
@@ -1,34 +0,5 @@ | ||
# 1.6.2 - 11/10/17 | ||
#### 🛠 Internal | ||
* Tested against React 16.1. | ||
* Improved build process. | ||
# 2.0.0 | ||
# 1.6.1 - 10/18/17 | ||
#### 🛠 Internal | ||
* Enabled Yarn workspaces. | ||
* Updated Flowtype definitions. | ||
#### 🎉 Release | ||
# 1.6.0 - 9/27/17 | ||
#### 🚀 New | ||
* Added support for `react` 16.0. | ||
#### 🐞 Fixed | ||
* Fixed the index exporting the wrong named exports. | ||
#### 🛠 Internal | ||
* Updated cross package imports to use CommonJS paths. | ||
* Improved the build process. | ||
# 1.5.0 - 7/28/17 | ||
* Updated Flow definitions. | ||
* Wrapped errors in `__DEV__` environment checks. | ||
# 1.4.2 - 6/19/17 | ||
* Fixed an issue with the Lerna package. | ||
# 1.4.1 - 6/19/17 | ||
* Updated dependencies. | ||
# 1.4.0 - 5/11/17 | ||
* Updated IE requirement to 11+. | ||
* Updated to include src/ files in the published package. | ||
- Re-release of this old package. |
/** | ||
* @copyright 2017, Miles Johnson | ||
* @copyright 2017-2019, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
*/ | ||
import createStyleElement from './createStyleElement'; | ||
import injectAtRules from './injectAtRules'; | ||
import injectFallbacks from './injectFallbacks'; | ||
import injectRuleByLookup from './injectRuleByLookup'; | ||
import formatFontFace from './formatFontFace'; | ||
import getFlushedStyles from './getFlushedStyles'; | ||
import getStyleElements from './getStyleElements'; | ||
import hasQueryCondition from './hasQueryCondition'; | ||
import isObject from './isObject'; | ||
import isPrimitive from './isPrimitive'; | ||
import isRTL from './isRTL'; | ||
import purgeStyles from './purgeStyles'; | ||
import stripClassPrefix from './stripClassPrefix'; | ||
import toArray from './toArray'; | ||
export { createStyleElement, injectAtRules, injectFallbacks, injectRuleByLookup, isObject, isPrimitive, toArray }; | ||
import toObjectRecursive from './toObjectRecursive'; | ||
export { formatFontFace, getFlushedStyles, getStyleElements, hasQueryCondition, isObject, isRTL, purgeStyles, stripClassPrefix, toArray, toObjectRecursive }; |
@@ -1,10 +0,3 @@ | ||
import _typeof from 'babel-runtime/helpers/typeof'; | ||
/** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
export default function isObject(value) { | ||
return value !== null && !Array.isArray(value) && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object'; | ||
return value !== null && !Array.isArray(value) && typeof value === 'object'; | ||
} |
@@ -1,9 +0,3 @@ | ||
/** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
export default function toArray(value) { | ||
return Array.isArray(value) ? value : [value]; | ||
} |
@@ -1,47 +0,45 @@ | ||
'use strict'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.toArray = exports.isPrimitive = exports.isObject = exports.injectRuleByLookup = exports.injectFallbacks = exports.injectAtRules = exports.createStyleElement = undefined; | ||
exports.__esModule = true; | ||
var _createStyleElement = require('./createStyleElement'); | ||
var _formatFontFace = _interopRequireDefault(require("./formatFontFace")); | ||
var _createStyleElement2 = _interopRequireDefault(_createStyleElement); | ||
exports.formatFontFace = _formatFontFace.default; | ||
var _injectAtRules = require('./injectAtRules'); | ||
var _getFlushedStyles = _interopRequireDefault(require("./getFlushedStyles")); | ||
var _injectAtRules2 = _interopRequireDefault(_injectAtRules); | ||
exports.getFlushedStyles = _getFlushedStyles.default; | ||
var _injectFallbacks = require('./injectFallbacks'); | ||
var _getStyleElements = _interopRequireDefault(require("./getStyleElements")); | ||
var _injectFallbacks2 = _interopRequireDefault(_injectFallbacks); | ||
exports.getStyleElements = _getStyleElements.default; | ||
var _injectRuleByLookup = require('./injectRuleByLookup'); | ||
var _hasQueryCondition = _interopRequireDefault(require("./hasQueryCondition")); | ||
var _injectRuleByLookup2 = _interopRequireDefault(_injectRuleByLookup); | ||
exports.hasQueryCondition = _hasQueryCondition.default; | ||
var _isObject = require('./isObject'); | ||
var _isObject = _interopRequireDefault(require("./isObject")); | ||
var _isObject2 = _interopRequireDefault(_isObject); | ||
exports.isObject = _isObject.default; | ||
var _isPrimitive = require('./isPrimitive'); | ||
var _isRTL = _interopRequireDefault(require("./isRTL")); | ||
var _isPrimitive2 = _interopRequireDefault(_isPrimitive); | ||
exports.isRTL = _isRTL.default; | ||
var _toArray = require('./toArray'); | ||
var _purgeStyles = _interopRequireDefault(require("./purgeStyles")); | ||
var _toArray2 = _interopRequireDefault(_toArray); | ||
exports.purgeStyles = _purgeStyles.default; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _stripClassPrefix = _interopRequireDefault(require("./stripClassPrefix")); | ||
exports.createStyleElement = _createStyleElement2.default; | ||
exports.injectAtRules = _injectAtRules2.default; | ||
exports.injectFallbacks = _injectFallbacks2.default; | ||
exports.injectRuleByLookup = _injectRuleByLookup2.default; | ||
exports.isObject = _isObject2.default; | ||
exports.isPrimitive = _isPrimitive2.default; | ||
exports.toArray = _toArray2.default; /** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
*/ | ||
exports.stripClassPrefix = _stripClassPrefix.default; | ||
var _toArray = _interopRequireDefault(require("./toArray")); | ||
exports.toArray = _toArray.default; | ||
var _toObjectRecursive = _interopRequireDefault(require("./toObjectRecursive")); | ||
exports.toObjectRecursive = _toObjectRecursive.default; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
@@ -1,23 +0,8 @@ | ||
'use strict'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _typeof2 = require('babel-runtime/helpers/typeof'); | ||
var _typeof3 = _interopRequireDefault(_typeof2); | ||
exports.__esModule = true; | ||
exports.default = isObject; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
function isObject(value) { | ||
return value !== null && !Array.isArray(value) && (typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value)) === 'object'; | ||
return value !== null && !Array.isArray(value) && typeof value === 'object'; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = toArray; | ||
/** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
@@ -13,0 +6,0 @@ function toArray(value) { |
{ | ||
"name": "aesthetic-utils", | ||
"version": "1.6.2", | ||
"version": "2.0.0-alpha.1", | ||
"description": "Utility functions for Aesthetic.", | ||
"keywords": [ | ||
"aesthetic", | ||
"react", | ||
"styles", | ||
"utils" | ||
"utils", | ||
"helpers" | ||
], | ||
"repository": "https://github.com/milesj/aesthetic/tree/master/packages/aesthetic-utils", | ||
"repository": "https://github.com/milesj/aesthetic/tree/master/packages/utils", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "build-lib --react" | ||
"main": "./lib/index.js", | ||
"module": "./esm/index.js", | ||
"types": "./lib/index.d.ts", | ||
"sideEffects": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
"babel-runtime": "^6.26.0" | ||
"utility-types": "^3.7.0" | ||
}, | ||
"devDependencies": { | ||
"@milesj/build-tool-config": "^0.41.2" | ||
} | ||
"gitHead": "a25d2dcdf580331c8aeb9174e30c4cc14e40efc3" | ||
} |
# Aesthetic Utilities | ||
Utility functions for supporting [Aesthetic](https://github.com/milesj/aesthetic) | ||
unified syntax and style adapters. | ||
[![Build Status](https://travis-ci.org/milesj/aesthetic.svg?branch=master)](https://travis-ci.org/milesj/aesthetic) | ||
[![npm version](https://badge.fury.io/js/aesthetic-utils.svg)](https://www.npmjs.com/package/aesthetic-utils) | ||
[![npm deps](https://david-dm.org/milesj/aesthetic.svg?path=packages/utils)](https://www.npmjs.com/package/aesthetic-utils) | ||
Utility functions for supporting [Aesthetic](https://github.com/milesj/aesthetic) unified syntax and | ||
style adapters. | ||
## Installation | ||
``` | ||
npm install aesthetic-utils --save | ||
yarn add aesthetic-utils | ||
// Or | ||
yarn add aesthetic-utils | ||
npm install aesthetic-utils | ||
``` |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
56692
0
82
988
17
2
4
1
+ Addedutility-types@^3.7.0
+ Addedutility-types@3.11.0(transitive)
- Removedbabel-runtime@^6.26.0
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)