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

snowtransfer

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snowtransfer - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "snowtransfer",
"version": "0.1.1",
"version": "0.1.2",
"description": "Minimalistic Rest client for the Discord Api",

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

@@ -13,3 +13,3 @@ let Raven = require('raven');

let BotMethods = require('./methods/Bots');
const Endpoints = require('./Endpoints');
/**

@@ -35,2 +35,3 @@ * @typedef SnowTransfer

* @param {Object} [options.sentryOptions] - Options to use for the sentry client, check the [sentry docs](https://docs.sentry.io/clients/node/config/) for more infos
* @param {String} [options.baseHost=https://discordapp.com] - Base host to use for the requests, may be replaced when using a local hosted proxy
* @return {SnowTransfer} - created instance

@@ -55,3 +56,7 @@ * @constructor

this.ratelimiter = new Ratelimiter();
this.requestHandler = new RequestHandler(this.ratelimiter, {token: this.token, raven: this.raven});
this.requestHandler = new RequestHandler(this.ratelimiter, {
token: this.token,
raven: this.raven,
baseHost: this.options.baseHost || Endpoints.BASE_HOST
});
this.channel = new ChannelMethods(this.requestHandler);

@@ -58,0 +63,0 @@ this.user = new UserMethods(this.requestHandler);

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