We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb39452 commit 73e798eCopy full SHA for 73e798e
lib/index.js
@@ -5,8 +5,15 @@
5
*
6
* Copyright 2010-2017 Digital Bazaar, Inc.
7
*/
8
+// FIXME: remove after change to core-js 3 and dropping node6 support
9
+const fromEntries = require('object.fromentries');
10
+if(!Object.fromEntries) {
11
+ fromEntries.shim();
12
+}
13
+
14
if(require('semver').gte(process.version, '8.6.0')) {
15
module.exports = require('./jsonld');
16
} else {
17
+ require('core-js/fn/object/entries');
18
module.exports = require('../dist/node6/lib/jsonld');
19
}
package.json
@@ -32,6 +32,7 @@
32
"dependencies": {
33
"canonicalize": "^1.0.1",
34
"lru-cache": "^5.1.1",
35
+ "object.fromentries": "^2.0.2",
36
"rdf-canonize": "^1.0.2",
37
"request": "^2.88.0",
38
"semver": "^6.3.0",
0 commit comments