Skip to content

Commit

Permalink
Merge pull request #1292 from TrySound/drop-object-values-polyfill
Browse files Browse the repository at this point in the history
Drop object.values polyfill
  • Loading branch information
TrySound committed Feb 13, 2021
2 parents 07ca976 + 93170d3 commit 5f1d593
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
8 changes: 1 addition & 7 deletions lib/svgo/css-class-list.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
'use strict';

var values = require('object.values');
if (!Object.values) {
values.shim();
}


var CSSClassList = function(node) {
this.parentNode = node;
this.classNames = new Set();
Expand Down Expand Up @@ -135,4 +129,4 @@ CSSClassList.prototype.contains = function(className) {
};


module.exports = CSSClassList;
module.exports = CSSClassList;
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"csso": "^4.0.2",
"js-yaml": "^3.13.1",
"mkdirp": "~0.5.1",
"object.values": "^1.1.0",
"sax": "~1.2.4",
"stable": "^0.1.8",
"unquote": "~1.1.1",
Expand Down

0 comments on commit 5f1d593

Please sign in to comment.