New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smartpay/sdk-node

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smartpay/sdk-node - npm Package Compare versions

Comparing version 0.1.8 to 0.2.0

10

build/esm/index.js

@@ -517,7 +517,7 @@ var __defProp = Object.defineProperty;

var getCurrency = (payload) => {
var _a, _b;
var _a2, _b2;
const { orderData } = payload;
let { currency } = orderData;
if (!currency) {
currency = (_b = (_a = orderData.lineItemData[0]) == null ? void 0 : _a.priceData) == null ? void 0 : _b.currency;
currency = (_b2 = (_a2 = orderData.lineItemData[0]) == null ? void 0 : _a2.priceData) == null ? void 0 : _b2.currency;
}

@@ -572,3 +572,4 @@ return currency;

var POST = "POST";
var SMARTPAY_API_PREFIX = process.env.SMARTPAY_API_PREFIX;
var _a, _b;
var SMARTPAY_API_PREFIX = ((_b = (_a = process.env.SMARTPAY_API_PREFIX) == null ? void 0 : _a.toLowerCase()) == null ? void 0 : _b.includes("api.smartpay")) ? process.env.SMARTPAY_API_PREFIX : "";
var Smartpay = class {

@@ -651,6 +652,5 @@ constructor(key, options = {}) {

const normalizedPayload = Smartpay.normalizeCheckoutSessionPayload(payload);
console.log(normalizedPayload);
const params = {
"dev-lang": "nodejs",
"sdk-version": "0.1.7"
"sdk-version": "0.2.0"
};

@@ -657,0 +657,0 @@ const req = this.request(`/checkout-sessions?${qs.stringify(params)}`, {

@@ -7,3 +7,3 @@ {

},
"version": "0.1.8",
"version": "0.2.0",
"description": "Smartpay SDK NodeJS",

@@ -10,0 +10,0 @@ "main": "./build/cjs/index.cjs",

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