Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@khanacademy/wonder-blocks-color

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-color - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

LICENSE

39

dist/es/index.js

@@ -16,16 +16,31 @@ function _defineProperty(obj, key, value) {

function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}

@@ -112,3 +127,3 @@

var components = parse(color);
return format(_objectSpread({}, components, {
return format(_objectSpread2({}, components, {
a: components.a * percentage

@@ -162,2 +177,2 @@ }));

export default Color;
export { SemanticColor, mix, fade };
export { SemanticColor, fade, mix };

@@ -96,4 +96,6 @@ module.exports =

// CONCATENATED MODULE: ./packages/wonder-blocks-color/util/utils.js
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -196,4 +198,4 @@

/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SemanticColor", function() { return SemanticColor; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "mix", function() { return mix; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "fade", function() { return fade; });
/* concated harmony reexport mix */__webpack_require__.d(__webpack_exports__, "mix", function() { return mix; });
/* concated harmony reexport fade */__webpack_require__.d(__webpack_exports__, "fade", function() { return fade; });

@@ -200,0 +202,0 @@ var offBlack = "#21242c";

@@ -161,3 +161,3 @@ // This file is auto-generated by gen-snapshot-tests.js

}}
/>
></View>
<Swatch

@@ -164,0 +164,0 @@ color={Color.teal}

{
"name": "@khanacademy/wonder-blocks-color",
"version": "1.1.8",
"version": "1.1.9",
"design": "v2",

@@ -16,8 +16,9 @@ "publishConfig": {

"devDependencies": {
"@khanacademy/wonder-blocks-core": "^2.4.2",
"@khanacademy/wonder-blocks-typography": "^1.1.8",
"wb-dev-build-settings": "^0.0.2"
"@khanacademy/wonder-blocks-core": "^2.4.3",
"@khanacademy/wonder-blocks-typography": "^1.1.9",
"wb-dev-build-settings": "^0.0.3"
},
"author": "",
"license": "MIT"
"license": "MIT",
"gitHead": "be0b1f6e2cd428289f5c3e54e6a2370de2019d27"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc