@easypost/api
Advanced tools
Comparing version 7.4.0 to 7.5.0
# CHANGELOG | ||
## v7.5.0 (2024-07-24) | ||
- Adds new `Claim` service for filing claims on EasyPost shipments and insurances | ||
## v7.4.0 (2024-07-12) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@easypost/api", | ||
"description": "EasyPost Node Client Library", | ||
"version": "7.4.0", | ||
"version": "7.5.0", | ||
"author": "Easypost Engineering <oss@easypost.com>", | ||
@@ -30,5 +30,5 @@ "homepage": "https://easypost.com", | ||
"prepublishOnly": "npm run clean && npm run build && npm run test && npm run lint && npm run formatCheck", | ||
"repl": "./repl.js --local easypost.js", | ||
"repl": "./repl.js --local ./dist/easypost.js", | ||
"scan": "npx audit-ci -m --config ./audit-ci.jsonc", | ||
"test": "cross-env NODE_ENV=test mocha --timeout 10000 --require @babel/register --require ./test/helpers/common.js --recursive ./test", | ||
"test": "cross-env NODE_ENV=test mocha", | ||
"watch": "webpack --config webpack.config.babel.js --watch" | ||
@@ -69,2 +69,3 @@ }, | ||
"cross-env": "^7.0.3", | ||
"dotenv": "^16.4.5", | ||
"eslint": "^8.40.0", | ||
@@ -71,0 +72,0 @@ "eslint-config-prettier": "^8.8.0", |
@@ -177,4 +177,4 @@ # EasyPost Node Client Library | ||
const logOutgoingRequest = (request) => console.log("Outgoing:", request); | ||
const logResponse = (response) => console.log("Response:", response) | ||
const logOutgoingRequest = (request) => console.log('Outgoing:', request); | ||
const logResponse = (response) => console.log('Response:', response); | ||
@@ -184,3 +184,3 @@ // optionally add your hook to listen for outgoing requests | ||
// and optionally the hook for the response | ||
client.addResponseHook(logResponse) | ||
client.addResponseHook(logResponse); | ||
@@ -187,0 +187,0 @@ // ...do other stuff |
@@ -18,2 +18,3 @@ import os from 'os'; | ||
import CarrierTypeService from './services/carrier_type_service'; | ||
import ClaimService from './services/claim_service'; | ||
import CustomsInfoService from './services/customs_info_service'; | ||
@@ -97,2 +98,3 @@ import CustomsItemService from './services/customs_item_service'; | ||
CarrierType: CarrierTypeService, | ||
Claim: ClaimService, | ||
CustomsInfo: CustomsInfoService, | ||
@@ -244,3 +246,3 @@ CustomsItem: CustomsItemService, | ||
let completePath = this.baseUrl + path; | ||
completePath = path.includes('beta') ? completePath.replace('v2', '') : completePath; | ||
completePath = path.includes('beta') ? completePath.replace('/v2', '') : completePath; | ||
@@ -247,0 +249,0 @@ return completePath; |
@@ -7,2 +7,3 @@ import Address from '../models/address'; | ||
import CarrierType from '../models/carrier_type'; | ||
import Claim from '../models/claim'; | ||
import CustomsInfo from '../models/customs_info'; | ||
@@ -41,2 +42,3 @@ import CustomsItem from '../models/customs_item'; | ||
cfrep: Report, | ||
clm: Claim, | ||
cstinfo: CustomsInfo, | ||
@@ -43,0 +45,0 @@ cstitem: CustomsItem, |
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
852936
229
13098
0
40