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

@ez4/aws-function

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ez4/aws-function - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

dist/mapping/client.d.ts

5

dist/function/client.d.ts

@@ -26,7 +26,10 @@ import type { Arn, ResourceTags } from '@ez4/aws-common';

};
export type UpdateSourceCodeRequest = {
sourceFile: string;
};
export declare const createFunction: (request: CreateRequest) => Promise<CreateResponse>;
export declare const tagFunction: (functionArn: Arn, tags: ResourceTags) => Promise<void>;
export declare const untagFunction: (functionArn: Arn, tagKeys: string[]) => Promise<void>;
export declare const updateSourceCode: (functionName: string, sourceFile: string) => Promise<void>;
export declare const updateSourceCode: (functionName: string, request: UpdateSourceCodeRequest) => Promise<void>;
export declare const updateConfiguration: (functionName: string, request: UpdateConfigRequest) => Promise<void>;
export declare const deleteFunction: (functionName: string) => Promise<void>;

3

dist/main.d.ts

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

export * from './types/variables.js';
export * from './function/service.js';

@@ -6,2 +7,4 @@ export * from './function/types.js';

export * from './permission/types.js';
export * from './mapping/service.js';
export * from './mapping/types.js';
export * from './triggers/register.js';
import type { EntryState, EntryStates } from '@ez4/stateful';
import type { FunctionState } from '../function/types.js';
import type { PermissionParametersGenerator, PermissionState } from './types.js';
import type { PermissionParameters, PermissionState } from './types.js';
export declare const isPermission: (resource: EntryState) => resource is PermissionState;
export declare const createPermission: <E extends EntryState>(state: EntryStates<E>, sourceState: EntryState, functionState: FunctionState, getParameters: PermissionParametersGenerator) => PermissionState;
export declare const createPermission: <E extends EntryState>(state: EntryStates<E>, sourceState: EntryState, functionState: FunctionState, parameters: PermissionParameters) => PermissionState;

@@ -5,11 +5,14 @@ import type { EntryState, StepContext } from '@ez4/stateful';

export declare const PermissionServiceType = "aws:lambda.permission";
export type PermissionParameters = Omit<CreateRequest, 'functionName' | 'statementId' | 'action'>;
export type Permission = Omit<CreateRequest, 'functionName' | 'statementId' | 'action'>;
export type GetPermission = (context: StepContext) => Promise<Permission> | Permission;
export type PermissionParameters = {
getPermission: GetPermission;
};
export type PermissionResult = CreateResponse & {
functionName: string;
};
export type PermissionParametersGenerator = (context: StepContext) => Promise<PermissionParameters> | PermissionParameters;
export type PermissionState = EntryState & {
type: typeof PermissionServiceType;
parameters: PermissionParametersGenerator;
parameters: PermissionParameters;
result?: PermissionResult;
};
{
"name": "@ez4/aws-function",
"description": "EZ4: Self-managed AWS lambda functions",
"version": "0.0.0",
"version": "0.1.0",
"author": "Silas B.",

@@ -26,12 +26,11 @@ "license": "MIT",

"clean:registry": "rm -rf ../../.registry/@ez4/aws-function",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"publish": "npm publish --access public"
"live:publish": "npm run test && npm publish --access public"
},
"dependencies": {
"@aws-sdk/client-lambda": "^3.614.0",
"@ez4/aws-common": "^0.0.0",
"@ez4/aws-identity": "^0.0.0",
"@ez4/project": "^0.0.0",
"@ez4/stateful": "^0.0.0",
"@ez4/utils": "^0.0.0",
"@ez4/aws-common": "^0.1.0",
"@ez4/aws-identity": "^0.1.0",
"@ez4/project": "^0.1.0",
"@ez4/stateful": "^0.1.0",
"@ez4/utils": "^0.1.0",
"@types/adm-zip": "^0.5.5",

@@ -38,0 +37,0 @@ "adm-zip": "^0.5.14"

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