@shipengine/js-api
Advanced tools
@@ -23,2 +23,10 @@ import { AbbreviatedCreditCardInfo, BankAccountInfo } from "../payments"; | ||
| /** @internal */ | ||
| type PaymentMethodWithId = { | ||
| paymentMethodId: string; | ||
| }; | ||
| /** @internal */ | ||
| type PaymentMethodWithSession = { | ||
| sessionId: string; | ||
| }; | ||
| /** @internal */ | ||
| export type UpsertAccountBillingRequestBody = { | ||
@@ -32,5 +40,9 @@ addressLine1: string; | ||
| fullName: string; | ||
| paymentMethod: { | ||
| sessionId: string; | ||
| }; | ||
| /** | ||
| * In the request , payment method has to pass either a paymentMethodId or a sessionId | ||
| * Cases: | ||
| * 1. When we want to assign a newly created payment method where you don't yet know the payment method ID -> session ID. | ||
| * 2. If we already know the payment method ID because it was created previously -> payment method ID. | ||
| */ | ||
| paymentMethod: PaymentMethodWithId | PaymentMethodWithSession; | ||
| phone: string; | ||
@@ -37,0 +49,0 @@ postalCode: string; |
+1
-1
| { | ||
| "name": "@shipengine/js-api", | ||
| "version": "4.13.0", | ||
| "version": "4.14.0", | ||
| "main": "./index.js", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
1593468
0.03%45186
0.03%