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

@vtex/delivery-packages

Package Overview
Dependencies
Maintainers
34
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.16.1 to 2.16.2-beta

4

CHANGELOG.md

@@ -10,2 +10,4 @@ # Changelog

## [2.16.2-beta] - 2018-12-11
## [2.16.1] - 2018-12-07

@@ -16,3 +18,3 @@

## Fixed
- getSlaType for old checkIn
- `getSlaType` for old checkIn

@@ -19,0 +21,0 @@ ## Added

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

function equalsAddressType(addressType1, addressType2) {
return addressType1.trim().toLocaleLowerCase() === addressType2.trim().toLocaleLowerCase();
}
function isCurrentAddressType(address, addressType) {

@@ -73,5 +77,5 @@ if (address && !address.addressType) {

if (address && typeof address.addressType === 'string') {
return address.addressType === addressType;
return equalsAddressType(address.addressType, addressType);
}
return address && address.addressType.value === addressType;
return address && equalsAddressType(address.addressType.value, addressType);
}

@@ -162,7 +166,8 @@

if (address && address.addressType) {
var addressType = address.addressType.trim().toLocaleLowerCase();
address.index = index;
if (!groups[address.addressType]) {
groups[address.addressType] = [];
if (!groups[addressType]) {
groups[addressType] = [];
}
groups[address.addressType].push(address);
groups[addressType].push(address);
}

@@ -230,3 +235,3 @@ return groups;

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

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

function equalsAddressType(addressType1, addressType2) {
return addressType1.trim().toLocaleLowerCase() === addressType2.trim().toLocaleLowerCase();
}
function isCurrentAddressType(address, addressType) {

@@ -77,5 +81,5 @@ if (address && !address.addressType) {

if (address && typeof address.addressType === 'string') {
return address.addressType === addressType;
return equalsAddressType(address.addressType, addressType);
}
return address && address.addressType.value === addressType;
return address && equalsAddressType(address.addressType.value, addressType);
}

@@ -166,7 +170,8 @@

if (address && address.addressType) {
var addressType = address.addressType.trim().toLocaleLowerCase();
address.index = index;
if (!groups[address.addressType]) {
groups[address.addressType] = [];
if (!groups[addressType]) {
groups[addressType] = [];
}
groups[address.addressType].push(address);
groups[addressType].push(address);
}

@@ -238,2 +243,3 @@ return groups;

exports.getPickupAddress = getPickupAddress;
exports.equalsAddressType = equalsAddressType;
exports.isCurrentAddressType = isCurrentAddressType;

@@ -240,0 +246,0 @@ exports.isAddressComplete = isAddressComplete;

@@ -136,7 +136,8 @@ if (!Array.prototype.findIndex) {

if (address && address.addressType) {
var addressType = address.addressType.trim().toLocaleLowerCase();
address.index = index;
if (!groups[address.addressType]) {
groups[address.addressType] = [];
if (!groups[addressType]) {
groups[addressType] = [];
}
groups[address.addressType].push(address);
groups[addressType].push(address);
}

@@ -143,0 +144,0 @@ return groups;

@@ -140,7 +140,8 @@ 'use strict';

if (address && address.addressType) {
var addressType = address.addressType.trim().toLocaleLowerCase();
address.index = index;
if (!groups[address.addressType]) {
groups[address.addressType] = [];
if (!groups[addressType]) {
groups[addressType] = [];
}
groups[address.addressType].push(address);
groups[addressType].push(address);
}

@@ -147,0 +148,0 @@ return groups;

{
"name": "@vtex/delivery-packages",
"version": "2.16.1",
"version": "2.16.2-beta",
"description": "",

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

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

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