Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lemoncloud-engine-js

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lemoncloud-engine-js - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

lib/cognito-proxy.js

@@ -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'

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc