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

@ns8/ns8-shopify-switches

Package Overview
Dependencies
Maintainers
14
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.165 to 1.0.166

8

dist/ShopifyCreateOrderActionSwitch.js

@@ -5,7 +5,7 @@ "use strict";

const getShopifyClient_1 = require("./getShopifyClient");
const mapCustomer = (customer) => {
const { id, first_name = '', last_name = '', email = 'apps@ns8.com', phone, total_spent, created_at, default_address, } = customer;
const mapCustomer = (customer, billingAddress) => {
const { id, first_name = '', last_name = '', email, total_spent, created_at, default_address, } = customer;
return new ns8_protect_models_1.Customer({
email,
phone,
phone: customer.phone || billingAddress.phone,
platformId: id.toString(),

@@ -225,3 +225,3 @@ firstName: first_name || default_address.first_name,

if (customer) {
protectCustomer = mapCustomer(customer);
protectCustomer = mapCustomer(customer, billing_address);
}

@@ -228,0 +228,0 @@ return new ns8_protect_models_1.Order({

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