lemoncloud-engine-js
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -1,1 +0,1 @@ | ||
"use strict";module.exports=function(i,t){t=t||"CS";var r=i.U,e=i._;if(!r)throw new Error("$U is required!");if(!e)throw new Error("$_ is required!");r.NS(t,"yellow"),i.log,i.inf,i.err;var n={do_getUser:function(r,e){if(!r)return Promise.reject("userPoolId is required!");if(!e)return Promise.reject("userSub is required!");var i=Object.assign({},{});return s().do_get(r,e,void 0,i).then(function(r){return r.result})}};i(t,n);var o=r.env("CS_ENDPOINT"),u=require("./http-proxy"),s=function(){if(!o)throw new Error("env:CS_ENDPOINT is required!");var r="X"+t,e=i(r);return e||u(i,r,o)};return n}; | ||
"use strict";module.exports=function(t,i){i=i||"CS";var r=t.U,e=t._;if(!r)throw new Error("$U is required!");if(!e)throw new Error("$_ is required!");r.NS(i,"yellow"),t.log,t.inf,t.err;var u={do_get_user:function(r,e){if(!r)return Promise.reject(new Error("userPoolId is required!"));if(!e)return Promise.reject(new Error("userSub is required!"));var t=Object.assign({},{});return s().do_get(r,e,void 0,t).then(function(r){return r.result})},do_get_enable_user:function(r,e){return r?e?s().do_get(r,e,"enable").then(function(r){return r.result}):Promise.reject(new Error("userSub is required!")):Promise.reject(new Error("userPoolId is required!"))},do_get_disable_user:function(r,e){return r?e?s().do_get(r,e,"disable").then(function(r){return r.result}):Promise.reject(new Error("userSub is required!")):Promise.reject(new Error("userPoolId is required!"))},do_list_user:function(r,e,t,i){if(!r)return Promise.reject(new Error("userPoolId is required!"));var u=Object.assign({},{});i&&(u.limit=i);e&&(u[e]=t);return s().do_get(r,void 0,void 0,u).then(function(r){return r.result})},do_update_user:function(r,e,t){if(!r)return Promise.reject(new Error("userPoolId is required!"));if(!e)return Promise.reject(new Error("userSub is required!"));if(!t)return Promise.reject(new Error("$attr is required!"));var i=Object.assign({},{}),u=Object.assign({},t||{});return s().do_put(r,e,void 0,i,u).then(function(r){return r.result})},do_list_group:function(r,e){if(!r)return Promise.reject(new Error("userPoolId is required!"));var t=Object.assign({},{});e&&(t.limit=e);return s().do_get(r,"!",void 0,t).then(function(r){return r.result})},do_get_group:function(r,e){if(!r)return Promise.reject(new Error("userPoolId is required!"));if(!e)return Promise.reject("groupId is required!");var t=Object.assign({},{});return s().do_get(r,"!"+e,void 0,t).then(function(r){return r.result})},do_add_user_to_group:function(r,e,t){if(!r)return Promise.reject(new Error("userPoolId is required!"));if(!e)return Promise.reject("groupId is required!");if(!t)return Promise.reject("userId is required!");var i=Object.assign({},{}),u={user:t};return s().do_post(r,"!"+e,"user",i,u).then(function(r){return r.result})},do_create_group:function(r,e,t){if(!r)return Promise.reject(new Error("userPoolId is required!"));if(!e)return Promise.reject("groupName is required!");var i=Object.assign({},{}),u={description:t};return s().do_post(r,"!"+e,void 0,i,u).then(function(r){return r.result})}};t(i,u);var o=r.env("CS_ENDPOINT"),n=require("./http-proxy"),s=function(){if(!o)throw new Error("env:CS_ENDPOINT is required!");var r="X"+i,e=t(r);return e||n(t,r,o)};return u}; |
{ | ||
"name": "lemoncloud-engine-js", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "lemoncloud.io - core engine module with user/group/chat service.", | ||
@@ -21,3 +21,2 @@ "main": "index.js", | ||
"dynamodb-value": "^1.0.5", | ||
"express": "^4.16.2", | ||
"js-yaml": "^3.11.0", | ||
@@ -24,0 +23,0 @@ "query-string": "^6.0.0", |
@@ -85,2 +85,3 @@ # lemoncloud-engine-js | ||
|-- |-- | ||
| 0.3.2 | cognito service - manager user/group. | ||
| 0.3.1 | remove MMS,user,group service. and add cognito service. | ||
@@ -87,0 +88,0 @@ | 0.2.13 | cognito-proxy as 'CS' |
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
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
97532
4
94
1
- Removedexpress@^4.16.2
- Removedaccepts@1.3.8(transitive)
- Removedarray-flatten@1.1.1(transitive)
- Removedbody-parser@1.20.3(transitive)
- Removedbytes@3.1.2(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcontent-disposition@0.5.4(transitive)
- Removedcontent-type@1.0.5(transitive)
- Removedcookie@0.7.1(transitive)
- Removedcookie-signature@1.0.6(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddepd@2.0.0(transitive)
- Removeddestroy@1.2.0(transitive)
- Removedee-first@1.1.1(transitive)
- Removedencodeurl@1.0.22.0.0(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedescape-html@1.0.3(transitive)
- Removedetag@1.8.1(transitive)
- Removedexpress@4.21.1(transitive)
- Removedfinalhandler@1.3.1(transitive)
- Removedforwarded@0.2.0(transitive)
- Removedfresh@0.5.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhttp-errors@2.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinherits@2.0.4(transitive)
- Removedipaddr.js@1.9.1(transitive)
- Removedmedia-typer@0.3.0(transitive)
- Removedmerge-descriptors@1.0.3(transitive)
- Removedmethods@1.1.2(transitive)
- Removedmime@1.6.0(transitive)
- Removedms@2.0.02.1.3(transitive)
- Removednegotiator@0.6.3(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedon-finished@2.4.1(transitive)
- Removedparseurl@1.3.3(transitive)
- Removedpath-to-regexp@0.1.10(transitive)
- Removedproxy-addr@2.0.7(transitive)
- Removedqs@6.13.0(transitive)
- Removedrange-parser@1.2.1(transitive)
- Removedraw-body@2.5.2(transitive)
- Removedsend@0.19.0(transitive)
- Removedserve-static@1.16.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedstatuses@2.0.1(transitive)
- Removedtoidentifier@1.0.1(transitive)
- Removedtype-is@1.6.18(transitive)
- Removedunpipe@1.0.0(transitive)
- Removedutils-merge@1.0.1(transitive)
- Removedvary@1.1.2(transitive)