@code.gov/code-gov-style
Advanced tools
Comparing version 1.7.12 to 1.7.14
@@ -125,3 +125,3 @@ 'use strict'; | ||
this.querySelectorAll('.showLess, .showMore').forEach(tag => { | ||
Array.prototype.slice.call(this.querySelectorAll('.showLess, .showMore')).forEach(tag => { | ||
tag.addEventListener('click', _ => { | ||
@@ -132,3 +132,3 @@ this.toggleState(); | ||
this.querySelectorAll('input').forEach(tag => { | ||
Array.prototype.slice.call(this.querySelectorAll('input')).forEach(tag => { | ||
tag.addEventListener('change', event => { | ||
@@ -147,4 +147,4 @@ const li = event.target.parentElement; | ||
*/ | ||
/*global Event*/ | ||
const event = new Event('change', {}); | ||
/*global CustomEvent*/ | ||
const event = new CustomEvent('change', {}); | ||
this.dispatchEvent(event); | ||
@@ -151,0 +151,0 @@ } |
@@ -6,4 +6,3 @@ --- | ||
<script src="{{ '/assets/js/web_components/custom-elements.min.js' | relative_url }}"></script> | ||
<script src="{{ '/assets/js/web_components/filter_box.js' | relative_url }}"></script> | ||
<script src="{{ '/assets/js/web_components.js' | relative_url }}"></script> | ||
@@ -10,0 +9,0 @@ |
{ | ||
"name": "@code.gov/code-gov-style", | ||
"version": "1.7.12", | ||
"version": "1.7.14", | ||
"description": "Style for code.gov including buttons, banners, and cards. Inspired by and somewhat based on USWDS.", | ||
"main": "index.js", | ||
"scripts": { | ||
"bundle_web_components": "cd assets/js && cat web_components/* > web_components.js", | ||
"bundle_web_components": "cp ./node_modules/@babel/polyfill/dist/polyfill.min.js assets/js/web_components.js && cat assets/js/polyfills/event.js >> assets/js/web_components.js && ./node_modules/@babel/cli/bin/babel.js assets/js/web_components/* >> assets/js/web_components.js", | ||
"serve": "bundle exec jekyll serve", | ||
@@ -32,6 +32,14 @@ "serve-on-server": "sudo bundle exec jekyll serve --host=0.0.0.0 --port=80", | ||
"dependencies": { | ||
"@babel/polyfill": "^7.0.0", | ||
"@code.gov/code-gov-font": "0.6.3", | ||
"@webcomponents/custom-elements": "^1.2.0", | ||
"prismjs": "^1.15.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-transform-arrow-functions": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/preset-react": "^7.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
621986
96
2322
4
5
1
2
9
+ Added@babel/polyfill@^7.0.0
+ Added@babel/polyfill@7.12.1(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.13.11(transitive)