Skip to content

Commit

Permalink
version: 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-conde committed Nov 9, 2023
1 parent 4730d32 commit 66f592b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

*

## [1.0.1] - 2023-11-09

### Added

* `getTrackingUrl` for tracking API - [#36](https://github.com/ripe-tech/ups-api-js/issues/36)

## [1.0.0] - 2023-11-09

### Changed
Expand Down
11 changes: 11 additions & 0 deletions js/tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,15 @@ export const TrackingAPI = superclass =>
const response = await this.get(url, options);
return response;
}

/**
* Gets the tracking URL given a tracking number.
*
* @param {String} trackingNumber The tracking number of the shipment/waybill.
* @returns {String} The tracking URL.
* @see https://www.ups.com/upsdeveloperkit?loc=en_US
*/
getTrackingUrl(trackingNumber) {
return `https://www.ups.com/track?InquiryNumber1=${trackingNumber}`;
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ups-api",
"version": "1.0.0",
"version": "1.0.1",
"description": "The RIPE UPS API client",
"keywords": [
"api",
Expand Down

0 comments on commit 66f592b

Please sign in to comment.