Socket
Socket
Sign inDemoInstall

@aws-lambda-powertools/commons

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-lambda-powertools/commons - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

28

lib/cjs/config/EnvironmentVariablesService.js

@@ -24,18 +24,16 @@ "use strict";

class EnvironmentVariablesService {
constructor() {
/**
* Increase JSON indentation for Logger to ease debugging when running functions locally or in a non-production environment
*/
this.devModeVariable = 'POWERTOOLS_DEV';
/**
* Set service name used for tracing namespace, metrics dimension and structured logging
*/
this.serviceNameVariable = 'POWERTOOLS_SERVICE_NAME';
/**
* AWS X-Ray Trace ID environment variable
* @private
*/
this.xRayTraceIdVariable = '_X_AMZN_TRACE_ID';
}
/**
* Increase JSON indentation for Logger to ease debugging when running functions locally or in a non-production environment
*/
devModeVariable = 'POWERTOOLS_DEV';
/**
* Set service name used for tracing namespace, metrics dimension and structured logging
*/
serviceNameVariable = 'POWERTOOLS_SERVICE_NAME';
/**
* AWS X-Ray Trace ID environment variable
* @private
*/
xRayTraceIdVariable = '_X_AMZN_TRACE_ID';
/**
* Get the value of an environment variable by name.

@@ -42,0 +40,0 @@ *

@@ -67,3 +67,3 @@ "use strict";

for (const functionName of cleanupFunctionNames) {
if (Object(request.internal).hasOwnProperty(functionName)) {
if (Object.hasOwn(request.internal, functionName)) {
const functionReference = request.internal[functionName];

@@ -70,0 +70,0 @@ if (isFunction(functionReference)) {

@@ -57,6 +57,4 @@ "use strict";

class Utility {
constructor() {
this.coldStart = true;
this.defaultServiceName = 'service_undefined';
}
coldStart = true;
defaultServiceName = 'service_undefined';
/**

@@ -63,0 +61,0 @@ * Get the cold start status of the current execution environment.

@@ -1,2 +0,2 @@

export declare const PT_VERSION = "2.3.0";
export declare const PT_VERSION = "2.4.0";
//# sourceMappingURL=version.d.ts.map

@@ -5,2 +5,2 @@ "use strict";

// this file is auto generated, do not modify
exports.PT_VERSION = '2.3.0';
exports.PT_VERSION = '2.4.0';

@@ -21,18 +21,16 @@ /**

class EnvironmentVariablesService {
constructor() {
/**
* Increase JSON indentation for Logger to ease debugging when running functions locally or in a non-production environment
*/
this.devModeVariable = 'POWERTOOLS_DEV';
/**
* Set service name used for tracing namespace, metrics dimension and structured logging
*/
this.serviceNameVariable = 'POWERTOOLS_SERVICE_NAME';
/**
* AWS X-Ray Trace ID environment variable
* @private
*/
this.xRayTraceIdVariable = '_X_AMZN_TRACE_ID';
}
/**
* Increase JSON indentation for Logger to ease debugging when running functions locally or in a non-production environment
*/
devModeVariable = 'POWERTOOLS_DEV';
/**
* Set service name used for tracing namespace, metrics dimension and structured logging
*/
serviceNameVariable = 'POWERTOOLS_SERVICE_NAME';
/**
* AWS X-Ray Trace ID environment variable
* @private
*/
xRayTraceIdVariable = '_X_AMZN_TRACE_ID';
/**
* Get the value of an environment variable by name.

@@ -39,0 +37,0 @@ *

@@ -64,3 +64,3 @@ import { TRACER_KEY, METRICS_KEY, LOGGER_KEY, IDEMPOTENCY_KEY, } from './constants.js';

for (const functionName of cleanupFunctionNames) {
if (Object(request.internal).hasOwnProperty(functionName)) {
if (Object.hasOwn(request.internal, functionName)) {
const functionReference = request.internal[functionName];

@@ -67,0 +67,0 @@ if (isFunction(functionReference)) {

@@ -54,6 +54,4 @@ /**

export class Utility {
constructor() {
this.coldStart = true;
this.defaultServiceName = 'service_undefined';
}
coldStart = true;
defaultServiceName = 'service_undefined';
/**

@@ -60,0 +58,0 @@ * Get the cold start status of the current execution environment.

@@ -1,2 +0,2 @@

export declare const PT_VERSION = "2.3.0";
export declare const PT_VERSION = "2.4.0";
//# sourceMappingURL=version.d.ts.map
// this file is auto generated, do not modify
export const PT_VERSION = '2.3.0';
export const PT_VERSION = '2.4.0';
{
"name": "@aws-lambda-powertools/commons",
"version": "2.3.0",
"version": "2.4.0",
"description": "A shared utility package for Powertools for AWS Lambda (TypeScript) libraries",

@@ -5,0 +5,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc