@mx51/spi-client-js
Advanced tools
Comparing version 2.4.8 to 2.4.9
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14816
1887263
2