diff --git a/package.json b/package.json index 6d1dacf..005ae98 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "dev": "NODE_ENV=development nodemon -w src --exec \"babel-node src\"", "build": "NODE_ENV=production npx babel src -d dist", "start": "node dist", - "lint": "standard \"src/**/*.js\" \"test/**/*/js\"", + "lint": "standard \"src/**/*.js\" \"test/**/*.js\"", "test-watch": "ava --watch", "test": "ava --verbose" }, @@ -33,7 +33,7 @@ "graphql": "^0.13.2", "morgan": "^1.8.0", "mz": "^2.7.0", - "node-fetch": "^2.2.0", + "node-fetch": "^2.3.0", "object-hash": "^1.3.0", "ramda": "^0.25.0", "resource-router-middleware": "^0.6.0" @@ -42,6 +42,7 @@ "@babel/cli": "^7.1.2", "@babel/core": "^7.1.2", "@babel/node": "^7.0.0", + "@babel/polyfill": "^7.0.0", "@babel/preset-env": "^7.1.0", "@babel/register": "^7.0.0", "ava": "1.0.0-beta.8", @@ -59,7 +60,8 @@ "test/**/*.js" ], "require": [ - "@babel/register" + "@babel/register", + "@babel/polyfill" ] }, "bugs": { diff --git a/src/lib/Controller.js b/src/lib/Controller.js index d188fb9..b9e9351 100644 --- a/src/lib/Controller.js +++ b/src/lib/Controller.js @@ -36,7 +36,6 @@ class Controller { retrieve (sheet, tab, resource) { if (this._sheetExists(sheet)) { const fetcher = this.fetchers[sheet] - // console.log(fetcher); return fetcher.retrieve(tab, resource) } else { return Promise.reject(new Error(copy.errors.noResource(sheet))) diff --git a/src/lib/Fetcher.js b/src/lib/Fetcher.js index 164eff5..cd571dc 100644 --- a/src/lib/Fetcher.js +++ b/src/lib/Fetcher.js @@ -189,7 +189,7 @@ class Fetcher { retrieveFrag (tab, resource, frag) { const title = fmtName(tab) - const url = `${this.sheetName}/${tab}/${resource}/${frag || ''}` + const url = `${this.id}/${tab}/${resource}/${frag || ''}` return this.db.load(url, this.blueprints[title]) } }