hola-server 0.3.6 → 0.3.7

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.
Files changed (2) hide show
  1. package/core/type.js +1 -1
  2. package/package.json +1 -1
package/core/type.js CHANGED
@@ -123,7 +123,7 @@ register_type(number_type);
123
123
  const string_type = {
124
124
  name: "string",
125
125
  convert: function (value) {
126
- return { value: value + "" };
126
+ return { value: value ? (value + "").trim() : "" };
127
127
  }
128
128
  }
129
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hola-server",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "a meta programming framework used to build nodejs restful api",
5
5
  "main": "index.js",
6
6
  "scripts": {