@storybook/theming
Advanced tools
Comparing version 5.0.0-rc.8 to 5.0.0-rc.9
@@ -6,2 +6,13 @@ "use strict"; | ||
}; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(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 __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -17,2 +28,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var light_1 = __importDefault(require("./themes/light")); | ||
var base = __assign({}, light_1.default, { animation: {}, brand: {} }); | ||
// merge with concatenating arrays, but no duplicates | ||
@@ -41,3 +53,3 @@ var merge = function (a, b) { | ||
else { | ||
var missing = deep_object_diff_1.deletedDiff(light_1.default, input); | ||
var missing = deep_object_diff_1.deletedDiff(base, input); | ||
if (Object.keys(missing).length) { | ||
@@ -44,0 +56,0 @@ client_logger_1.logger.warn(common_tags_1.stripIndent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n Your theme is missing properties, you should update your theme!\n\n theme-data missing:\n "], ["\n Your theme is missing properties, you should update your theme!\n\n theme-data missing:\n "]))), missing); |
{ | ||
"name": "@storybook/theming", | ||
"version": "5.0.0-rc.8", | ||
"version": "5.0.0-rc.9", | ||
"description": "Core Storybook Components", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"@emotion/styled": "^10.0.7", | ||
"@storybook/client-logger": "5.0.0-rc.8", | ||
"@storybook/client-logger": "5.0.0-rc.9", | ||
"common-tags": "^1.8.0", | ||
@@ -44,3 +44,3 @@ "deep-object-diff": "^1.1.0", | ||
}, | ||
"gitHead": "6c1d4183d3608a3af6328e6d4aa706d2689a0320" | ||
"gitHead": "d782ca1260df341cc488bc9a575c17c4e9e6e0ec" | ||
} |
@@ -12,2 +12,8 @@ import { logger } from '@storybook/client-logger'; | ||
const base = { | ||
...light, | ||
animation: {}, | ||
brand: {}, | ||
}; | ||
// merge with concatenating arrays, but no duplicates | ||
@@ -36,3 +42,3 @@ const merge = (a: any, b: any) => | ||
} else { | ||
const missing = deletedDiff(light, input); | ||
const missing = deletedDiff(base, input); | ||
if (Object.keys(missing).length) { | ||
@@ -39,0 +45,0 @@ logger.warn( |
49151
1541
+ Added@storybook/client-logger@5.0.0-rc.9(transitive)
- Removed@storybook/client-logger@5.0.0-rc.8(transitive)