Socket
Socket
Sign inDemoInstall

@idigi/reaction-plugin-shipments-flat-rate

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idigi/reaction-plugin-shipments-flat-rate - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

2

package.json
{
"name": "@idigi/reaction-plugin-shipments-flat-rate",
"description": "Flat Rate Shipments plugin for the Reaction API",
"version": "1.0.19",
"version": "1.0.20",
"main": "index.js",

@@ -6,0 +6,0 @@ "type": "module",

@@ -24,3 +24,2 @@ import { attributeDenyCheck } from "./attributeDenyCheck.js";

const { FlatRateFulfillmentRestrictions } = context.collections;
if (!hydratedOrder.shippingAddress) return [];
///|\\\|///|\\\|///|\\\

@@ -81,3 +80,7 @@ /// args: Geo

///|\\\|///|\\\|///|\\\
if (method.destinations && method.destinations.length) {
if (
hydratedOrder.shippingAddress &&
method.destinations &&
method.destinations.length
) {
///|\\\|///|\\\|///|\\\

@@ -231,4 +234,26 @@ /// Geo

///|\\\|///|\\\|///|\\\
/// Pickup || Digital
///|\\\|///|\\\|///|\\\
if (
hydratedOrder.fulfillmentType !== "shipping" &&
!allValidShippingMethods.length
) {
allValidShippingMethods.push({
_id: "default",
cost: 0,
fulfillmentTypes: hydratedOrder.fulfillmentType,
group: "free",
isEnabled: true,
label: "default",
name: "default",
rate: 0,
shippingPrice: 0,
handling: 0,
destination: {},
});
}
// Return all valid shipping rates
return allValidShippingMethods;
}
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