@awsui/theming-runtime
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -13,5 +13,5 @@ { | ||
"name": "@awsui/theming-runtime", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/aws/awsui-documentation" | ||
} |
@@ -10,3 +10,4 @@ import { isOptionalState } from '../theme/utils'; | ||
AbstractCreator.forEachOptionalModeState = function (theme, func) { | ||
Object.values(theme.modes).forEach(function (mode) { | ||
Object.keys(theme.modes).forEach(function (key) { | ||
var mode = theme.modes[key]; | ||
entries(mode.states).forEach(function (_a) { | ||
@@ -21,3 +22,4 @@ var stateKey = _a[0], state = _a[1]; | ||
AbstractCreator.forEachContext = function (theme, func) { | ||
Object.values(theme.contexts).forEach(function (context) { | ||
Object.keys(theme.contexts).forEach(function (key) { | ||
var context = theme.contexts[key]; | ||
func(context); | ||
@@ -24,0 +26,0 @@ }); |
@@ -36,3 +36,5 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Stylesheet.prototype.getAllRules = function () { | ||
return Array.from(this.paths.keys()); | ||
var rules = []; | ||
this.paths.forEach(function (_, key) { return rules.push(key); }); | ||
return rules; | ||
}; | ||
@@ -39,0 +41,0 @@ /** |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
61997
50
1172