lemoncloud-engine-js
Advanced tools
Comparing version 0.3.23 to 0.3.24
@@ -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"),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}; | ||
"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:void 0===t?(u("INFO! service["+e+"] registered"),i[e]=o):(l("WARN! service["+e+"] exists! so extends "),t=a(t=t||{},o=o||{}),i[e]=t)}};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": "0.3.23", | ||
"version": "0.3.24", | ||
"description": "lemoncloud.io - core engine module with user/group/chat service.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -89,2 +89,3 @@ # lemoncloud-engine-js | ||
|-- |-- | ||
| 0.3.24 | add `s3-proxy` as `S3`. @180913. | ||
| 0.3.23 | cognito: `do_get_confirm_user()`. @180911. | ||
@@ -91,0 +92,0 @@ | 0.3.22 | support xecured fields see `XECURE_KEY`. @180801. |
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
109299
26
120
22