Skip to content

Commit d7f5c49

Browse files
committed
Fix Circle Build + Update Readme
1 parent 3266cf5 commit d7f5c49

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,21 @@ Load `js-data-jsonapi-light.js` last.
1818
import { DataStore } from 'js-data'
1919
import { JsonApiAdapter } from 'js-data-jsonapi-light'
2020

21-
// If you don't use import :
21+
// Or :
22+
// const store = new JSData.DataStore();
23+
const store = new DataStore();
24+
25+
// Or :
2226
// const jsonApiAdapter = new JSDataJsonApiLight.JsonApiAdapter({
2327
const jsonApiAdapter = new JsonApiAdapter({
28+
// Store needs to be given to the adapter
29+
store: store
30+
2431
// Same options as DSHttpAdapter
2532
// If a serialization option is given, it will be run before JSONApi serialization has occured
2633
// If a deserialization option is given, it will be run after JSONApi deserialization has occured
2734
});
2835

29-
const store = new DataStore();
3036
store.registerAdapter('jsonApi', jsonApiAdapter, { default: true })
3137
```
3238

karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ module.exports = function (config) {
4949
browsers: ['PhantomJS'],
5050
singleRun: process.env.NODE_ENV !== 'development',
5151
concurrency: Infinity,
52-
// client: { captureConsole: process.env.NODE_ENV === 'development' }
52+
//client: { captureConsole: process.env.NODE_ENV === 'development' }
5353
})
5454
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"dependencies": {
6060
"es6-promise": "^4.0.5",
6161
"js-data": "^3.0.0-rc.7",
62-
"js-data-http": "^3.0.0-rc.2"
62+
"js-data-http": "^3.0.0-rc.2",
63+
"watchpack": "1.2.1"
6364
}
6465
}

0 commit comments

Comments
 (0)