lemoncloud-engine-js
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -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 i=o.inf,t=(o.err,o.environ("STAGE",""));t&&i("#STAGE =",t),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/s3-proxy")(o,"S3"),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,t){r=r||new function(){};var e=(t=t||{}).name||"lemon",o=p("STAGE",""),i="local"===o||"express"===o||"1"===p("LC",""),n={thiz:console,log:console.log,error:console.error,auto_ts:i,auto_color:i},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 i=e[o];void 0===i?delete r[o]:r[o]=i}return r};function c(r){var e=r||new Date,o=[e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()],i=o[0],t=o[1],n=o[2],u=o[3],s=o[4],l=o[5];return(i<10?"0":"")+i+"-"+(t<10?"0":"")+t+"-"+(n<10?"0":"")+n+" "+(u<10?"0":"")+u+":"+(s<10?"0":"")+s+":"+(l<10?"0":"")+l}function p(r,e){var o=t.env||process&&process.env||{},i=o&&o[r]||void 0;if(e&&e instanceof Error&&void 0===i)throw e;return void 0===i?e:i}var f=function r(e,o){if(e){var i=r,t=void 0!==i[e]?i[e]:void 0;return void 0===o?t:i[e]=void 0===t?(u("INFO! service["+e+"] registered"),o):(l("WARN! service["+e+"] exists! so extends "),t=a(t=t||{},o=o||{}))}};return f.STAGE=o,f.id=e,f.log=u,f.inf=s,f.err=l,f.extend=a,f.ts=c,f.environ=p,f.$console=n,f.toString=function(){return e||"$ROOT"},r._log=u,r._inf=s,r._err=l,r._$=f,(r[f.id]=f)("_",require("lodash/core")),initialize.apply(f,[r,t]),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 i=o.inf,t=(o.err,o.environ("STAGE",""));t&&i("#STAGE =",t),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/s3-proxy")(o,"S3"),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"),require("./lib/cron-proxy")(o,"CR");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,t){r=r||new function(){};var e=(t=t||{}).name||"lemon",o=p("STAGE",""),i="local"===o||"express"===o||"1"===p("LC",""),n={thiz:console,log:console.log,error:console.error,auto_ts:i,auto_color:i},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 i=e[o];void 0===i?delete r[o]:r[o]=i}return r};function c(r){var e=r||new Date,o=[e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()],i=o[0],t=o[1],n=o[2],u=o[3],s=o[4],l=o[5];return(i<10?"0":"")+i+"-"+(t<10?"0":"")+t+"-"+(n<10?"0":"")+n+" "+(u<10?"0":"")+u+":"+(s<10?"0":"")+s+":"+(l<10?"0":"")+l}function p(r,e){var o=t.env||process&&process.env||{},i=o&&o[r]||void 0;if(e&&e instanceof Error&&void 0===i)throw e;return void 0===i?e:i}var f=function r(e,o){if(e){var i=r,t=void 0!==i[e]?i[e]:void 0;return void 0===o?t:i[e]=void 0===t?(u("INFO! service["+e+"] registered"),o):(l("WARN! service["+e+"] exists! so extends "),t=a(t=t||{},o=o||{}))}};return f.STAGE=o,f.id=e,f.log=u,f.inf=s,f.err=l,f.extend=a,f.ts=c,f.environ=p,f.$console=n,f.toString=function(){return e||"$ROOT"},r._log=u,r._inf=s,r._err=l,r._$=f,(r[f.id]=f)("_",require("lodash/core")),initialize.apply(f,[r,t]),r}; |
{ | ||
"name": "lemoncloud-engine-js", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "lemoncloud.io - Lemon Engine Modle of Node for Robust Micro-service based on DynamoDB + ElastiCache + Elasticsearch.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -89,2 +89,3 @@ # lemoncloud-engine-js | ||
|-- |-- | ||
| 1.0.16 | `cron-proxy` support `Rules` in CloudWatch. | ||
| 1.0.15 | reserved search param page/ipp. | ||
@@ -91,0 +92,0 @@ | 1.0.14 | impromve ES6 index initializer. see `do_initialize()` |
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
116906
27
137
1
22