lambda-api
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -7,2 +7,3 @@ import { | ||
} from 'aws-lambda'; | ||
import { S3ClientConfig } from '@aws-sdk/client-s3'; | ||
@@ -136,2 +137,3 @@ export declare interface CookieOptions { | ||
headers?: object; | ||
s3Config?: S3ClientConfig; | ||
} | ||
@@ -138,0 +140,0 @@ |
@@ -12,2 +12,3 @@ 'use strict'; | ||
const LOGGER = require('./lib/logger'); | ||
const S3 = require('./lib/s3-service'); | ||
const prettyPrint = require('./lib/prettyPrint'); | ||
@@ -50,2 +51,4 @@ const { ConfigurationError } = require('./lib/errors'); | ||
this._s3Config = props && props.s3Config; | ||
this._sampleCounts = {}; | ||
@@ -289,2 +292,5 @@ | ||
// Set S3 Client | ||
if (this._s3Config) S3.setConfig(this._s3Config); | ||
// Initalize request and response objects | ||
@@ -291,0 +297,0 @@ let request = new REQUEST(this); |
@@ -15,2 +15,3 @@ 'use strict'; | ||
exports.client = new S3Client(); | ||
exports.setConfig = (config) => (exports.client = new S3Client(config)); | ||
@@ -17,0 +18,0 @@ exports.getObject = (params) => { |
{ | ||
"name": "lambda-api", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Lightweight web framework for your serverless applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
164431
2475
1516