
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@myorb/dhl-express
Advanced tools
This is TypeScript/JavaScript client that utilizes axios.
Exampel usage:
import type {
SupermodelIoLogisticsExpressAddressCreateShipmentRequest,
SupermodelIoLogisticsExpressContact,
SupermodelIoLogisticsExpressCreateShipmentRequest,
SupermodelIoLogisticsExpressCreateShipmentResponse,
} from '@myorb/dhl-express';
import {
ShipmentApi,
SupermodelIoLogisticsExpressCreateShipmentRequestContentIncotermEnum,
SupermodelIoLogisticsExpressCreateShipmentRequestContentUnitOfMeasurementEnum,
} from '@myorb/dhl-express';
export class DHLService {
static async createShipping(req: SomeInput): Promise<SupermodelIoLogisticsExpressCreateShipmentResponse> {
const config = {
basePath?: string;
username?: string;
password?: string;
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
};
const dhlApi = new ShipmentApi(config);
const body: SupermodelIoLogisticsExpressCreateShipmentRequest = {
plannedShippingDateAndTime: '',
pickup: {
isRequested: true,
},
productCode: '',
accounts: [],
customerDetails: {
shipperDetails: {
postalAddress: {
postalCode: '8888',
cityName: 'Berlin',
countryCode: 'DE',
provinceCode: '',
addressLine1: 'Alexander Platz 1',
addressLine2: '',
addressLine3: '',
provinceName: '',
countryName: 'Germany',
},
contactInformation: {
phone: '0123456789',
companyName: 'MyOrb',
fullName: 'MyOrb',
},
},
receiverDetails: {
postalAddress: {
postalCode: '8888',
cityName: 'Munchen',
countryCode: 'DE',
provinceCode: '',
addressLine1: 'Marienplatz 1',
addressLine2: '',
addressLine3: '',
provinceName: '',
countryName: 'Germany',
},
contactInformation: {
phone: '0123456789',
companyName: 'MyOrb',
fullName: 'MyOrb',
},
},
},
content: {
isCustomsDeclarable: false,
description: 'DOCUMENTS',
packages: [
{
weight: 0.3,
dimensions: {
length: 32,
width: 23.8,
height: 1,
},
},
],
incoterm: SupermodelIoLogisticsExpressCreateShipmentRequestContentIncotermEnum.DAP,
unitOfMeasurement: SupermodelIoLogisticsExpressCreateShipmentRequestContentUnitOfMeasurementEnum.Metric,
},
};
const shipment = await dhlApi.expApiShipments(body);
return shipment.data;
}
}
Name | Type | Default | Description |
---|---|---|---|
basePath | str | https://express.api.dhl.com/mydhlapi/ | The base URL that is going to be used for DHL API connections. |
username | str | None | The DHL API username to be used for authentication |
password | str | None | The DHL API password to be used for authentication |
apiKey | str | None | Can be used for authentication |
accessToken | str | None | Can be used for authentication |
DHL API for Javascript is currently licensed under the Apache License, Version 2.0.
FAQs
DHL Express api client
The npm package @myorb/dhl-express receives a total of 4 weekly downloads. As such, @myorb/dhl-express popularity was classified as not popular.
We found that @myorb/dhl-express demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.