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

clubhouse-lib

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clubhouse-lib - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

22

build/TokenRequestFactory.js

@@ -7,6 +7,12 @@ 'use strict';

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _queryString = require('query-string');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
require('fetch-everywhere');
var TokenRequestFactory = function () {

@@ -25,3 +31,2 @@ function TokenRequestFactory(token) {

var urlWithToken = url + '?token=' + this.token;
var headers = {

@@ -31,5 +36,16 @@ Accept: 'application/json',

};
var params = _extends({}, body, {
token: this.token
});
return new Request(urlWithToken, {
body: JSON.stringify(body),
if (method === 'GET') {
var resolvedURL = url + '?' + (0, _queryString.stringify)(params);
return new Request(resolvedURL, {
headers: headers,
method: method
});
}
return new Request(url, {
body: JSON.stringify(params),
headers: headers,

@@ -36,0 +52,0 @@ method: method

5

package.json
{
"name": "clubhouse-lib",
"version": "0.4.0",
"version": "0.4.1",
"description": "A Promise based library to the Clubhouse REST API",

@@ -56,4 +56,5 @@ "files": [

"dependencies": {
"fetch-everywhere": "^1.0.5"
"fetch-everywhere": "^1.0.5",
"query-string": "^6.2.0"
}
}

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