hola-server 0.8.10 → 1.0.0

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/db/entity.js CHANGED
@@ -59,7 +59,7 @@ class Entity {
59
59
  * @param {entity meta obj} meta
60
60
  */
61
61
  constructor(meta) {
62
- this.meta = meta;
62
+ this.meta = (typeof meta === 'string' || meta instanceof String) ? get_entity_meta(meta) : meta;
63
63
  this.db = get_db();
64
64
  }
65
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hola-server",
3
- "version": "0.8.10",
3
+ "version": "1.0.0",
4
4
  "description": "a meta programming framework used to build nodejs restful api",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/setting.js CHANGED
@@ -7,7 +7,7 @@ let settings = {
7
7
  proxy: null
8
8
  },
9
9
  encrypt: {
10
- key: "AhBWt15WFj8PrMnnZhX8AF1IM4V2x0A3"
10
+ key: "my_key"
11
11
  },
12
12
  mongo: {
13
13
  url: 'mongodb://127.0.0.1/hola',