jsharmony 1.5.1 → 1.5.2

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/lib/Helper.js +3 -0
  2. package/package.json +1 -1
package/lib/Helper.js CHANGED
@@ -274,6 +274,9 @@ exports.pushCreate = function(parent, idx, val){
274
274
  parent[idx].push(val);
275
275
  }
276
276
  exports.getFullURL = function (req, url) {
277
+ url = (url||'').toString();
278
+ if(url.toLowerCase().indexOf('http://')==0) return url;
279
+ else if(url.toLowerCase().indexOf('https://')==0) return url;
277
280
  return req.protocol + '://' + req.get('host') + url;
278
281
  };
279
282
  exports.getLine = function(txt, lineno){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsharmony",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Rapid Application Development (RAD) Platform for Node.js Database Application Development",
5
5
  "main": "index.js",
6
6
  "scripts": {