@sera4/essentia 1.0.7 → 1.0.9

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.
@@ -7,7 +7,7 @@ A module to add HAL decoration to JSON responses in Sequelize ORM based projects
7
7
  In your model definition, set decoration on your model
8
8
 
9
9
  ```
10
- const decorator = require("@sera4/essentia).halDecorator;
10
+ const decorator = require("@sera4/essentia").halDecorator;
11
11
  ...
12
12
 
13
13
  module.exports = (sequelize, DataTypes) => {
package/hal/index.js CHANGED
@@ -67,7 +67,6 @@ class HalDecorator {
67
67
  result[resourceTag] = values;
68
68
  return result;
69
69
  };
70
- console.log(model);
71
70
  }
72
71
  }
73
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sera4/essentia",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A library of utilities for Teleporte Web Services",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/package.tar.gz CHANGED
Binary file
@@ -7,7 +7,7 @@ This is a module to add pagination to Sequelize ORM based projects.
7
7
  In your model definition, set pagination on your model
8
8
 
9
9
  ```
10
- const paginator = require("@sera4/essentia).sqlPaginator;
10
+ const paginator = require("@sera4/essentia").sqlPaginator;
11
11
  ...
12
12
 
13
13
  module.exports = (sequelize, DataTypes) => {
@@ -28,7 +28,7 @@ class SequelizePaginator {
28
28
 
29
29
  paginate(Model, resource="") {
30
30
  const model = Model.instance || Model;
31
- var pagination = {limit : 15, offset: 1}
31
+ var pagination = {limit : 15, offset: 0}
32
32
  var response = null;
33
33
  var resource = resource;
34
34