diff --git a/notNeededPackages.json b/notNeededPackages.json index 59d7859ab1..d6ff7669ca 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -186,6 +186,12 @@ "sourceRepoURL": "https://github.com/andreypopp/autobind-decorator", "asOfVersion": "2.1.0" }, + { + "libraryName": "aws-lambda-mock-context", + "typingsPackageName": "aws-lambda-mock-context", + "sourceRepoURL": "https://github.com/moskalyk/typed-aws-lambda-mock-context", + "asOfVersion": "3.2.0" + }, { "libraryName": "autolinker", "typingsPackageName": "autolinker", diff --git a/types/aws-lambda-mock-context/aws-lambda-mock-context-tests.ts b/types/aws-lambda-mock-context/aws-lambda-mock-context-tests.ts deleted file mode 100644 index 09e121a776..0000000000 --- a/types/aws-lambda-mock-context/aws-lambda-mock-context-tests.ts +++ /dev/null @@ -1,22 +0,0 @@ -import context = require("aws-lambda-mock-context"); -import * as Alexa from "alexa-sdk"; - -const launchRequestJson: any = { - request: { - locale: "en-US", - requestId: "amzn1.echo-api.request.[unique-value-here]", - timestamp: "2016-10-27T18:21:44Z", - type: "LaunchRequest", - }, - session: { - application: {applicationId: "amzn1.ask.skill.[unique-value-here]"}, - attributes: {}, - new: false, - sessionId: "amzn1.echo-api.session.[unique-value-here]", - user: {userId: "amzn1.ask.account.[unique-value-here]"}, - }, - version: "1.0", -}; - -const ctx = context(); -const alexa = Alexa.handler(launchRequestJson, ctx); diff --git a/types/aws-lambda-mock-context/index.d.ts b/types/aws-lambda-mock-context/index.d.ts deleted file mode 100644 index b5a3768f2d..0000000000 --- a/types/aws-lambda-mock-context/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -// Type definitions for AWS Lambda Mock Context SDK 1.0 -// Project: https://github.com/moskalyk/typed-aws-lambda-mock-context -// Definitions by: Morgan Moskalyk , Anand Nimkar -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -declare function context(options?: Options): Context; - -export = context; - -interface Context { - Promise: Promise; - callbackWaitsForEmptyEventLoop: boolean; - functionName: string; - functionVersion: string; - invokedFunctionArn: string; - memoryLimitInMB: string; - awsRequestId: string; - invokeid: string; - logGroupName: string; - logStreamName: string; - getRemainingTimeInMillis: number; - succeed(result: any): Promise; - fail(err: any): Promise; - done(err: any, result: any): Promise; -} - -interface Options { - region?: string; - account?: string; - functionName?: string; - functionVersion?: string; - memoryLimitInMB?: string; - alias?: string; -} diff --git a/types/aws-lambda-mock-context/tsconfig.json b/types/aws-lambda-mock-context/tsconfig.json deleted file mode 100644 index 5d1dfe3f1f..0000000000 --- a/types/aws-lambda-mock-context/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "aws-lambda-mock-context-tests.ts" - ] -} \ No newline at end of file diff --git a/types/aws-lambda-mock-context/tslint.json b/types/aws-lambda-mock-context/tslint.json deleted file mode 100644 index f6fabe4180..0000000000 --- a/types/aws-lambda-mock-context/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODO - "npm-naming": false, - "dt-header": false - } -}