Socket
Socket
Sign inDemoInstall

remote.it

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote.it - npm Package Compare versions

Comparing version 0.39.6 to 0.39.7

17

lib/remote.it.d.ts

@@ -71,4 +71,4 @@ import { AxiosError } from 'axios'

list(): Promise<IContact[]>
create(contact: INewContact): Promise<IContact>
update(contact: IContact): Promise<IContact>
create(contact: IContactPoster): Promise<IContact>
update(contact: IContactPoster): Promise<IContact>
invite(contact: IContact): Promise<IContact>

@@ -78,3 +78,3 @@ destroy(contactID: string): Promise<any>

_formatUpdate(c: {
accountcreated: string
accountcreated?: string | undefined
companyname: string

@@ -87,3 +87,3 @@ created?: string | undefined

language: string
updated: string
updated?: string | undefined
}): IContact

@@ -413,8 +413,9 @@ }

}
export interface INewContact {
companyName?: string
export interface IContactPoster {
companyname?: string
email: string
firstName?: string
lastName?: string
firstname?: string
lastname?: string
language?: string
id?: string
}

@@ -421,0 +422,0 @@ export interface IContact {

@@ -690,4 +690,4 @@ "use strict";

.then(function (_a) {
var contact = _a.contact;
return r3.contacts._formatUpdate(contact);
var newContact = _a.newContact;
return r3.contacts._formatUpdate(newContact);
})];

@@ -703,4 +703,4 @@ });

.then(function (_a) {
var contact = _a.contact;
return r3.contacts._formatUpdate(contact);
var updatedContact = _a.updatedContact;
return r3.contacts._formatUpdate(updatedContact);
})];

@@ -747,3 +747,5 @@ });

accountCreated: true,
companyName: c.companyname !== undefined ? c.companyname : '',
companyName: c.companyname !== undefined && c.companyname !== '-'
? c.companyname
: '',
createdAt: c.created !== '' && c.created !== undefined

@@ -753,6 +755,6 @@ ? new Date(c.created)

email: c.email,
firstName: c.firstname,
firstName: c.firstname !== undefined && c.firstname !== '-' ? c.firstname : '',
id: c.id,
language: c.language || 'en',
lastName: c.lastname,
lastName: c.lastname !== undefined && c.lastname !== '-' ? c.lastname : '',
updatedAt: c.updated !== '' && c.updated !== undefined

@@ -759,0 +761,0 @@ ? new Date(c.updated)

{
"name": "remote.it",
"version": "0.39.6",
"version": "0.39.7",
"description": "remote.it JavaScript/node client library",

@@ -5,0 +5,0 @@ "main": "lib/remote.it.js",

@@ -532,11 +532,13 @@ import axios, { AxiosError, AxiosResponse } from 'axios'

},
async create(contact: INewContact): Promise<IContact> {
async create(contact: IContactPoster): Promise<IContact> {
return r3
.post('/developer/customer/', contact)
.then(({ contact }) => r3.contacts._formatUpdate(contact))
.then(({ newContact }) => r3.contacts._formatUpdate(newContact))
},
async update(contact: IContact): Promise<IContact> {
async update(contact: IContactPoster): Promise<IContact> {
return r3
.post('/developer/customer/', contact)
.then(({ contact }) => r3.contacts._formatUpdate(contact))
.then(({ updatedContact }) =>
r3.contacts._formatUpdate(updatedContact)
)
},

@@ -570,3 +572,3 @@ async invite(contact: IContact): Promise<IContact> {

_formatUpdate(c: {
accountcreated: string
accountcreated?: string
companyname: string

@@ -579,7 +581,10 @@ created?: string

language: string
updated: string
updated?: string
}): IContact {
return {
accountCreated: true,
companyName: c.companyname !== undefined ? c.companyname : '',
companyName:
c.companyname !== undefined && c.companyname !== '-'
? c.companyname
: '',
createdAt:

@@ -590,6 +595,8 @@ c.created !== '' && c.created !== undefined

email: c.email,
firstName: c.firstname,
firstName:
c.firstname !== undefined && c.firstname !== '-' ? c.firstname : '',
id: c.id,
language: c.language || 'en',
lastName: c.lastname,
lastName:
c.lastname !== undefined && c.lastname !== '-' ? c.lastname : '',
updatedAt:

@@ -1109,8 +1116,9 @@ c.updated !== '' && c.updated !== undefined

}
export interface INewContact {
companyName?: string
export interface IContactPoster {
companyname?: string
email: string
firstName?: string
lastName?: string
firstname?: string
lastname?: string
language?: string
id?: string
}

@@ -1117,0 +1125,0 @@ export interface IContact {

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