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

@vtex/delivery-packages

Package Overview
Dependencies
Maintainers
33
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/delivery-packages - npm Package Compare versions

Comparing version 2.14.0 to 2.14.1

CHANGELOG.md

25

dist/address.esm.js

@@ -67,2 +67,12 @@ var PICKUP = 'pickup';

function isCurrentAddressType(address, addressType) {
if (address && !address.addressType) {
return false;
}
if (address && typeof address.addressType === 'string') {
return address.addressType === addressType;
}
return address && address.addressType.value === addressType;
}
/** PUBLIC **/

@@ -81,15 +91,16 @@

function isGiftRegistry(address) {
return isCurrentAddressType(address, GIFT_REGISTRY);
}
function isPickupAddress(address) {
return address && address.addressType === PICKUP;
return isCurrentAddressType(address, PICKUP);
}
function isSearchAddress(address) {
return address && address.addressType === SEARCH;
return isCurrentAddressType(address, SEARCH);
}
function isDeliveryAddress(address) {
if (!address || !address.addressType) {
return false;
}
return address.addressType === RESIDENTIAL || address.addressType === COMMERCIAL || address.addressType === GIFT_REGISTRY;
return isCurrentAddressType(address, RESIDENTIAL) || isCurrentAddressType(address, COMMERCIAL) || isCurrentAddressType(address, GIFT_REGISTRY);
}

@@ -218,3 +229,3 @@

export { getFirstAddressForType, getFirstAddressOnAnyOfTheseTypes, getFirstAddressForDelivery, getPickupAddress, isAddressComplete, isPickupAddress, isSearchAddress, isDeliveryAddress, addAddressId, findAddressIndex, findAddress, findAddressByPostalCode, getDeliveryAvailableAddresses, groupByAddressType, addOrReplaceAddressTypeOnList, addOrReplaceAddressOnList, addPickupPointAddresses };
export { getFirstAddressForType, getFirstAddressOnAnyOfTheseTypes, getFirstAddressForDelivery, getPickupAddress, isCurrentAddressType, isAddressComplete, isGiftRegistry, isPickupAddress, isSearchAddress, isDeliveryAddress, addAddressId, findAddressIndex, findAddress, findAddressByPostalCode, getDeliveryAvailableAddresses, groupByAddressType, addOrReplaceAddressTypeOnList, addOrReplaceAddressOnList, addPickupPointAddresses };
//# sourceMappingURL=address.esm.js.map

@@ -71,2 +71,12 @@ 'use strict';

function isCurrentAddressType(address, addressType) {
if (address && !address.addressType) {
return false;
}
if (address && typeof address.addressType === 'string') {
return address.addressType === addressType;
}
return address && address.addressType.value === addressType;
}
/** PUBLIC **/

@@ -85,15 +95,16 @@

function isGiftRegistry(address) {
return isCurrentAddressType(address, GIFT_REGISTRY);
}
function isPickupAddress(address) {
return address && address.addressType === PICKUP;
return isCurrentAddressType(address, PICKUP);
}
function isSearchAddress(address) {
return address && address.addressType === SEARCH;
return isCurrentAddressType(address, SEARCH);
}
function isDeliveryAddress(address) {
if (!address || !address.addressType) {
return false;
}
return address.addressType === RESIDENTIAL || address.addressType === COMMERCIAL || address.addressType === GIFT_REGISTRY;
return isCurrentAddressType(address, RESIDENTIAL) || isCurrentAddressType(address, COMMERCIAL) || isCurrentAddressType(address, GIFT_REGISTRY);
}

@@ -226,3 +237,5 @@

exports.getPickupAddress = getPickupAddress;
exports.isCurrentAddressType = isCurrentAddressType;
exports.isAddressComplete = isAddressComplete;
exports.isGiftRegistry = isGiftRegistry;
exports.isPickupAddress = isPickupAddress;

@@ -229,0 +242,0 @@ exports.isSearchAddress = isSearchAddress;

{
"name": "@vtex/delivery-packages",
"version": "2.14.0",
"version": "2.14.1",
"description": "",

@@ -56,2 +56,3 @@ "main": "dist/index.js",

"jest": "^22.3.0",
"merge": ">=1.2.1",
"rollup": "^0.56.2",

@@ -58,0 +59,0 @@ "rollup-plugin-babel": "^3.0.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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