Skip to content

Commit

Permalink
Merge pull request #2717 from studentinsights/patch/object-values-pol…
Browse files Browse the repository at this point in the history
…yfill

Object.values polyfill for IE11
  • Loading branch information
kevinrobinson committed Dec 2, 2019
2 parents 175287b + 3afdad3 commit 0559ca5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -38,6 +38,7 @@
"moment": "2.19.3",
"object-assign": "^4.1.1",
"object-hash": "^1.3.0",
"object-values": "^2.0.0",
"percentile": "^1.2.0",
"promise-polyfill": "^6.0.2",
"query-string": "^5.1.0",
Expand Down
7 changes: 6 additions & 1 deletion ui/polyfills.js
Expand Up @@ -10,8 +10,13 @@
import assign from 'object-assign';
Object.assign = assign;

import Promise from 'promise-polyfill';
// Object.values doesn't exist in IE11
import values from 'object.values';
if (!Object.values) {
Object.values = values;
}

import Promise from 'promise-polyfill';
if (!window.Promise) {
window.Promise = Promise;
}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -9121,6 +9121,11 @@ object-keys@^1.0.11, object-keys@^1.0.12:
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.0.tgz#11bd22348dd2e096a045ab06f6c85bcc340fa032"
integrity sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg==

object-values@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/object-values/-/object-values-2.0.0.tgz#13f8b9733790431f2de56973bf2db70a1bf03858"
integrity sha512-SXYtMEksouZLGHRahMC76GEboon3BBA4LQ9s/f2VEsS9dYN9bodX3QzaOwhhA9zCIE4koGdr2eIsNYmTRCWhJw==

object-visit@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"
Expand Down

0 comments on commit 0559ca5

Please sign in to comment.