Socket
Socket
Sign inDemoInstall

aftership

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aftership - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

6

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

## [8.0.1] 2023-12-19
### Fixed
- updated dependencies version
## [8.0.0] 2023-12-18

@@ -123,2 +127,2 @@ ### Breaking Changes

[6.0.0]: https://github.com/AfterShip/aftership-sdk-nodejs/compare/5.0.0...6.0.0
[5.0.0]: https://github.com/AfterShip/aftership-sdk-nodejs/releases/tag/5.0.0
[5.0.0]: https://github.com/AfterShip/aftership-sdk-nodejs/releases/tag/5.0.0

6

dist/implementation/last_checkpoint.js

@@ -25,6 +25,6 @@ "use strict";

if ((0, util_1.isStringValid)(fields)) {
optionalParams.push("fields=" + fields);
optionalParams.push("fields=".concat(fields));
}
if ((0, util_1.isStringValid)(lang)) {
optionalParams.push("lang=" + lang);
optionalParams.push("lang=".concat(lang));
}

@@ -37,3 +37,3 @@ if (optionalParams.length > 0) {

method: 'GET',
url: "/last_checkpoint/" + trackingUrl,
url: "/last_checkpoint/".concat(trackingUrl),
});

@@ -40,0 +40,0 @@ }

@@ -21,3 +21,3 @@ "use strict";

method: 'GET',
url: "/notifications/" + trackingUrl,
url: "/notifications/".concat(trackingUrl),
});

@@ -38,3 +38,3 @@ }

var trackingUrl = (0, util_1.buildTrackingUrl)(tracking_param, 'add');
return this.request.makeRequest({ method: 'POST', url: "/notifications/" + trackingUrl }, notification);
return this.request.makeRequest({ method: 'POST', url: "/notifications/".concat(trackingUrl) }, notification);
}

@@ -56,3 +56,3 @@ catch (e) {

method: 'POST',
url: "/notifications/" + trackingUrl,
url: "/notifications/".concat(trackingUrl),
}, notification);

@@ -59,0 +59,0 @@ }

@@ -26,3 +26,3 @@ "use strict";

// make request
return this.request.makeRequest({ method: 'DELETE', url: "/trackings/" + trackingUrl });
return this.request.makeRequest({ method: 'DELETE', url: "/trackings/".concat(trackingUrl) });
};

@@ -37,3 +37,3 @@ /**

var queryString = (0, util_1.getQueryString)(trackings_query_params);
var trackingUrl = queryString === '' ? '/trackings' : "/trackings?" + queryString;
var trackingUrl = queryString === '' ? '/trackings' : "/trackings?".concat(queryString);
// make request

@@ -49,3 +49,3 @@ return this.request.makeRequest({ method: 'GET', url: trackingUrl });

TrackingImplementation.prototype.getTracking = function (single_tracking_param, tracking_query_params) {
var trackingUrl = "/trackings/" + (0, util_1.buildTrackingUrl)(single_tracking_param);
var trackingUrl = "/trackings/".concat((0, util_1.buildTrackingUrl)(single_tracking_param));
var queryString = (0, util_1.getQueryString)(tracking_query_params);

@@ -65,3 +65,3 @@ trackingUrl = (0, util_1.combineUrlQuery)(trackingUrl, queryString);

TrackingImplementation.prototype.updateTracking = function (single_tracking_param, data) {
var trackingUrl = "/trackings/" + (0, util_1.buildTrackingUrl)(single_tracking_param);
var trackingUrl = "/trackings/".concat((0, util_1.buildTrackingUrl)(single_tracking_param));
// make request

@@ -75,3 +75,3 @@ return this.request.makeRequest({ method: 'PUT', url: trackingUrl }, data);

TrackingImplementation.prototype.retrack = function (single_tracking_param) {
var trackingUrl = "/trackings/" + (0, util_1.buildTrackingUrl)(single_tracking_param, 'retrack');
var trackingUrl = "/trackings/".concat((0, util_1.buildTrackingUrl)(single_tracking_param, 'retrack'));
// make request

@@ -86,3 +86,3 @@ return this.request.makeRequest({ method: 'POST', url: trackingUrl });

TrackingImplementation.prototype.markAsCompleted = function (single_tracking_param, reason_param) {
var trackingUrl = "/trackings/" + (0, util_1.buildTrackingUrl)(single_tracking_param, 'mark-as-completed');
var trackingUrl = "/trackings/".concat((0, util_1.buildTrackingUrl)(single_tracking_param, 'mark-as-completed'));
if (reason_param === undefined || (reason_param.reason !== 'DELIVERED'

@@ -89,0 +89,0 @@ && reason_param.reason !== 'LOST' && reason_param.reason !== 'RETURNED_TO_SENDER')) {

@@ -53,7 +53,7 @@ "use strict";

'request-id': request_id,
'aftership-agent': "nodejs-sdk-" + version_1.VERSION,
'aftership-agent': "nodejs-sdk-".concat(version_1.VERSION),
};
// Only set User-Agent header in Node
if (typeof window === 'undefined') {
headers['User-Agent'] = this.app.user_agent_prefix + "/" + version_1.VERSION;
headers['User-Agent'] = "".concat(this.app.user_agent_prefix, "/").concat(version_1.VERSION);
}

@@ -60,0 +60,0 @@ var request = axios_1.default.request({

@@ -33,11 +33,11 @@ "use strict";

if (isStringValid(param.id)) {
url = "" + param.id;
url = "".concat(param.id);
}
else {
// slug && tracking_number
url = param.slug + "/" + param.tracking_number;
url = "".concat(param.slug, "/").concat(param.tracking_number);
}
// Add sub path
if (isStringValid(sub_path)) {
url += "/" + sub_path;
url += "/".concat(sub_path);
}

@@ -48,3 +48,3 @@ // Add the additional parameters to query string

if (isStringValid(query_string)) {
url = url + "?" + query_string;
url = "".concat(url, "?").concat(query_string);
}

@@ -73,3 +73,3 @@ }

var val = encodeURIComponent(data[key]);
return key + "=" + val;
return "".concat(key, "=").concat(val);
})

@@ -89,5 +89,5 @@ .join('&');

}
return "" + url + (url.indexOf('?') === 0 ? '?' : '&') + query;
return "".concat(url).concat(url.indexOf('?') === 0 ? '?' : '&').concat(query);
}
exports.combineUrlQuery = combineUrlQuery;
//# sourceMappingURL=util.js.map
{
"name": "aftership",
"description": "node.js SDK for AfterShip API",
"version": "8.0.0",
"version": "8.0.1",
"homepage": "https://github.com/aftership/aftership-sdk-nodejs",

@@ -30,18 +30,18 @@ "author": {

"dependencies": {
"axios": "^1.6.0",
"debug": "^4.3.2",
"axios": "^1.6.2",
"debug": "^4.3.4",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/debug": "^4.1.7",
"@types/node": "^14.14.25",
"@types/uuid": "^8.3.1",
"axios-mock-adapter": "^1.20.0",
"jest": "^29.0.0",
"@types/debug": "^4.1.12",
"@types/node": "^14.18.63",
"@types/uuid": "^8.3.4",
"axios-mock-adapter": "^1.22.0",
"jest": "^29.7.0",
"pre-commit": "^1.2.2",
"shx": "^0.3.3",
"ts-node": "^10.2.1",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"tslint": "^6.1.3",
"tslint-config-airbnb": "^5.11.2",
"typescript": "^4.4.3"
"typescript": "^4.9.5"
},

@@ -48,0 +48,0 @@ "keywords": [

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