aesthetic-adapter-glamor
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -7,4 +7,26 @@ 'use strict'; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _keys = require('babel-runtime/core-js/object/keys'); | ||
var _keys2 = _interopRequireDefault(_keys); | ||
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); | ||
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _createClass2 = require('babel-runtime/helpers/createClass'); | ||
var _createClass3 = _interopRequireDefault(_createClass2); | ||
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn'); | ||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); | ||
var _inherits2 = require('babel-runtime/helpers/inherits'); | ||
var _inherits3 = _interopRequireDefault(_inherits2); | ||
var _glamor = require('glamor'); | ||
@@ -18,24 +40,19 @@ | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
/** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
/*:: import type { StyleDeclarationMap, TransformedStylesMap } from '../../types';*/ | ||
var GlamorAdapter = function (_Adapter) { | ||
_inherits(GlamorAdapter, _Adapter); | ||
(0, _inherits3.default)(GlamorAdapter, _Adapter); | ||
function GlamorAdapter() { | ||
_classCallCheck(this, GlamorAdapter); | ||
return _possibleConstructorReturn(this, (GlamorAdapter.__proto__ || Object.getPrototypeOf(GlamorAdapter)).apply(this, arguments)); | ||
(0, _classCallCheck3.default)(this, GlamorAdapter); | ||
return (0, _possibleConstructorReturn3.default)(this, (GlamorAdapter.__proto__ || (0, _getPrototypeOf2.default)(GlamorAdapter)).apply(this, arguments)); | ||
} | ||
_createClass(GlamorAdapter, [{ | ||
(0, _createClass3.default)(GlamorAdapter, [{ | ||
key: 'transform', | ||
@@ -53,3 +70,3 @@ value: function transform(styleName /*: string*/, declarations /*: StyleDeclarationMap*/) /*: TransformedStylesMap*/ { | ||
Object.keys(declarations).forEach(function (setName /*: string*/) { | ||
(0, _keys2.default)(declarations).forEach(function (setName /*: string*/) { | ||
var value = declarations[setName]; | ||
@@ -67,3 +84,2 @@ | ||
}]); | ||
return GlamorAdapter; | ||
@@ -70,0 +86,0 @@ }(_Adapter3.default); |
@@ -7,6 +7,26 @@ 'use strict'; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); | ||
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; | ||
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _createClass2 = require('babel-runtime/helpers/createClass'); | ||
var _createClass3 = _interopRequireDefault(_createClass2); | ||
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn'); | ||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); | ||
var _get2 = require('babel-runtime/helpers/get'); | ||
var _get3 = _interopRequireDefault(_get2); | ||
var _inherits2 = require('babel-runtime/helpers/inherits'); | ||
var _inherits3 = _interopRequireDefault(_inherits2); | ||
var _glamor = require('glamor'); | ||
@@ -32,24 +52,17 @@ | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
/*:: import type { StyleDeclarationMap, TransformedStylesMap, CSSStyle } from '../../types';*/ /** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
/*:: import type { StyleDeclarationMap, TransformedStylesMap, CSSStyle } from '../../types';*/ | ||
var UnifiedGlamorAdapter = function (_GlamorAdapter) { | ||
_inherits(UnifiedGlamorAdapter, _GlamorAdapter); | ||
(0, _inherits3.default)(UnifiedGlamorAdapter, _GlamorAdapter); | ||
function UnifiedGlamorAdapter() { | ||
var options /*: Object*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
(0, _classCallCheck3.default)(this, UnifiedGlamorAdapter); | ||
_classCallCheck(this, UnifiedGlamorAdapter); | ||
var _this = (0, _possibleConstructorReturn3.default)(this, (UnifiedGlamorAdapter.__proto__ || (0, _getPrototypeOf2.default)(UnifiedGlamorAdapter)).call(this, options)); | ||
var _this = _possibleConstructorReturn(this, (UnifiedGlamorAdapter.__proto__ || Object.getPrototypeOf(UnifiedGlamorAdapter)).call(this, options)); | ||
_this.onDeclaration = function (setName /*: string*/, properties /*: CSSStyle*/) { | ||
@@ -85,3 +98,3 @@ // Animation keyframes | ||
_createClass(UnifiedGlamorAdapter, [{ | ||
(0, _createClass3.default)(UnifiedGlamorAdapter, [{ | ||
key: 'convert', | ||
@@ -94,6 +107,5 @@ value: function convert(declarations /*: StyleDeclarationMap*/) /*: StyleDeclarationMap*/ { | ||
value: function transform(styleName /*: string*/, declarations /*: StyleDeclarationMap*/) /*: TransformedStylesMap*/ { | ||
return _get(UnifiedGlamorAdapter.prototype.__proto__ || Object.getPrototypeOf(UnifiedGlamorAdapter.prototype), 'transform', this).call(this, styleName, this.convert(declarations)); | ||
return (0, _get3.default)(UnifiedGlamorAdapter.prototype.__proto__ || (0, _getPrototypeOf2.default)(UnifiedGlamorAdapter.prototype), 'transform', this).call(this, styleName, this.convert(declarations)); | ||
} | ||
}]); | ||
return UnifiedGlamorAdapter; | ||
@@ -100,0 +112,0 @@ }(_NativeAdapter2.default); |
{ | ||
"name": "aesthetic-adapter-glamor", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Glamor support for Aesthetic.", | ||
@@ -14,12 +14,13 @@ "keywords": [ | ||
"dependencies": { | ||
"aesthetic-utils": "^1.1.2" | ||
"aesthetic-utils": "^1.2.0", | ||
"babel-runtime": "^6.23.0" | ||
}, | ||
"peerDependencies": { | ||
"aesthetic": "^1.1.2", | ||
"aesthetic": "^1.2.0", | ||
"glamor": "^2.20.20" | ||
}, | ||
"devDependencies": { | ||
"aesthetic": "^1.1.2", | ||
"aesthetic": "^1.2.0", | ||
"glamor": "^2.20.20" | ||
} | ||
} |
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
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
139
0
9560
4
+ Addedbabel-runtime@^6.23.0
Updatedaesthetic-utils@^1.2.0