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

node-radial

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-radial - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

35

lib/risk/assess.js

@@ -394,17 +394,19 @@ /* LIB */

var externalRiskScores = [];
orderOptions.externalRiskResults.forEach(function (external) {
var riskData = {};
if (orderOptions.externalRiskResults) {
orderOptions.externalRiskResults.forEach(function (external) {
var riskData = {};
if (external.score) riskData.Score = {
_text: external.score.toString()
};
if (external.code) riskData.Code = {
_text: external.code
};
if (external.source) riskData.Source = {
_text: external.source
};
if (external.score) riskData.Score = {
_text: external.score.toString()
};
if (external.code) riskData.Code = {
_text: external.code
};
if (external.source) riskData.Source = {
_text: external.source
};
externalRiskScores.push(riskData);
});
externalRiskScores.push(riskData);
});
}

@@ -598,3 +600,4 @@ if (externalRiskScores.length) requestOrder.ExternalRiskResults.ExternalRiskResult =

},
_text: orderOptions.payment.amount.toFixed(2)
_text: orderOptions.payment.amount ? orderOptions.payment.amount.toFixed(2) : orderOptions.payment.amountAfterTax
.toFixed(2)
};

@@ -648,7 +651,7 @@

assessmentRequest.ServerInfo.TZOffset = {
_text: serverInfoOptions.tzOffset
_text: serverInfoOptions.tzOffset.toString()
};
if (serverInfoOptions.tzOffsetRaw) {
assessmentRequest.ServerInfo.TZOffsetRaw = {
_text: serverInfoOptions.tzOffsetRaw
_text: serverInfoOptions.tzOffsetRaw.toString()
};

@@ -655,0 +658,0 @@ }

{
"name": "node-radial",
"version": "0.2.1",
"version": "0.2.2",
"description": "NodeJS SDK for the Radial APIs",

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

@@ -455,2 +455,3 @@ [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url]

- **0.2.2:** Fixes to risk assessment handling of external risk results, payment amount, and server timezone offset.
- **0.2.1:** Fixes to risk assessment XML request and API response.

@@ -457,0 +458,0 @@ - **0.2.0:** Allows you to set up multiple stores in configuration.

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