ts-shipment-tracking
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -1,3 +0,4 @@ | ||
export { default as trackFedex } from './provider/FedexProvider'; | ||
export { default as trackUps } from './provider/UpsProvider'; | ||
export { default as trackUsps } from './provider/UspsProvider'; | ||
export { default as trackFedex } from './couriers/fedex'; | ||
export { default as trackUps } from './couriers/ups'; | ||
export { default as 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 }); | ||
var FedexProvider_1 = require("./provider/FedexProvider"); | ||
Object.defineProperty(exports, "trackFedex", { enumerable: true, get: function () { return FedexProvider_1.default; } }); | ||
var UpsProvider_1 = require("./provider/UpsProvider"); | ||
Object.defineProperty(exports, "trackUps", { enumerable: true, get: function () { return UpsProvider_1.default; } }); | ||
var UspsProvider_1 = require("./provider/UspsProvider"); | ||
Object.defineProperty(exports, "trackUsps", { enumerable: true, get: function () { return UspsProvider_1.default; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDBEQUFpRTtBQUF4RCwyR0FBQSxPQUFPLE9BQWM7QUFDOUIsc0RBQTZEO0FBQXBELHVHQUFBLE9BQU8sT0FBWTtBQUM1Qix3REFBK0Q7QUFBdEQseUdBQUEsT0FBTyxPQUFhIn0= | ||
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; } }); | ||
var ups_1 = require("./couriers/ups"); | ||
Object.defineProperty(exports, "trackUps", { enumerable: true, get: function () { return __importDefault(ups_1).default; } }); | ||
var usps_1 = require("./couriers/usps"); | ||
Object.defineProperty(exports, "trackUsps", { enumerable: true, get: function () { return __importDefault(usps_1).default; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "ts-shipment-tracking", | ||
"version": "1.0.1", | ||
"description": "Unified shipment tracking data from FedEx, UPS, and USPS APIs.", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "tsc && node ./dist/test.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/anatelli10/ts-shipment-tracking" | ||
}, | ||
"keywords": [ | ||
"Tracking", | ||
"Fedex", | ||
"UPS", | ||
"USPS", | ||
"TypeScript", | ||
"NodeJS" | ||
], | ||
"author": "Anthony Natelli", | ||
"license": "MIT", | ||
"dependencies": { | ||
"date-fns": "^2.22.1", | ||
"fast-xml-parser": "^3.19.0", | ||
"got": "^11.8.2", | ||
"ts-tracking-number": "^1.0.12" | ||
}, | ||
"devDependencies": { | ||
"source-map-support": "^0.5.19", | ||
"typescript": "^3.9.9" | ||
} | ||
"name": "ts-shipment-tracking", | ||
"version": "1.1.0", | ||
"description": "Unified shipment tracking data from FedEx, UPS, and USPS APIs.", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"build": "rm -rf ./dist && tsc", | ||
"test": "npm run build && node ./dist/test.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/anatelli10/ts-shipment-tracking" | ||
}, | ||
"keywords": [ | ||
"Tracking", | ||
"Fedex", | ||
"UPS", | ||
"USPS", | ||
"TypeScript", | ||
"NodeJS" | ||
], | ||
"author": "Anthony Natelli", | ||
"license": "MIT", | ||
"dependencies": { | ||
"date-fns": "^2.22.1", | ||
"fast-xml-parser": "^3.19.0", | ||
"got": "^11.8.2", | ||
"ramda": "^0.27.1", | ||
"typescript": "^4.3.5" | ||
}, | ||
"devDependencies": { | ||
"@types/ramda": "^0.27.44", | ||
"prettier": "^2.3.2", | ||
"source-map-support": "^0.5.19", | ||
"ts-node": "^10.2.1" | ||
} | ||
} |
@@ -22,3 +22,3 @@ <p align="center"> | ||
Returns a unified TrackingInfo object for FedEx, UPS, and USPS tracking APIs. The structure is heavily inspired by the PHP tracking repo [Shipment Tracking](https://github.com/hautelook/shipment-tracking). | ||
Returns a unified response from FedEx, UPS, and USPS tracking APIs. | ||
@@ -28,3 +28,3 @@ ## Installation | ||
```sh | ||
$ npm install delivery-tracker | ||
$ npm install ts-shipment-tracking | ||
``` | ||
@@ -37,3 +37,3 @@ | ||
```typescript | ||
import { trackFedex, trackUps, trackUsps } from '.'; | ||
import { trackFedex, trackUps, trackUsps } from 'ts-shipment-tracking'; | ||
@@ -85,10 +85,10 @@ (async (): Promise<void> => { | ||
``` | ||
'UNAVAILABLE' | ||
'LABEL_CREATED' | ||
'IN_TRANSIT' | ||
'OUT_FOR_DELIVERY' | ||
'DELIVERY_ATTEMPTED' | ||
'RETURNED_TO_SENDER' | ||
'EXCEPTION' | ||
'DELIVERED' | ||
'UNAVAILABLE' | ||
'LABEL_CREATED' | ||
'IN_TRANSIT' | ||
'OUT_FOR_DELIVERY' | ||
'DELIVERY_ATTEMPTED' | ||
'RETURNED_TO_SENDER' | ||
'EXCEPTION' | ||
'DELIVERED' | ||
``` | ||
@@ -99,2 +99,3 @@ | ||
- [TypeScript](https://www.typescriptlang.org/) | ||
- [Ramda](https://ramdajs.com/) | ||
- [Node.js](https://nodejs.org/) | ||
@@ -101,0 +102,0 @@ |
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es2016", | ||
"module": "commonjs", | ||
"outDir": "./dist", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"inlineSourceMap": true, | ||
"resolveJsonModule": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"lib": ["es2019"] | ||
}, | ||
"exclude": ["node_modules", ".npm"] | ||
"compilerOptions": { | ||
"target": "es2018", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"declarationMap": true, | ||
"sourceMap": true, | ||
"esModuleInterop": true, | ||
"outDir": "./dist", | ||
"rootDir": "./src", | ||
"strict": true, | ||
"strictNullChecks": true, | ||
"skipLibCheck": true, | ||
"resolveJsonModule": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"lib": ["es2019", "dom"] | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
42
951
104
46553
5
4
+ Addedramda@^0.27.1
+ Addedtypescript@^4.3.5
+ Addedtypescript@4.9.5(transitive)
- Removedts-tracking-number@^1.0.12
- Removedts-tracking-number@1.0.17(transitive)