Socket
Socket
Sign inDemoInstall

@ns8/ns8-shopify-switches

Package Overview
Dependencies
Maintainers
75
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ns8/ns8-shopify-switches - npm Package Compare versions

Comparing version 1.0.210 to 1.0.211

6

dist/orderTransformer.js

@@ -198,2 +198,6 @@ "use strict";

exports.getClientDetails = getClientDetails;
const orderIsFree = (order) => {
const totalPrice = parseFloat(order.total_price);
return order.processing_method === 'free' || totalPrice === 0;
};
const shouldOrderBeProcessed = (transaction) => {

@@ -301,3 +305,3 @@ const { kind, payment_details, status, source_name, } = transaction;

const processingMethod = switchContext.data.processing_method;
if (processingMethod === 'manual' || processingMethod === 'free') {
if (processingMethod === 'manual' || orderIsFree(switchContext.data)) {
const msg = 'createNS8OrderFromShopifyOrder:: Received zero-dollar order or order with manual payment.';

@@ -304,0 +308,0 @@ const logData = {

2

package.json
{
"name": "@ns8/ns8-shopify-switches",
"version": "1.0.210",
"version": "1.0.211",
"description": "Custom switches for the shopify integration",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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