@easypost/api
Advanced tools
Comparing version 3.1.0 to 3.2.0
{ | ||
"name": "@easypost/api", | ||
"description": "EasyPost Node Client Library", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"author": "Easypost Engineering <support@easypost.com>", | ||
@@ -28,2 +28,3 @@ "homepage": "https://easypost.com", | ||
"babel-polyfill": "^6.23.0", | ||
"nodent-runtime": "^3.0.4", | ||
"proptypes": "^1.1.0", | ||
@@ -30,0 +31,0 @@ "regenerator-runtime": "^0.11.0", |
@@ -188,2 +188,11 @@ import ValidationError from '../errors/validation'; | ||
async delete() { | ||
if (this.id) { | ||
await this.constructor.delete(this.id); | ||
return this; | ||
} | ||
throw new Error('Cannot delete an object without an id.'); | ||
} | ||
toJSON() { | ||
@@ -190,0 +199,0 @@ const idKeys = this.constructor.jsonIdKeys; |
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
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
610260
2991
7
+ Addednodent-runtime@^3.0.4
+ Addednodent-runtime@3.2.1(transitive)