lemoncloud-engine-js
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -1,1 +0,1 @@ | ||
"use strict";module.exports=function(r,e){e=e||"ES";var t=r.U,i=r._;if(!t)throw new Error("$U is required!");if(!i)throw new Error("$_ is required!");var u=t.NS(e,"cyan"),n={},o=r.log;r.inf,r.err;n.do_create_index_type=function(r,e,t){if(!r)return Promise.reject(new Error(u+"index is required"));var i=Object.assign({},t||{});return d().do_get(r,"0","create-index",i).then(function(r){return r.result})},n.do_delete_index_type=function(r,e,t){if(!r)return Promise.reject(new Error(u+"index is required"));var i=Object.assign({},t||{});return d().do_get(r,"0","delete-index",i).then(function(r){return r.result})},n.do_create_item=function(r,e,t,i){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:id is required"));if(!i)return Promise.reject(new Error(u+"parameter:data is required"));var n=Object.assign({},{});return n.$type=e,d().do_post(r,t,void 0,n,i).then(function(r){return r.result})},n.do_push_item=function(r,e,t,i){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:data is required"));var n=Object.assign({},{});return n.$type=e,i=""===(i=i||"")?"0":"",d().do_post(r,i,"push",n,t).then(function(r){return r.result})},n.do_get_item=function(r,e,t,i){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:id is required"));var n=Object.assign({},{});return n.$type=e,d().do_get(r,t,void 0,n,i).then(function(r){return r.result})},n.do_delete_item=function(r,e,t){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:id is required"));var i=Object.assign({},{});return i.$type=e,d().do_delete(r,t,void 0,i).then(function(r){return r.result})},n.do_update_item=function(r,e,t,i){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:id is required"));if(!i)return Promise.reject(new Error(u+"parameter:data is required"));var n=Object.assign({},{});return n.$type=e,d().do_put(r,t,void 0,n,i).then(function(r){return r.result})},n.do_search_item=function(r,e,t){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!t)return Promise.reject(new Error(u+"parameter:param is required"));var i=Object.assign({},t||{});return i.$type=e,d().do_get(r,"",void 0,i).then(function(r){return r.result})},n.do_test_self=function(r){o(u,"- do_test_self()... param=",r=r||{});var e=Object.assign({},r||{});return d().do_get("#","0","test-self",e).then(function(r){return r.result})},r(e,n);var s=t.env("ES_ENDPOINT"),a=require("./http-proxy"),d=function(){if(!s)throw new Error("env:ES_ENDPOINT is required!");return a(r,"X"+e,s)};return n}; | ||
"use strict";module.exports=function(r,e){e=e||"ES";var t=r.U,i=r._;if(!t)throw new Error("$U is required!");if(!i)throw new Error("$_ is required!");var u=t.NS(e,"cyan"),n={},o=r.log;r.inf,r.err;n.do_create_index_type=function(r,e,t){if(!r)return Promise.reject(new Error(u+"index is required"));var i=Object.assign({},{});return d().do_post(r,"0","create-index",i,t).then(function(r){return r.result})},n.do_delete_index_type=function(r,e,t){if(!r)return Promise.reject(new Error(u+"index is required"));var i=Object.assign({},{});return d().do_post(r,"0","delete-index",i,t).then(function(r){return r.result})},n.do_create_item=function(r,e,t,i){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:id is required"));if(!i)return Promise.reject(new Error(u+"parameter:data is required"));var n=Object.assign({},{});return n.$type=e,d().do_post(r,t,void 0,n,i).then(function(r){return r.result})},n.do_push_item=function(r,e,t,i){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:data is required"));var n=Object.assign({},{});return n.$type=e,i=""===(i=i||"")?"0":"",d().do_post(r,i,"push",n,t).then(function(r){return r.result})},n.do_get_item=function(r,e,t,i){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:id is required"));var n=Object.assign({},{});return n.$type=e,d().do_get(r,t,void 0,n,i).then(function(r){return r.result})},n.do_delete_item=function(r,e,t){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:id is required"));var i=Object.assign({},{});return i.$type=e,d().do_delete(r,t,void 0,i).then(function(r){return r.result})},n.do_update_item=function(r,e,t,i){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!e)return Promise.reject(new Error(u+"parameter:type is required"));if(!t)return Promise.reject(new Error(u+"parameter:id is required"));if(!i)return Promise.reject(new Error(u+"parameter:data is required"));var n=Object.assign({},{});return n.$type=e,d().do_put(r,t,void 0,n,i).then(function(r){return r.result})},n.do_search_item=function(r,e,t){if(!r)return Promise.reject(new Error(u+"parameter:index is required"));if(!t)return Promise.reject(new Error(u+"parameter:param is required"));var i=Object.assign({},t||{});return i.$type=e,d().do_get(r,"",void 0,i).then(function(r){return r.result})},n.do_test_self=function(r){o(u,"- do_test_self()... param=",r=r||{});var e=Object.assign({},r||{});return d().do_get("#","0","test-self",e).then(function(r){return r.result})},r(e,n);var s=t.env("ES_ENDPOINT"),a=require("./http-proxy"),d=function(){if(!s)throw new Error("env:ES_ENDPOINT is required!");return a(r,"X"+e,s)};return n}; |
@@ -1,1 +0,1 @@ | ||
{"name":"lemoncloud-engine-js","version":"0.2.6","description":"lemoncloud.io - core engine module with user/group/chat service.","main":"index.js","scripts":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/lemoncloud-io/lemoncloud-engine-js.git"},"keywords":["lemoncloud","engine"],"author":"Steve (steve@lemoncloud.io)","license":"MIT","dependencies":{"dynamodb-value":"^1.0.5","express":"^4.16.2","js-yaml":"^3.11.0","query-string":"^6.0.0","request":"^2.81.0"},"bugs":{"url":"https://github.com/lemoncloud-io/lemoncloud-engine-js/issues"},"homepage":"https://github.com/lemoncloud-io/lemoncloud-engine-js#readme"} | ||
{"name":"lemoncloud-engine-js","version":"0.2.7","description":"lemoncloud.io - core engine module with user/group/chat service.","main":"index.js","scripts":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/lemoncloud-io/lemoncloud-engine-js.git"},"keywords":["lemoncloud","engine"],"author":"Steve (steve@lemoncloud.io)","license":"MIT","dependencies":{"dynamodb-value":"^1.0.5","express":"^4.16.2","js-yaml":"^3.11.0","query-string":"^6.0.0","request":"^2.81.0"},"bugs":{"url":"https://github.com/lemoncloud-io/lemoncloud-engine-js/issues"},"homepage":"https://github.com/lemoncloud-io/lemoncloud-engine-js#readme"} |
@@ -86,5 +86,5 @@ # lemoncloud-engine-js | ||
| 0.2.5 | web-proxy as 'WS' | ||
| 0.2.4 | record revent | ||
| 0.2.4 | record event handler | ||
| 0.2.3 | sqs-proxy as 'SS' | ||
| 0.2.0 | support scope during 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
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
89843