From d7fa855280ff73c510c69678477850321c632ec1 Mon Sep 17 00:00:00 2001 From: Aleksey Smolenchuk Date: Thu, 15 Sep 2016 12:18:12 -0700 Subject: [PATCH] remove globals and expose the get method for the browser --- browser.js | 3 +++ get.js | 2 -- package.json | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 browser.js diff --git a/browser.js b/browser.js new file mode 100644 index 0000000..b1711e6 --- /dev/null +++ b/browser.js @@ -0,0 +1,3 @@ +module.exports = { + get: require('./get.js'); +}; diff --git a/get.js b/get.js index 5db72a1..442fe96 100644 --- a/get.js +++ b/get.js @@ -1,5 +1,3 @@ -var document = require("global/document"); - module.exports = getJSONGlobal; var globals; diff --git a/package.json b/package.json index 3c28a93..bdd4f9d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "keywords": [], "author": "Raynos ", "repository": "git://github.com/lxe/safe-json-globals.git", - "main": "index", + "main": "index.js", + "browser": "browser.js", "homepage": "https://github.com/lxe/safe-json-globals", "contributors": [ { @@ -21,7 +22,6 @@ "email": "lxe@lxe.co" }, "dependencies": { - "global": "~4.3.0", "serialize-javascript": "^1.1.2" }, "devDependencies": {