@aws-lambda-powertools/metrics
Advanced tools
@@ -762,3 +762,6 @@ "use strict"; | ||
| setConsole() { | ||
| if (!this.#envConfig.devMode) { | ||
| if (this.#envConfig.devMode) { | ||
| this.console = console; | ||
| } | ||
| else { | ||
| this.console = new node_console_1.Console({ | ||
@@ -769,5 +772,2 @@ stdout: process.stdout, | ||
| } | ||
| else { | ||
| this.console = console; | ||
| } | ||
| } | ||
@@ -780,5 +780,3 @@ /** | ||
| setCustomConfigService(customConfigService) { | ||
| this.customConfigService = customConfigService | ||
| ? customConfigService | ||
| : undefined; | ||
| this.customConfigService = customConfigService; | ||
| } | ||
@@ -785,0 +783,0 @@ /** |
@@ -759,3 +759,6 @@ import { Console } from 'node:console'; | ||
| setConsole() { | ||
| if (!this.#envConfig.devMode) { | ||
| if (this.#envConfig.devMode) { | ||
| this.console = console; | ||
| } | ||
| else { | ||
| this.console = new Console({ | ||
@@ -766,5 +769,2 @@ stdout: process.stdout, | ||
| } | ||
| else { | ||
| this.console = console; | ||
| } | ||
| } | ||
@@ -777,5 +777,3 @@ /** | ||
| setCustomConfigService(customConfigService) { | ||
| this.customConfigService = customConfigService | ||
| ? customConfigService | ||
| : undefined; | ||
| this.customConfigService = customConfigService; | ||
| } | ||
@@ -782,0 +780,0 @@ /** |
+2
-2
| { | ||
| "name": "@aws-lambda-powertools/metrics", | ||
| "version": "2.30.0", | ||
| "version": "2.30.1", | ||
| "description": "The metrics package for the Powertools for AWS Lambda (TypeScript) library", | ||
@@ -28,3 +28,3 @@ "author": { | ||
| "@aws/lambda-invoke-store": "0.2.2", | ||
| "@aws-lambda-powertools/commons": "2.30.0" | ||
| "@aws-lambda-powertools/commons": "2.30.1" | ||
| }, | ||
@@ -31,0 +31,0 @@ "peerDependencies": { |
+1
-0
@@ -165,2 +165,3 @@ # Powertools for AWS Lambda (TypeScript) | ||
| - [Codeac](https://www.codeac.io/) | ||
| - [EF Education First](https://www.ef.com/) | ||
| - [Elva](https://elva-group.com) | ||
@@ -167,0 +168,0 @@ - [Flyweight](https://flyweight.io/) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
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 2 instances 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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
192
0.52%254832
-0.03%5451
-0.07%+ Added
- Removed