Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

equityjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

equityjs - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

README.md

75

index.js

@@ -18,2 +18,3 @@ /**

const c = require('rangi');
const d = require('debug')('equity');
const p = require('./package.json');

@@ -83,3 +84,3 @@ const fs = require('fs');

if (typeof opts !== 'object' || !opts.hasOwnProperty('consumerKey') || !opts.hasOwnProperty('consumerSecret')) {
console.error(c.red(error.noKeyAndSecret));
d(c.red(error.noKeyAndSecret));
process.exit(1);

@@ -112,7 +113,7 @@ }

if (typeof opts !== 'object') {
console.error(c.red(error.missingParam));
d(c.red(error.missingParam));
}
if (!opts.hasOwnProperty('username') || opts['username'] === '') {
console.error(c.red(error.noParam + 'username'));
d(c.red(error.noParam + 'username'));
}

@@ -123,3 +124,3 @@

if (!opts.hasOwnProperty('password') || opts['password'] === '') {
console.error(c.red(error.noParam + 'password'));
d(c.red(error.noParam + 'password'));
}

@@ -130,3 +131,3 @@

if (!opts.hasOwnProperty('grant_type') || opts['grant_type'] === '') {
console.error(c.red(error.noParam + 'grant_type'));
d(c.red(error.noParam + 'grant_type'));
}

@@ -176,11 +177,11 @@

if (typeof opts !== 'object') {
console.error(c.red(error.missingParam));
d(c.red(error.missingParam));
}
if (!opts.hasOwnProperty('merchantId') || opts['merchantId'] === '') {
console.error(c.red(error.noParam + 'merchant id'));
d(c.red(error.noParam + 'merchant id'));
}
if (!opts.hasOwnProperty('currentPassword') || opts['currentPassword'] === '') {
console.error(c.red(error.noParam + 'current password'));
d(c.red(error.noParam + 'current password'));
}

@@ -191,3 +192,3 @@

if (!opts.hasOwnProperty('newPassword') || opts['newPassword'] === '') {
console.error(c.red(error.noParam + 'new password'));
d(c.red(error.noParam + 'new password'));
}

@@ -235,7 +236,7 @@

if (typeof opts !== 'object') {
console.error(c.red(error.missingParam));
d(c.red(error.missingParam));
}
if (!opts.hasOwnProperty('mobileNumber') || opts['mobileNumber'] === '') {
console.error(c.red(error.noParam + 'mobile number'));
d(c.red(error.noParam + 'mobile number'));

@@ -247,3 +248,3 @@ }

if (!opts.hasOwnProperty('amount') || opts['amount'] === '') {
console.error(c.red(error.noParam + 'amount'));
d(c.red(error.noParam + 'amount'));
}

@@ -254,3 +255,3 @@

if (!opts.hasOwnProperty('telco') || opts['telco'] === '') {
console.error(c.red(error.noParam + 'telco'));
d(c.red(error.noParam + 'telco'));
}

@@ -261,3 +262,3 @@

if (!opts.hasOwnProperty('reference') || opts['reference'] === '') {
console.error(c.red(error.noParam + 'reference'));
d(c.red(error.noParam + 'reference'));
}

@@ -306,7 +307,7 @@

if (typeof opts !== 'object') {
console.error(c.red(error.missingParam));
d(c.red(error.missingParam));
}
if (!opts.hasOwnProperty('mobileNumber') || opts['mobileNumber'] === '') {
console.error(c.red(error.noParam + 'mobile number'));
d(c.red(error.noParam + 'mobile number'));
}

@@ -317,3 +318,3 @@

if (!opts.hasOwnProperty('amount') || opts['amount'] === '') {
console.error(c.red(error.noParam + 'amount'));
d(c.red(error.noParam + 'amount'));
}

@@ -324,3 +325,3 @@

if (!opts.hasOwnProperty('description') || opts['description'] === '') {
console.error(c.red(error.noParam + 'description'));
d(c.red(error.noParam + 'description'));
}

@@ -331,3 +332,3 @@

if (!opts.hasOwnProperty('type') || opts['type'] === '') {
console.error(c.red(error.noParam + 'type'));
d(c.red(error.noParam + 'type'));
}

@@ -338,3 +339,3 @@

if (!opts.hasOwnProperty('auditNumber') || opts['auditNumber'] === '') {
console.error(c.red(error.noParam + 'audit number'));
d(c.red(error.noParam + 'audit number'));
}

@@ -376,7 +377,7 @@

if (typeof opts !== 'object') {
console.error(c.red(error.missingParam));
d(c.red(error.missingParam));
}
if (!opts.hasOwnProperty('transactionId') || opts['transactionId'] === '') {
console.error(c.red(error.noParam + 'transaction id'));
d(c.red(error.noParam + 'transaction id'));
}

@@ -433,7 +434,7 @@

if (typeof opts !== 'object') {
console.error(c.red(error.missingParam));
d(c.red(error.missingParam));
}
if (!opts.hasOwnProperty('transactionReference') || opts['transactionReference'] === '') {
console.error(c.red(error.noParam + 'transaction reference'));
d(c.red(error.noParam + 'transaction reference'));
}

@@ -444,3 +445,3 @@

if (!opts.hasOwnProperty('senderName') || opts['senderName'] === '') {
console.error(c.red(error.noParam + 'sender name'));
d(c.red(error.noParam + 'sender name'));
}

@@ -451,3 +452,3 @@

if (!opts.hasOwnProperty('accountNumber') || opts['accountNumber'] === '') {
console.error(c.red(error.noParam + 'account number'));
d(c.red(error.noParam + 'account number'));
}

@@ -458,3 +459,3 @@

if (!opts.hasOwnProperty('bicCode') || opts['bicCode'] === '') {
console.error(c.red(error.noParam + 'BIC CODE'));
d(c.red(error.noParam + 'BIC CODE'));
}

@@ -465,3 +466,3 @@

if (!opts.hasOwnProperty('mobileNumber') || opts['mobileNumber'] === '') {
console.error(c.red(error.noParam + 'mobile number'));
d(c.red(error.noParam + 'mobile number'));
}

@@ -472,3 +473,3 @@

if (!opts.hasOwnProperty('walletName') || opts['walletName'] === '') {
console.error(c.red(error.noParam + 'wallet name'));
d(c.red(error.noParam + 'wallet name'));
}

@@ -479,3 +480,3 @@

if (!opts.hasOwnProperty('bankCode') || opts['bankCode'] === '') {
console.error(c.red(error.noParam + 'bank code'));
d(c.red(error.noParam + 'bank code'));
}

@@ -486,3 +487,3 @@

if (!opts.hasOwnProperty('branchCode') || opts['branchCode'] === '') {
console.error(c.red(error.noParam + 'branch code'));
d(c.red(error.noParam + 'branch code'));
}

@@ -493,3 +494,3 @@

if (!opts.hasOwnProperty('countryCode') || opts['countryCode'] === '') {
console.error(c.red(error.noParam + 'country code'));
d(c.red(error.noParam + 'country code'));
}

@@ -500,3 +501,3 @@

if (!opts.hasOwnProperty('currencyCode') || opts['currencyCode'] === '') {
console.error(c.red(error.noParam + 'currency code'));
d(c.red(error.noParam + 'currency code'));
}

@@ -507,3 +508,3 @@

if (!opts.hasOwnProperty('amount') || opts['amount'] === '') {
console.error(c.red(error.noParam + 'amount'));
d(c.red(error.noParam + 'amount'));
}

@@ -514,3 +515,3 @@

if (!opts.hasOwnProperty('paymentType') || opts['paymentType'] === '') {
console.error(c.red(error.noParam + 'payment type'));
d(c.red(error.noParam + 'payment type'));
}

@@ -521,3 +522,3 @@

if (!opts.hasOwnProperty('paymentReferences') || opts['paymentReferences'] === '') {
console.error(c.red(error.noParam + 'payment references'));
d(c.red(error.noParam + 'payment references'));
}

@@ -528,3 +529,3 @@

if (!opts.hasOwnProperty('remarks') || opts['remarks'] === '') {
console.error(c.red(error.noParam + 'remarks'));
d(c.red(error.noParam + 'remarks'));
}

@@ -531,0 +532,0 @@

{
"name": "equityjs",
"version": "1.1.0",
"version": "1.1.2",
"description": "A Node.js Library For The Equity Eazzy API",

@@ -8,3 +8,3 @@ "main": "index.js",

"test": "grunt test",
"test-coverage": "istanbul cover _mocha --report lcovonly -- -R spec test.js"
"test-coverage": "istanbul cover _mocha --report lcovonly -- -R spec test.js && codecov"
},

@@ -28,2 +28,3 @@ "repository": {

"devDependencies": {
"coveralls": "^2.11.15",
"grunt": "^1.0.1",

@@ -30,0 +31,0 @@ "grunt-cli": "^1.2.0",

@@ -17,3 +17,2 @@ /**

const should = require('should');
const fs = require('fs');
const Equity = require('.');

@@ -81,3 +80,2 @@

should(cb.expires_in).eql(expiryTime);
fs.writeFile('./.env', 'TOKEN=' + cb.access_token);
return done();

@@ -84,0 +82,0 @@ });

Sorry, the diff of this file is not supported yet

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