New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@liquid-state/idm-client

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liquid-state/idm-client - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

14

dist/client.js

@@ -62,3 +62,3 @@ var __assign = (this && this.__assign) || function () {

this.apiRequest = function (pathKey, errorMessage, requestMethod, queryStringParameters, postData) { return __awaiter(_this, void 0, void 0, function () {
var url, body, key, resp;
var url, resp;
return __generator(this, function (_a) {

@@ -70,9 +70,2 @@ switch (_a.label) {

: '');
body = undefined;
if (postData) {
body = new FormData();
for (key in postData) {
body.append(key, postData[key]);
}
}
return [4 /*yield*/, this.fetch(url, {

@@ -82,4 +75,5 @@ method: requestMethod,

Authorization: "Bearer " + this.jwt,
'content-type': 'application/json',
},
body: body,
body: JSON.stringify(postData),
})];

@@ -102,3 +96,3 @@ case 1:

this.createUser = function (newUser) {
return _this.apiRequest('users', 'Failed to create IDM user', 'POST', undefined, __assign(__assign({}, newUser), { username: newUser.email }));
return _this.apiRequest('users', 'Failed to create IDM user', 'POST', undefined, __assign(__assign({}, newUser), { profile: newUser.profile, username: newUser.email }));
};

@@ -105,0 +99,0 @@ this.users = function (page) {

import IDMClient from './client';
export { default as IDMService } from './service';
export { IIDMClient, IIDMService, IDMUser, Options } from './types';
export { IIDMClient, IIDMService, IDMInvitation, IDMUser, Options } from './types';
export default IDMClient;
//# sourceMappingURL=index.d.ts.map

@@ -0,1 +1,4 @@

declare type ISOString = string;
declare type URL = string;
declare type UUID = string;
export interface IIDMClient {

@@ -29,6 +32,12 @@ createInvitation(invitation: CreateInvitation): Promise<Response>;

export declare type IDMInvitation = {
[key: string]: any;
expires: ISOString;
organisation: URL;
sent_by: URL;
status: 'pending' | 'sent' | 'accepted' | 'expired' | 'cancelled';
token: UUID;
url: URL;
user: URL;
};
export declare type CreateInvitation = {
organisation: number;
organisation: string;
userId: string;

@@ -38,3 +47,3 @@ };

email: string;
organisation: number;
organisation: string;
profile: {

@@ -45,2 +54,3 @@ [key: string]: any;

};
export {};
//# sourceMappingURL=types.d.ts.map
{
"name": "@liquid-state/idm-client",
"version": "0.0.4",
"version": "0.0.5",
"description": "A client for the idm",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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