lemoncloud-engine-js
Advanced tools
Comparing version 0.3.17 to 0.3.18
@@ -1,1 +0,1 @@ | ||
"use strict";function initialize(r,e){var o=this;if(!r)throw new Error("$export is required.");if(!o)throw new Error("_$ is required.");if("function"!=typeof o)throw new Error("_$ should be function.");o.log;var t=o.inf,i=(o.err,o.environ("STAGE",""));i&&t("#STAGE =",i),o("U",require("./lib/utilities")(o));var n=require("./lib/http-proxy");o("httpProxy",n),require("./lib/mysql-proxy")(o,"MS"),require("./lib/dynamo-proxy")(o,"DS"),require("./lib/redis-proxy")(o,"RS"),require("./lib/elastic-proxy")(o,"ES"),require("./lib/elastic6-proxy")(o,"ES6"),require("./lib/sqs-proxy")(o,"SS"),require("./lib/sns-proxy")(o,"SN"),require("./lib/ses-proxy")(o,"SE"),require("./lib/web-proxy")(o,"WS"),require("./lib/cognito-proxy")(o,"CS"),require("./lib/lambda-proxy")(o,"LS");var u=require("./core/lemon-engine-model");return o("LEM",u),Object.assign(r,{createModel:function(r,e,o){return u(r,e,o)},createHttpProxy:function(r,e,o){return n(r,e,o)}})}module.exports=function(r,i){r=r||new function(){};var e=(i=i||{}).name||"lemon",o=f("STAGE",""),t="local"===o||"express"===o||"1"===f("LC",""),n={thiz:console,log:console.log,error:console.error,auto_ts:t,auto_color:t},u=function(){var r=n.auto_ts&&!Array.isArray(arguments)&&Array.prototype.slice.call(arguments)||arguments;return n.auto_color?(r.unshift("[0m"),n.auto_ts&&r.unshift(c(),"L"),r.unshift("[32m")):n.auto_ts&&r.unshift(c(),"L"),n.log.apply(n.thiz,r)},s=function(){var r=n.auto_ts&&!Array.isArray(arguments)&&Array.prototype.slice.call(arguments)||arguments;return n.auto_color?(r.unshift(""),r.push("[0m"),n.auto_ts&&r.unshift(c(),"I"),r.unshift("[33m")):n.auto_ts&&r.unshift(c(),"I"),n.log.apply(n.thiz,r)},a=function(){var r=n.auto_ts&&!Array.isArray(arguments)&&Array.prototype.slice.call(arguments)||arguments;return n.auto_color?(r.unshift("[0m"),n.auto_ts&&r.unshift(c(),"E"),r.unshift("[31m")):n.auto_ts&&r.unshift(c(),"E"),n.error.apply(n.thiz,r)},l=function(r,e){for(var o in e){var t=e[o];void 0===t?delete r[o]:r[o]=t}return r};function c(r){var e=r||new Date,o=[e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()],t=o[0],i=o[1],n=o[2],u=o[3],s=o[4],a=o[5];return(t<10?"0":"")+t+"-"+(i<10?"0":"")+i+"-"+(n<10?"0":"")+n+" "+(u<10?"0":"")+u+":"+(s<10?"0":"")+s+":"+(a<10?"0":"")+a}function f(r,e){var o=i.env||process&&process.env||{},t=o&&o[r]||void 0;if(e&&e instanceof Error&&void 0===t)throw e;return void 0===t?e:t}var p=function r(e,o){if(e){var t=r,i=void 0!==t[e]?t[e]:void 0;return void 0===o?i:void 0===i?(u("INFO! service["+e+"] registered"),t[e]=o):(a("WARN! service["+e+"] exists! so extends "),i=l(i=i||{},o=o||{}),t[e]=i)}};return p.STAGE=o,p.id=e,p.log=u,p.inf=s,p.err=a,p.extend=l,p.ts=c,p.environ=f,p.$console=n,p.toString=function(){return e||"$ROOT"},r._log=u,r._inf=s,r._err=a,r._$=p,(r[p.id]=p)("_",require("lodash/core")),initialize.apply(p,[r,i]),r}; | ||
"use strict";function initialize(r,e){var o=this;if(!r)throw new Error("$export is required.");if(!o)throw new Error("_$ is required.");if("function"!=typeof o)throw new Error("_$ should be function.");o.log;var t=o.inf,i=(o.err,o.environ("STAGE",""));i&&t("#STAGE =",i),o("U",require("./lib/utilities")(o));var n=require("./lib/http-proxy");o("httpProxy",n),require("./lib/mysql-proxy")(o,"MS"),require("./lib/dynamo-proxy")(o,"DS"),require("./lib/redis-proxy")(o,"RS"),require("./lib/elastic-proxy")(o,"ES"),require("./lib/elastic6-proxy")(o,"ES6"),require("./lib/sqs-proxy")(o,"SS"),require("./lib/sns-proxy")(o,"SN"),require("./lib/ses-proxy")(o,"SE"),require("./lib/web-proxy")(o,"WS"),require("./lib/cognito-proxy")(o,"CS"),require("./lib/lambda-proxy")(o,"LS"),require("./lib/protocol-proxy")(o,"PR");var u=require("./core/lemon-engine-model");return o("LEM",u),Object.assign(r,{createModel:function(r,e,o){return u(r,e,o)},createHttpProxy:function(r,e,o){return n(r,e,o)}})}module.exports=function(r,i){r=r||new function(){};var e=(i=i||{}).name||"lemon",o=f("STAGE",""),t="local"===o||"express"===o||"1"===f("LC",""),n={thiz:console,log:console.log,error:console.error,auto_ts:t,auto_color:t},u=function(){var r=n.auto_ts&&!Array.isArray(arguments)&&Array.prototype.slice.call(arguments)||arguments;return n.auto_color?(r.unshift("[0m"),n.auto_ts&&r.unshift(c(),"L"),r.unshift("[32m")):n.auto_ts&&r.unshift(c(),"L"),n.log.apply(n.thiz,r)},s=function(){var r=n.auto_ts&&!Array.isArray(arguments)&&Array.prototype.slice.call(arguments)||arguments;return n.auto_color?(r.unshift(""),r.push("[0m"),n.auto_ts&&r.unshift(c(),"I"),r.unshift("[33m")):n.auto_ts&&r.unshift(c(),"I"),n.log.apply(n.thiz,r)},l=function(){var r=n.auto_ts&&!Array.isArray(arguments)&&Array.prototype.slice.call(arguments)||arguments;return n.auto_color?(r.unshift("[0m"),n.auto_ts&&r.unshift(c(),"E"),r.unshift("[31m")):n.auto_ts&&r.unshift(c(),"E"),n.error.apply(n.thiz,r)},a=function(r,e){for(var o in e){var t=e[o];void 0===t?delete r[o]:r[o]=t}return r};function c(r){var e=r||new Date,o=[e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()],t=o[0],i=o[1],n=o[2],u=o[3],s=o[4],l=o[5];return(t<10?"0":"")+t+"-"+(i<10?"0":"")+i+"-"+(n<10?"0":"")+n+" "+(u<10?"0":"")+u+":"+(s<10?"0":"")+s+":"+(l<10?"0":"")+l}function f(r,e){var o=i.env||process&&process.env||{},t=o&&o[r]||void 0;if(e&&e instanceof Error&&void 0===t)throw e;return void 0===t?e:t}var p=function r(e,o){if(e){var t=r,i=void 0!==t[e]?t[e]:void 0;return void 0===o?i:void 0===i?(u("INFO! service["+e+"] registered"),t[e]=o):(l("WARN! service["+e+"] exists! so extends "),i=a(i=i||{},o=o||{}),t[e]=i)}};return p.STAGE=o,p.id=e,p.log=u,p.inf=s,p.err=l,p.extend=a,p.ts=c,p.environ=f,p.$console=n,p.toString=function(){return e||"$ROOT"},r._log=u,r._inf=s,r._err=l,r._$=p,(r[p.id]=p)("_",require("lodash/core")),initialize.apply(p,[r,i]),r}; |
{ | ||
"name": "lemoncloud-engine-js", | ||
"version": "0.3.17", | ||
"version": "0.3.18", | ||
"description": "lemoncloud.io - core engine module with user/group/chat service.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -88,2 +88,3 @@ # lemoncloud-engine-js | ||
|-- |-- | ||
| 0.3.18 | add `protocol-proxy`. | ||
| 0.3.17 | optimize `http-proxy`. | ||
@@ -90,0 +91,0 @@ | 0.3.16 | optimize log msg. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104314
25
113
21