@shipengine/js-api
Advanced tools
| import { AxiosInstance } from "axios"; | ||
| import { Addon, AddonTypes } from "./types"; | ||
| import { Addon, AddonCodes } from "./types"; | ||
| /** | ||
@@ -20,3 +20,7 @@ * # Account Addons API module - /v1/account/addons | ||
| */ | ||
| enable: (addonCode: AddonTypes) => Promise<import("axios").AxiosResponse<void, any>>; | ||
| enable: (addonCode: AddonCodes) => Promise<import("axios").AxiosResponse<void, any>>; | ||
| /** | ||
| * The `disable` method allows to disable an AddOn for the current user | ||
| */ | ||
| disable: (addonCode: AddonCodes) => Promise<import("axios").AxiosResponse<void, any>>; | ||
| } |
@@ -1,5 +0,5 @@ | ||
| export type AddonTypes = "ss_api_analytics"; | ||
| export type AddonCodes = "ss_api_analytics"; | ||
| export type Addon = { | ||
| /** Addon code, unique reference for it */ | ||
| code: AddonTypes; | ||
| code: AddonCodes; | ||
| /** Date when the deactivation will take place, will be undefined while the user does not wish to deactivate it */ | ||
@@ -6,0 +6,0 @@ deactivationDate?: string; |
+1
-1
| { | ||
| "name": "@shipengine/js-api", | ||
| "version": "4.18.5", | ||
| "version": "4.18.6-next.0", | ||
| "main": "./index.js", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1603885
0.04%45471
0.04%2
100%