Socket
Socket
Sign inDemoInstall

lemoncloud-engine-js

Package Overview
Dependencies
116
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.15 to 1.0.16

lib/cron-proxy.js

2

index.js

@@ -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(""),n.auto_ts&&r.unshift(c(),"L"),r.unshift("")):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(""),n.auto_ts&&r.unshift(c(),"I"),r.unshift("")):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(""),n.auto_ts&&r.unshift(c(),"E"),r.unshift("")):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(""),n.auto_ts&&r.unshift(c(),"L"),r.unshift("")):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(""),n.auto_ts&&r.unshift(c(),"I"),r.unshift("")):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(""),n.auto_ts&&r.unshift(c(),"E"),r.unshift("")):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()`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc