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

@replicode/parallax

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@replicode/parallax - npm Package Compare versions

Comparing version 1.1.51 to 1.1.52

1

dist/parallax.module.js

@@ -29,2 +29,3 @@ "use strict";

ParallaxModule = ParallaxModule_1 = __decorate([
(0, common_1.Global)(),
(0, common_1.Module)({})

@@ -31,0 +32,0 @@ ], ParallaxModule);

@@ -16,3 +16,4 @@ import { ParallaxOptions } from './parallax.options';

collectionStats(collectionID: string): Promise<Parallax.CollectionStats>;
addWallet(blockchain: string, network: string, address: string): Promise<boolean>;
}
//# sourceMappingURL=parallax.service.d.ts.map

23

dist/parallax.service.js

@@ -94,21 +94,2 @@ "use strict";

}
async addWallet(userID, chain, address) {
let route = `/user/wallet`;
let body = {
address: address
};
const headers = {};
headers[HEADER_EXTERNAL_ID] = userID;
try {
let response = await this.client.post(route, body, {
headers: headers
});
let didAdd = response.data;
return didAdd;
}
catch (e) {
console.log(e);
return null;
}
}
async removeWallet(userID, chain, address) {

@@ -178,5 +159,3 @@ let route = `/user/wallet/${address}`;

try {
let response = await this.client.post(route, body, {
headers: headers
});
let response = await this.client.post(route, body);
let didAdd = response.data;

@@ -183,0 +162,0 @@ return didAdd;

{
"name": "@replicode/parallax",
"version": "1.1.51",
"version": "1.1.52",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index",

@@ -1,5 +0,6 @@

import { DynamicModule, Module } from '@nestjs/common';
import { DynamicModule, Global, Module } from '@nestjs/common';
import { ParallaxService } from './parallax.service';
import { ParallaxOptions } from './parallax.options';
@Global()
@Module({})

@@ -6,0 +7,0 @@ export class ParallaxModule {

@@ -108,26 +108,2 @@ import { Injectable, Logger } from '@nestjs/common';

async addWallet(userID:string, chain:string, address:string):Promise<Boolean> {
let route = `/user/wallet`;
let body = {
address: address
};
const headers = {};
headers[HEADER_EXTERNAL_ID] = userID;
try {
let response:AxiosResponse = await this.client.post(route, body, {
headers: headers
});
let didAdd: Boolean = response.data as Boolean;
return didAdd;
} catch (e) {
console.log(e);
return null;
}
}
async removeWallet(userID:string, chain:string, address:string):Promise<Boolean> {

@@ -212,5 +188,3 @@

try {
let response:AxiosResponse = await this.client.post(route, body, {
headers: headers
});
let response:AxiosResponse = await this.client.post(route, body);
let didAdd: boolean = response.data as boolean;

@@ -217,0 +191,0 @@ return didAdd;

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