Socket
Socket
Sign inDemoInstall

@cubejs-client/core

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cubejs-client/core - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

dist/cubejs-client-core.js

@@ -409,6 +409,8 @@ 'use strict';

function () {
function CubejsApi(apiToken) {
function CubejsApi(apiToken, options) {
_classCallCheck(this, CubejsApi);
options = options || {};
this.apiToken = apiToken;
this.apiUrl = options.apiUrl || API_URL;
}

@@ -419,3 +421,3 @@

value: function request(url, config) {
return whatwgFetch.fetch("".concat(API_URL).concat(url), Object.assign({
return whatwgFetch.fetch("".concat(this.apiUrl).concat(url), Object.assign({
headers: {

@@ -422,0 +424,0 @@ Authorization: this.apiToken,

{
"name": "@cubejs-client/core",
"version": "0.2.0",
"version": "0.2.1",
"description": "cube.js client",

@@ -5,0 +5,0 @@ "main": "dist/cubejs-client-core.js",

@@ -9,4 +9,6 @@ import { fetch } from 'whatwg-fetch';

class CubejsApi {
constructor(apiToken) {
constructor(apiToken, options) {
options = options || {};
this.apiToken = apiToken;
this.apiUrl = options.apiUrl || API_URL;
}

@@ -16,3 +18,3 @@

return fetch(
`${API_URL}${url}`,
`${this.apiUrl}${url}`,
Object.assign({ headers: { Authorization: this.apiToken, 'Content-Type': 'application/json' }}, config || {})

@@ -19,0 +21,0 @@ )

Sorry, the diff of this file is too big to display

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