Socket
Socket
Sign inDemoInstall

assistants-api

Package Overview
Dependencies
27
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.3.0

9

index.js

@@ -1,3 +0,1 @@

const nodeFetch = require('node-fetch');
const fetch = require('fetch-cookie')(nodeFetch);
const EventEmitter = require('events');

@@ -25,2 +23,5 @@

constructor(parametr, password) {
const nodeFetch = require('node-fetch');
const fetch = require('fetch-cookie')(nodeFetch);
this.fetch = fetch;
this.user = null;

@@ -30,3 +31,3 @@ if(!parametr || !password)throw new Error("Assistants: No credentials were given or one of them is missing.");

this.password = password;
setInterval(async ()=>{

@@ -45,2 +46,3 @@ let session = await this.session();

async login() {
let fetch = this.fetch;
let data = (await methods.login(this.parametr, this.password, fetch));

@@ -59,2 +61,3 @@ if(!data.error)this.user = data.data;

async register({username,email,password, tos=true}) {
let fetch = this.fetch;
let data = (await methods.register(username, email, password, tos, fetch));

@@ -61,0 +64,0 @@ return data;

{
"name": "assistants-api",
"version": "1.2.0",
"version": "1.3.0",
"description": "Assistants Center API Client",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc