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.7.0 to 2.8.0

1

lib/cjs/config/EnvironmentVariablesService.d.ts

@@ -19,3 +19,2 @@ import type { ConfigServiceInterface } from '../types/ConfigServiceInterface.js';

* @class
* @implements {ConfigServiceInterface}
*/

@@ -22,0 +21,0 @@ declare class EnvironmentVariablesService implements ConfigServiceInterface {

@@ -21,3 +21,2 @@ "use strict";

* @class
* @implements {ConfigServiceInterface}
*/

@@ -24,0 +23,0 @@ class EnvironmentVariablesService {

4

lib/cjs/LRUCache.d.ts

@@ -30,4 +30,4 @@ import type { LRUCacheOptions } from './types/LRUCache.js';

*
* @typeparam K - The type of the key
* @typeparam V - The type of the value
* @typeParam K - The type of the key
* @typeParam V - The type of the value
*/

@@ -34,0 +34,0 @@ declare class LRUCache<K, V> {

@@ -47,4 +47,4 @@ "use strict";

*
* @typeparam K - The type of the key
* @typeparam V - The type of the value
* @typeParam K - The type of the key
* @typeParam V - The type of the value
*/

@@ -51,0 +51,0 @@ class LRUCache {

@@ -46,3 +46,2 @@ import type { MiddyLikeRequest } from '../types/middy.js';

* @param request The Middy request object
* @param options An optional object that can be used to pass options to the function
*/

@@ -49,0 +48,0 @@ declare const cleanupMiddlewares: (request: MiddyLikeRequest) => Promise<void>;

@@ -57,3 +57,2 @@ "use strict";

* @param request The Middy request object
* @param options An optional object that can be used to pass options to the function
*/

@@ -60,0 +59,0 @@ const cleanupMiddlewares = async (request) => {

/**
* @abstract ConfigServiceInterface
*
* This class defines common methods and variables that can be set by the developer

@@ -5,0 +3,0 @@ * in the runtime.

@@ -5,3 +5,3 @@ import type { Context } from 'aws-lambda';

*
* @note We need to define these types and interfaces here because we can't import them from Middy.js.
* We need to define these types and interfaces here because we can't import them from Middy.js.
*

@@ -56,3 +56,4 @@ * Importing them from Middy.js would introduce a dependency on it, which we don't want

*
* @see {@link cleanupMiddlewares}
* @see {@link middleware/cleanupMiddlewares.cleanupMiddlewares}
*
*/

@@ -59,0 +60,0 @@ type CleanupFunction = (request: MiddyLikeRequest) => Promise<void>;

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

export declare const PT_VERSION = "2.7.0";
export declare const PT_VERSION = "2.8.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -19,3 +19,2 @@ import type { ConfigServiceInterface } from '../types/ConfigServiceInterface.js';

* @class
* @implements {ConfigServiceInterface}
*/

@@ -22,0 +21,0 @@ declare class EnvironmentVariablesService implements ConfigServiceInterface {

@@ -18,3 +18,2 @@ /**

* @class
* @implements {ConfigServiceInterface}
*/

@@ -21,0 +20,0 @@ class EnvironmentVariablesService {

@@ -30,4 +30,4 @@ import type { LRUCacheOptions } from './types/LRUCache.js';

*
* @typeparam K - The type of the key
* @typeparam V - The type of the value
* @typeParam K - The type of the key
* @typeParam V - The type of the value
*/

@@ -34,0 +34,0 @@ declare class LRUCache<K, V> {

@@ -44,4 +44,4 @@ const DEFAULT_MAX_SIZE = 100;

*
* @typeparam K - The type of the key
* @typeparam V - The type of the value
* @typeParam K - The type of the key
* @typeParam V - The type of the value
*/

@@ -48,0 +48,0 @@ class LRUCache {

@@ -46,3 +46,2 @@ import type { MiddyLikeRequest } from '../types/middy.js';

* @param request The Middy request object
* @param options An optional object that can be used to pass options to the function
*/

@@ -49,0 +48,0 @@ declare const cleanupMiddlewares: (request: MiddyLikeRequest) => Promise<void>;

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

* @param request The Middy request object
* @param options An optional object that can be used to pass options to the function
*/

@@ -57,0 +56,0 @@ const cleanupMiddlewares = async (request) => {

/**
* @abstract ConfigServiceInterface
*
* This class defines common methods and variables that can be set by the developer

@@ -5,0 +3,0 @@ * in the runtime.

@@ -5,3 +5,3 @@ import type { Context } from 'aws-lambda';

*
* @note We need to define these types and interfaces here because we can't import them from Middy.js.
* We need to define these types and interfaces here because we can't import them from Middy.js.
*

@@ -56,3 +56,4 @@ * Importing them from Middy.js would introduce a dependency on it, which we don't want

*
* @see {@link cleanupMiddlewares}
* @see {@link middleware/cleanupMiddlewares.cleanupMiddlewares}
*
*/

@@ -59,0 +60,0 @@ type CleanupFunction = (request: MiddyLikeRequest) => Promise<void>;

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

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

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

@@ -116,3 +116,3 @@ # Powertools for AWS Lambda (TypeScript) <!-- omit in toc -->

Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (TypeScript), you can request to have your name and logo added to the README file by raising a [Support Powertools for AWS Lambda (TypeScript) (become a reference)](https://github.com/aws-powertools/powertools-lambda-typescript/issues/new?assignees=&labels=customer-reference&template=support_powertools.yml&title=%5BSupport+Lambda+Powertools%5D%3A+%3Cyour+organization+name%3E) issue.
Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (TypeScript), you can request to have your name and logo added to the README file by raising a [Support Powertools for AWS Lambda (TypeScript) (become a reference)](https://s12d.com/become-reference-pt-ts) issue.

@@ -119,0 +119,0 @@ The following companies, among others, use Powertools:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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