Socket
Socket
Sign inDemoInstall

mollie-es6

Package Overview
Dependencies
24
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.1.2

6

lib/payments.js
const request = require('./request');
const {assign} = require('lodash');
const accepted = require('accepted');
const denied = require('obj-denied');

@@ -36,6 +36,6 @@ const payment_functions = {

if (options) {
if (accepted(options, ['recurringType']) && !accepted(options, ['customerId'])) {
if (!denied(options, ['recurringType']) && denied(options, ['customerId'])) {
throw {error: 'You need a customerId if you want to use recurring payments'};
}
if (accepted(options, ['recurringType']) && ['first', 'recurring'].indexOf(options.recurringType) === -1) {
if (!denied(options, ['recurringType']) && ['first', 'recurring'].indexOf(options.recurringType) === -1) {
throw {error: 'recurringType needs value "first" or "recurring"'};

@@ -42,0 +42,0 @@ }

{
"name": "mollie-es6",
"version": "2.1.1",
"version": "2.1.2",
"description": "Mollie module in ES6",

@@ -47,4 +47,4 @@ "main": "app.js",

"dependencies": {
"accepted": "^1.1.0",
"lodash": "^3.10.1",
"obj-denied": "^1.1.1",
"superagent": "^1.8.3"

@@ -51,0 +51,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc