style-value-types
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -5,2 +5,8 @@ # Changelog | ||
### [4.1.1] 2021-03-01 | ||
### Fixed | ||
- Fixing es entry point. | ||
### [4.1.0] 2021-03-01 | ||
@@ -7,0 +13,0 @@ |
@@ -5,28 +5,4 @@ 'use strict'; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
var tslib = require('tslib'); | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var clamp = function (min, max) { return function (v) { | ||
@@ -48,4 +24,4 @@ return Math.max(Math.min(v, max), min); | ||
}; | ||
var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) }); | ||
var scale = __assign(__assign({}, number), { default: 1 }); | ||
var alpha = tslib.__assign(tslib.__assign({}, number), { transform: clamp(0, 1) }); | ||
var scale = tslib.__assign(tslib.__assign({}, number), { default: 1 }); | ||
@@ -64,3 +40,3 @@ var createUnitType = function (unit) { return ({ | ||
var vw = createUnitType('vw'); | ||
var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } }); | ||
var progressPercentage = tslib.__assign(tslib.__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } }); | ||
@@ -102,3 +78,3 @@ var isColorString = function (type, testProp) { return function (v) { | ||
var clampRgbUnit = clamp(0, 255); | ||
var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } }); | ||
var rgbUnit = tslib.__assign(tslib.__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } }); | ||
var rgba = { | ||
@@ -240,3 +216,3 @@ test: isColorString('rgb', 'red'), | ||
var functionRegex = /([a-z-]*)\(.*?\)/g; | ||
var filter = __assign(__assign({}, complex), { getAnimatableNone: function (v) { | ||
var filter = tslib.__assign(tslib.__assign({}, complex), { getAnimatableNone: function (v) { | ||
var functions = v.match(functionRegex); | ||
@@ -243,0 +219,0 @@ return functions ? functions.map(applyDefaultFilter).join(' ') : v; |
@@ -1,2 +0,1 @@ | ||
export {}; | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "style-value-types", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Parsers, transformers and tests for special value types, eg: %, hex codes etc.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
62870
58
1065