data-lackey
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -6,7 +6,7 @@ 'use strict'; | ||
}); | ||
exports.default = configureDataLackey; | ||
exports.default = createLackeyWithLoaders; | ||
var _core = require('./core'); | ||
function configureDataLackey(loaders) { | ||
function createLackeyWithLoaders(loaders) { | ||
@@ -13,0 +13,0 @@ // Step 1: create the lackey, with options |
@@ -102,3 +102,4 @@ 'use strict'; | ||
if (!_this.dataLackey) throw 'No dataLackey found. Unable to load specified data.'; | ||
// eslint-disable-next-line no-console | ||
if (!_this.dataLackey) console.error('No dataLackey found. Unable to load specified data.'); | ||
@@ -105,0 +106,0 @@ _this.state = { |
{ | ||
"name": "data-lackey", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "orchestrates loading of your data", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -92,7 +92,7 @@ # Data Lackey | ||
* change to new DataLackey() | ||
* add `rules` | ||
* `unload` callback should pass in params from matcher, not just URL | ||
* ttl | ||
* Poll | ||
* Load in batches | ||
* accept params to url. So a resource can be `{ uri: `/item`, itemId: 7 }` | ||
that automatically becomes `/item?itemId=7`. Needs URL encoding, sorting of params. | ||
@@ -99,0 +99,0 @@ |
41614
15
814