Socket
Socket
Sign inDemoInstall

israel-postal-service-api

Package Overview
Dependencies
55
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-beta.6 to 3.0.0-beta.7

14

dist/index.d.ts

@@ -91,3 +91,17 @@ import { OptionsType } from './types/options';

getAllDestinations(shipmentType: string): Array<string>;
/**
* verify if the shipment is eligible for economic shipment
* @param {string} shipmentType type of shipment as defined in the {@class Options} class
* @param {string} destination destination country name (in CamelCase English)
* @returns {boolean} true, if the shipment is eligible for economic shipment, otherwise, false
*/
isEligibleForExpressShipment(shipmentType: string, destination: string): boolean;
/**
* verify if the shipment is eligible for economic shipment
* @param {string} shipmentType type of shipment as defined in the {@class Options} class
* @param {string} destination destination country name (in CamelCase English)
* @returns {boolean} true, if the shipment is eligible for economic shipment, otherwise, false
*/
isEligibleForEconomicShipment(shipmentType: string, destination: string): boolean;
private isLocalShipment;
}

@@ -138,2 +138,26 @@ "use strict";

}
/**
* verify if the shipment is eligible for economic shipment
* @param {string} shipmentType type of shipment as defined in the {@class Options} class
* @param {string} destination destination country name (in CamelCase English)
* @returns {boolean} true, if the shipment is eligible for economic shipment, otherwise, false
*/
isEligibleForExpressShipment(shipmentType, destination) {
const abroadOptions = exports.Options.AbroadMailOptions;
this.destinations._verifyDestinationMapLoaded(abroadOptions.EMS.shipmentType);
return (shipmentType == abroadOptions.EMS.shipmentType || shipmentType == abroadOptions.PARCEL.shipmentType)
&& this.destinations.emsDestinationMap.has(destination);
}
/**
* verify if the shipment is eligible for economic shipment
* @param {string} shipmentType type of shipment as defined in the {@class Options} class
* @param {string} destination destination country name (in CamelCase English)
* @returns {boolean} true, if the shipment is eligible for economic shipment, otherwise, false
*/
isEligibleForEconomicShipment(shipmentType, destination) {
const abroadOptions = exports.Options.AbroadMailOptions;
this.destinations._verifyDestinationMapLoaded(abroadOptions.ECO.shipmentType);
return (shipmentType == abroadOptions.ECO.shipmentType || shipmentType == abroadOptions.PARCEL.shipmentType)
&& this.destinations.economicDestinationMap.has(destination);
}
isLocalShipment(destination) {

@@ -140,0 +164,0 @@ return destination.toLowerCase() === 'israel';

2

package.json
{
"name": "israel-postal-service-api",
"version": "3.0.0-beta.6",
"version": "3.0.0-beta.7",
"description": "Israel postal office pricing calculator",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc