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

ts-shipment-tracking

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-shipment-tracking - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

4

dist/couriers/fedex.d.ts

@@ -8,4 +8,4 @@ import { TrackingInfo } from '../util/types';

}
declare const track: (trackingNumber: string, credentials: Credentials) => Promise<TrackingInfo | Error>;
export default track;
export declare const trackFedex: (trackingNumber: string, credentials: Credentials) => Promise<TrackingInfo | Error>;
export {};
//# sourceMappingURL=fedex.d.ts.map

@@ -25,2 +25,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.trackFedex = void 0;
const codes = __importStar(require("../util/codes.json"));

@@ -87,3 +88,3 @@ const got_1 = __importDefault(require("got"));

</soapenv:Envelope>`;
const track = (trackingNumber, credentials) => got_1.default('https://ws.fedex.com:443/web-services', {
const trackFedex = (trackingNumber, credentials) => got_1.default('https://ws.fedex.com:443/web-services', {
method: 'POST',

@@ -95,3 +96,3 @@ headers: {

}).then(parse);
exports.default = track;
exports.trackFedex = trackFedex;
//# sourceMappingURL=fedex.js.map

@@ -5,4 +5,4 @@ import { TrackingInfo } from '../util/types';

}
declare const track: (trackingNumber: string, { accessLicenseNumber }: Credentials) => Promise<TrackingInfo | Error>;
export default track;
export declare const trackUps: (trackingNumber: string, { accessLicenseNumber }: Credentials) => Promise<TrackingInfo | Error>;
export {};
//# sourceMappingURL=ups.d.ts.map

@@ -25,2 +25,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.trackUps = void 0;
const codes = __importStar(require("../util/codes.json"));

@@ -66,3 +67,3 @@ const got_1 = __importDefault(require("got"));

]));
const track = (trackingNumber, { accessLicenseNumber }) => got_1.default('https://onlinetools.ups.com/track/v1/details/' + trackingNumber, {
const trackUps = (trackingNumber, { accessLicenseNumber }) => got_1.default('https://onlinetools.ups.com/track/v1/details/' + trackingNumber, {
headers: {

@@ -73,3 +74,3 @@ AccessLicenseNumber: accessLicenseNumber,

}).then(parse);
exports.default = track;
exports.trackUps = trackUps;
//# sourceMappingURL=ups.js.map

@@ -5,4 +5,4 @@ import { TrackingInfo } from '../util/types';

}
declare const track: (trackingNumber: string, { userId }: Credentials) => Promise<TrackingInfo | Error>;
export default track;
export declare const trackUsps: (trackingNumber: string, { userId }: Credentials) => Promise<TrackingInfo | Error>;
export {};
//# sourceMappingURL=usps.d.ts.map

@@ -25,2 +25,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.trackUsps = void 0;
const codes = __importStar(require("../util/codes.json"));

@@ -61,5 +62,5 @@ const got_1 = __importDefault(require("got"));

</TrackFieldRequest>`;
const track = (trackingNumber, { userId }) => got_1.default('http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=' +
const trackUsps = (trackingNumber, { userId }) => got_1.default('http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=' +
createRequestXml(trackingNumber, userId)).then(parse);
exports.default = track;
exports.trackUsps = trackUsps;
//# sourceMappingURL=usps.js.map

@@ -1,4 +0,4 @@

export { default as trackFedex } from './couriers/fedex';
export { default as trackUps } from './couriers/ups';
export { default as trackUsps } from './couriers/usps';
export { trackFedex } from './couriers/fedex';
export { trackUps } from './couriers/ups';
export { trackUsps } from './couriers/usps';
//# sourceMappingURL=index.d.ts.map
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.trackUsps = exports.trackUps = exports.trackFedex = void 0;
var fedex_1 = require("./couriers/fedex");
Object.defineProperty(exports, "trackFedex", { enumerable: true, get: function () { return __importDefault(fedex_1).default; } });
Object.defineProperty(exports, "trackFedex", { enumerable: true, get: function () { return fedex_1.trackFedex; } });
var ups_1 = require("./couriers/ups");
Object.defineProperty(exports, "trackUps", { enumerable: true, get: function () { return __importDefault(ups_1).default; } });
Object.defineProperty(exports, "trackUps", { enumerable: true, get: function () { return ups_1.trackUps; } });
var usps_1 = require("./couriers/usps");
Object.defineProperty(exports, "trackUsps", { enumerable: true, get: function () { return __importDefault(usps_1).default; } });
Object.defineProperty(exports, "trackUsps", { enumerable: true, get: function () { return usps_1.trackUsps; } });
//# sourceMappingURL=index.js.map
{
"name": "ts-shipment-tracking",
"version": "1.1.11",
"version": "1.1.12",
"description": "Unified shipment tracking data from FedEx, UPS, and USPS APIs.",

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

@@ -125,3 +125,6 @@ import * as codes from '../util/codes.json';

const track = (trackingNumber: string, credentials: Credentials): Promise<TrackingInfo | Error> =>
export const trackFedex = (
trackingNumber: string,
credentials: Credentials
): Promise<TrackingInfo | Error> =>
got('https://ws.fedex.com:443/web-services', {

@@ -134,3 +137,1 @@ method: 'POST',

}).then(parse);
export default track;

@@ -116,3 +116,3 @@ import * as codes from '../util/codes.json';

const track = (
export const trackUps = (
trackingNumber: string,

@@ -126,4 +126,2 @@ { accessLicenseNumber }: Credentials

}
}).then(parse);
export default track;
}).then(parse);

@@ -103,3 +103,3 @@ import * as codes from '../util/codes.json';

const track = (trackingNumber: string, { userId }: Credentials): Promise<TrackingInfo | Error> =>
export const trackUsps = (trackingNumber: string, { userId }: Credentials): Promise<TrackingInfo | Error> =>
got(

@@ -109,3 +109,1 @@ 'http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=' +

).then(parse);
export default track;

@@ -1,3 +0,3 @@

export { default as trackFedex } from './couriers/fedex';
export { default as trackUps } from './couriers/ups';
export { default as trackUsps } from './couriers/usps';
export { trackFedex } from './couriers/fedex';
export { trackUps } from './couriers/ups';
export { trackUsps } from './couriers/usps';

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 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