@static-suite/static-suite-data-server 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,10 +31,12 @@ There are three main use cases:
31
31
 
32
32
  ### SSG develop/build phase
33
33
 
34
- Require `dist/lib/dataServer.js` inside the SSG, and call its `init()` function:
34
+ Require `dataServer` from `@static-suite/static-suite-data-server/dist/lib/` inside the SSG, and call its `init()` function:
35
35
 
36
36
  ```javascript
37
- const { dataServer } = require('dist/lib/dataServer');
37
+ const {
38
+ dataServer,
39
+ } = require('@static-suite/static-suite-data-server/dist/lib/');
38
40
 
39
41
  // Init Data Server.
40
42
  const { store } = dataServer.init({ dataDir: '../data/prod' });
@@ -31,10 +31,12 @@ There are three main use cases:
31
31
 
32
32
  ### SSG develop/build phase
33
33
 
34
- Require `dist/lib/dataServer.js` inside the SSG, and call its `init()` function:
34
+ Require `dataServer` from `@static-suite/static-suite-data-server/dist/lib/` inside the SSG, and call its `init()` function:
35
35
 
36
36
  ```javascript
37
- const { dataServer } = require('dist/lib/dataServer');
37
+ const {
38
+ dataServer,
39
+ } = require('@static-suite/static-suite-data-server/dist/lib/');
38
40
 
39
41
  // Init Data Server.
40
42
  const { store } = dataServer.init({ dataDir: '../data/prod' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@static-suite/static-suite-data-server",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "A flexible, fast and developer friendly Data Server for Static Suite",
5
5
  "main": "./dist/lib/index.js",
6
6
  "typings": "./dist/lib/index.d.ts",