lemoncloud-engine-js
Advanced tools
Comparing version 0.3.12 to 0.3.13
@@ -1,1 +0,1 @@ | ||
"use strict";function initialize(r,e){var t=this;if(!r)throw new Error("$export is required.");if(!t)throw new Error("_$ is required.");if("function"!=typeof t)throw new Error("_$ should be function.");t.log;var o=t.inf,i=(t.err,t.environ("STAGE",""));i&&o("#STAGE =",i),t("U",require("./lib/utilities")(t));var n=require("./lib/http-proxy");t("httpProxy",n),require("./lib/mysql-proxy")(t,"MS"),require("./lib/dynamo-proxy")(t,"DS"),require("./lib/redis-proxy")(t,"RS"),require("./lib/elastic-proxy")(t,"ES"),require("./lib/elastic6-proxy")(t,"ES6"),require("./lib/sqs-proxy")(t,"SS"),require("./lib/sns-proxy")(t,"SN"),require("./lib/web-proxy")(t,"WS"),require("./lib/cognito-proxy")(t,"CS");var u=require("./core/lemon-engine-model");return t("LEM",u),Object.assign(r,{createModel:function(r,e,t){return u(r,e,t)},createHttpProxy:function(r,e,t){return n(r,e,t)}})}module.exports=function(r,i){r=r||new function(){};var e=(i=i||{}).name||"lemon",t=f("STAGE",""),o="local"===t||"express"===t||"1"===f("LC",""),n={thiz:console,log:console.log,error:console.error,auto_ts:o,auto_color:o},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 t in e){var o=e[t];void 0===o?delete r[t]:r[t]=o}return r};function c(r){var e=r||new Date,t=[e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()],o=t[0],i=t[1],n=t[2],u=t[3],s=t[4],a=t[5];return(o<10?"0":"")+o+"-"+(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 t=i.env||process&&process.env||{},o=t&&t[r]||void 0;if(e&&e instanceof Error&&void 0===o)throw e;return void 0===o?e:o}var p=function r(e,t){if(e){var o=r,i=void 0!==o[e]?o[e]:void 0;return void 0===t?i:void 0===i?(u("INFO! service["+e+"] registered"),o[e]=t):(a("WARN! service["+e+"] exists! so extends "),i=l(i=i||{},t=t||{}),o[e]=i)}};return p.STAGE=t,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 t=this;if(!r)throw new Error("$export is required.");if(!t)throw new Error("_$ is required.");if("function"!=typeof t)throw new Error("_$ should be function.");t.log;var o=t.inf,i=(t.err,t.environ("STAGE",""));i&&o("#STAGE =",i),t("U",require("./lib/utilities")(t));var n=require("./lib/http-proxy");t("httpProxy",n),require("./lib/mysql-proxy")(t,"MS"),require("./lib/dynamo-proxy")(t,"DS"),require("./lib/redis-proxy")(t,"RS"),require("./lib/elastic-proxy")(t,"ES"),require("./lib/elastic6-proxy")(t,"ES6"),require("./lib/sqs-proxy")(t,"SS"),require("./lib/sns-proxy")(t,"SN"),require("./lib/web-proxy")(t,"WS"),require("./lib/cognito-proxy")(t,"CS"),require("./lib/lambda-proxy")(t,"LS");var u=require("./core/lemon-engine-model");return t("LEM",u),Object.assign(r,{createModel:function(r,e,t){return u(r,e,t)},createHttpProxy:function(r,e,t){return n(r,e,t)}})}module.exports=function(r,i){r=r||new function(){};var e=(i=i||{}).name||"lemon",t=f("STAGE",""),o="local"===t||"express"===t||"1"===f("LC",""),n={thiz:console,log:console.log,error:console.error,auto_ts:o,auto_color:o},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 t in e){var o=e[t];void 0===o?delete r[t]:r[t]=o}return r};function c(r){var e=r||new Date,t=[e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()],o=t[0],i=t[1],n=t[2],u=t[3],s=t[4],a=t[5];return(o<10?"0":"")+o+"-"+(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 t=i.env||process&&process.env||{},o=t&&t[r]||void 0;if(e&&e instanceof Error&&void 0===o)throw e;return void 0===o?e:o}var p=function r(e,t){if(e){var o=r,i=void 0!==o[e]?o[e]:void 0;return void 0===t?i:void 0===i?(u("INFO! service["+e+"] registered"),o[e]=t):(a("WARN! service["+e+"] exists! so extends "),i=l(i=i||{},t=t||{}),o[e]=i)}};return p.STAGE=t,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}; |
{ | ||
"name": "lemoncloud-engine-js", | ||
"version": "0.3.12", | ||
"version": "0.3.13", | ||
"description": "lemoncloud.io - core engine module with user/group/chat service.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -55,2 +55,3 @@ # lemoncloud-engine-js | ||
ES_MASTER : 1, // MASTER NODE. | ||
ES_VERSION : 6, // Use ES Version 6. | ||
CLONEABLE : true, // 복제 가능하며, parent/cloned 필드를 지원함. | ||
@@ -88,2 +89,3 @@ PARENT_IMUT : false, // parent-id 변경 가능함(2018.03.15) | ||
|-- |-- | ||
| 0.3.13 | lambda-proxy as 'LS'. set `LS_ENDPOINT`. | ||
| 0.3.12 | optimize 404 error message. | ||
@@ -90,0 +92,0 @@ | 0.3.11 | allow ipp to be set 0. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
104835
24
108
1
19