Socket
Socket
Sign inDemoInstall

shipit

Package Overview
Dependencies
9
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.16 to 0.2.0

13

lib/guessCarrier.js
(function() {
var CARRIERS, upperCase, _checkDigit, _confirmFedex12, _confirmFedex15, _confirmFedex20, _confirmFedexDoorTag, _confirmUps, _confirmUsps22, _confirmUsps26, _confirmUsps420Zip, _confirmUsps420ZipPlus4, _preprocess;
var CARRIERS, upperCase, _checkDigit, _confirmFedex12, _confirmFedex15, _confirmFedex20, _confirmFedex9622, _confirmFedexDoorTag, _confirmUps, _confirmUsps22, _confirmUsps26, _confirmUsps420Zip, _confirmUsps420ZipPlus4, _preprocess;

@@ -83,2 +83,9 @@ upperCase = require('change-case').upperCase;

_confirmFedex9622 = function(trk) {
if (_checkDigit(trk, [3, 1, 7], 11)) {
return [true, false];
}
return [false, false];
};
_confirmUsps22 = function(trk) {

@@ -143,2 +150,6 @@ if (_checkDigit(trk, [3, 1], 10)) {

}, {
name: 'fedex',
regex: /^96\d{20}$/,
confirm: _confirmFedex9622
}, {
name: 'usps',

@@ -145,0 +156,0 @@ regex: /^927489\d{16}$/

2

package.json
{
"name": "shipit",
"version": "0.1.16",
"version": "0.2.0",
"description": "This module allows you to connect to many shipping carriers like UPS and FedEx and download tracking data for your packages in a common schema",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc