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

@mx51/spi-client-js

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mx51/spi-client-js - npm Package Compare versions

Comparing version 2.4.8 to 2.4.9

6

package.json
{
"name": "@mx51/spi-client-js",
"version": "2.4.8",
"description": "JavaScript Client Library for Assembly Payments' In-Store Integration.",
"version": "2.4.9",
"description": "JavaScript Client Library for mx51' In-Store Integration.",
"main": "dist/spi-client-js.js",

@@ -17,3 +17,3 @@ "scripts": {

},
"author": "Assembly Payments",
"author": "mx51",
"license": "Apache-2.0",

@@ -20,0 +20,0 @@ "homepage": "https://github.com/mx51/spi-client-js",

@@ -40,7 +40,8 @@ export class DeviceAddressStatus

// RetrieveService(serialNumber, apiKey = 'spi-sample-pos1', acquirerCode, useSecureWebSockets, isTestMode)
RetrieveService(serialNumber, apiKey = 'spi-sample-pos1', acquirerCode, isSecureConnection, isTestMode)
RetrieveService(serialNumber, apiKey = 'spi-sample-pos1', acquirerCode, isSecureConnection, isTestMode, log)
{
var path = isSecureConnection ? 'fqdn' : 'ip';
var deviceAddressUri = isTestMode ? `https://device-address-api-sb.${acquirerCode}.msp.assemblypayments.com/v1/${serialNumber}/${path}` : `https://device-address-api.${acquirerCode}.msp.assemblypayments.com/v1/${serialNumber}/${path}`;
var deviceAddressUri = isTestMode ? `https://device-address-api-sb.${acquirerCode}.mspenv.io/v1/${serialNumber}/${path}` : `https://device-address-api.${acquirerCode}.mspenv.io/v1/${serialNumber}/${path}`;
log.info('device address uri', deviceAddressUri)
return fetch(deviceAddressUri, {

@@ -54,5 +55,5 @@ method: 'GET',

.catch((response) => {
console.error(`Status code ${response.StatusCode} received from ${deviceAddressUri} - Exception ${response.error}`);
log.error(`Status code ${response.StatusCode} received from ${deviceAddressUri} - Exception ${response.error}`);
})
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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