Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apex-utils

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apex-utils - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

dist/http/event.d.ts

@@ -9,2 +9,7 @@ export declare type IParams = {

queryStringParameters: IParams;
requestContext?: {
authorizer?: {
principalId?: any;
};
};
body?: string;

@@ -11,0 +16,0 @@ }

2

dist/http/request.d.ts

@@ -5,2 +5,3 @@ import { IIncomingEvent } from "./event";

body: string | null;
authorizerPrincipalId: string | null;
header(key: string, defaultValue?: string): string;

@@ -14,2 +15,3 @@ param(key: string, defaultValue?: any): any;

readonly method: string;
readonly authorizerPrincipalId: string | null;
readonly body: string;

@@ -16,0 +18,0 @@ header(key: string, defaultValue?: string): string;

@@ -11,2 +11,12 @@ "use strict";

}
get authorizerPrincipalId() {
let result;
try {
result = this.event.requestContext.authorizer.principalId || null;
}
catch (err) {
result = null;
}
return result;
}
get body() {

@@ -13,0 +23,0 @@ return this.event.body || null;

2

package.json
{
"name": "apex-utils",
"version": "0.0.3",
"version": "0.0.4",
"description": "Collection of helpers useful in a work with AWS Lambda",

@@ -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