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

tol-api

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tol-api - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

3

index.js
var api = require('./lib/api');
var _ = require('underscore');
var createClient = exports = module.exports = function(apiUrl, apiVersion, clientId, clientSecret) {
var createClient = exports = module.exports = function(apiUrl, clientId, clientSecret) {
var client = _.extend({}, api);
client.init();
client.set('url', apiUrl);
client.set('version', apiVersion);
client.set('clientId', clientId);

@@ -10,0 +9,0 @@ client.set('clientSecret', clientSecret);

@@ -19,3 +19,3 @@ var request = require('request');

api.urlFor = function(resource, id) {
var url = this.settings.url + '/v' + this.settings.version + '/' + resource;
var url = this.settings.url + '/' + resource;
if (id) {

@@ -73,2 +73,6 @@ url = url + '/' + id;

api.getResult = function(resource, id, parameters) {
return this.get(resource, id, parameters).get('result');
};
api.index = function(resource, parameters) {

@@ -75,0 +79,0 @@ return this.getToken().then(_.bind(function(token) {

{
"name": "tol-api",
"version": "0.1.1",
"version": "0.2.0",
"description": "TraderOnline api client",
"dependencies": {
"q": "~0.9.7",
"request": "~2.27",
"underscore": "~1.5"
"q": "~1.0",
"request": "~2.34",
"underscore": "~1.6"
}
}
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