From 3a9c4a9c7217a61aa57753ff4bc38e34e7a0ec25 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Sun, 14 Mar 2021 00:32:38 +0200 Subject: [PATCH] Re-add util.js to root as re-exporter for old Node.js --- package.json | 3 ++- util.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 util.js diff --git a/package.json b/package.json index c77e1aaa..3deb5101 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "homepage": "https://eemeli.org/yaml/", "files": [ "browser/", - "dist/" + "dist/", + "util.js" ], "type": "commonjs", "main": "./dist/index.js", diff --git a/util.js b/util.js new file mode 100644 index 00000000..070103f9 --- /dev/null +++ b/util.js @@ -0,0 +1,2 @@ +// Re-exporter for Node.js < 12.16.0 +module.exports = require('./dist/util.js')