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

gocardless-api

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gocardless-api - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

3

lib/gocardless.js
const needle = require('needle')
const url = require('url')
const GOCARDLESS_BASE_URL = 'https://api.gocardless.com/'
const GOCARDLESS_SANDBOX_BASE_URL = 'https://api-sandbox.gocardless.com'
const GOCARDLESS_API_VERSION = '2015-07-06'

@@ -34,3 +35,3 @@

// return request
const REQUEST_URL = url.parse(GOCARDLESS_BASE_URL)
const REQUEST_URL = url.parse(/^sandbox/.test(AccessToken) ? GOCARDLESS_SANDBOX_BASE_URL : GOCARDLESS_BASE_URL)
REQUEST_URL.query = query

@@ -37,0 +38,0 @@ REQUEST_URL.pathname = resource

{
"name": "gocardless-api",
"version": "0.1.2",
"version": "0.1.3",
"description": "Wrapper for GoCardless API v2",

@@ -5,0 +5,0 @@ "main": "./lib/gocardless.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