Socket
Socket
Sign inDemoInstall

@ns8/ns8-shopify-switches

Package Overview
Dependencies
Maintainers
10
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.73 to 1.0.74

18

dist/ShopifyCreateOrderActionSwitch.js

@@ -90,2 +90,13 @@ "use strict";

const { id, name, currency, billing_address, shipping_address, customer, total_price, line_items = [], created_at, client_details: { accept_language, browser_ip, user_agent, }, } = shopifyOrder;
const addresses = [];
if (billing_address) {
addresses.push(mapAddress(billing_address, 'BILLING'));
}
if (shipping_address) {
addresses.push(mapAddress(shipping_address, 'SHIPPING'));
}
let protectCustomer;
if (customer) {
protectCustomer = mapCustomer(customer);
}
return new ns8_protect_models_1.Order({

@@ -95,8 +106,5 @@ name,

shopId,
addresses,
platformId: id.toString(),
addresses: [
mapAddress(billing_address, 'BILLING'),
mapAddress(shipping_address, 'SHIPPING'),
],
customer: mapCustomer(customer),
customer: protectCustomer,
platformCreatedAt: new Date(created_at),

@@ -103,0 +111,0 @@ totalPrice: parseFloat(total_price),

{
"name": "@ns8/ns8-shopify-switches",
"version": "1.0.73",
"version": "1.0.74",
"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