New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@digilabs/ngest-ig

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digilabs/ngest-ig - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

26

lib/client/authenticat.js

@@ -234,5 +234,14 @@ 'use strict'

getMarket(epic) {
getMarketEpic(epic) {
console.log('the epic', epic)
let options = {
method: IG_ENDPOINTS.market_epics.action.get.method,
url: IG_ENDPOINTS.market_epics.endpoint + '/' + epic,
baseURL: this.getBaseUrl(),
// data: creds,
headers: this.setHttpAuthHeaders({ 'version': IG_ENDPOINTS.market_epics.action.get.version }),
}
return this._get(options);
}

@@ -286,15 +295,4 @@

getMarketEpic(id){
if (!id) return Promise.reject('Please provide a watchlist id');
let options = {
method: IG_ENDPOINTS.market_epics.action.get.method,
url: IG_ENDPOINTS.market_epics.endpoint + '/'+id,
baseURL: this.getBaseUrl(),
// data: creds,
headers: this.setHttpAuthHeaders({ 'version': IG_ENDPOINTS.market_epics.action.get.version }),
}
return this._get(options);
}
getBaseUrl() {
console.log('returning base url')
return (this.environment !== 'prod') ? 'https://demo-api.ig.com/gateway/deal' : 'https://api.ig.com/gateway/deal';

@@ -318,3 +316,3 @@ }

.catch(err => {
// console.log(err)
console.log(err)
return Promise.reject({

@@ -321,0 +319,0 @@ status: err.response.status,

{
"name": "@digilabs/ngest-ig",
"version": "1.1.0",
"version": "1.1.1",
"description": "IG API nodejs client",

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

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