@types/sqs-consumer
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -6,39 +6,23 @@ // Type definitions for sqs-consumer | ||
///<reference types="aws-sdk"/> | ||
/// <reference types="node" /> | ||
import { SQS } from "aws-sdk"; | ||
declare module "sqs-consumer" { | ||
interface Options { | ||
queueUrl: string; | ||
handleMessage(message: SQS.Message, done: Function): any; | ||
region?: string; | ||
attributeNames?: string[]; | ||
messageAttributeNames?: string[]; | ||
batchSize?: number; | ||
visibilityTimeout?: number; | ||
waitTimeSeconds?: number; | ||
authenticationErrorTimeout?: number; | ||
sqs?: SQS; | ||
} | ||
import { SQS } from "aws-sdk"; | ||
interface Consumer extends NodeJS.EventEmitter { | ||
start(): void; | ||
stop(): void; | ||
} | ||
module SQSConsumer { | ||
interface MessageHandler { | ||
(message: SQS.Message, done: Function): any; | ||
} | ||
interface ConsumerOpts { | ||
queueUrl: string; | ||
handleMessage: MessageHandler; | ||
region?: string; | ||
attributeNames?: string[]; | ||
messageAttributeNames?: string[]; | ||
batchSize?: number; | ||
visibilityTimeout?: number; | ||
waitTimeSeconds?: number; | ||
authenticationErrorTimeout?: number; | ||
sqs?: SQS; | ||
} | ||
interface Consumer extends NodeJS.EventEmitter { | ||
start (): void; | ||
stop (): void; | ||
} | ||
interface ConsumerFactory { | ||
create(opts: ConsumerOpts): Consumer; | ||
} | ||
} | ||
const Consumer: SQSConsumer.ConsumerFactory; | ||
export = Consumer; | ||
} | ||
export function create(opts: Options): Consumer; |
{ | ||
"name": "@types/sqs-consumer", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "TypeScript definitions for sqs-consumer", | ||
"license": "MIT", | ||
"author": "Daniel Chao <http://dchao.co/>", | ||
"contributors": [ | ||
{ | ||
"name": "Daniel Chao", | ||
"url": "http://dchao.co/" | ||
} | ||
], | ||
"main": "", | ||
@@ -14,7 +19,8 @@ "repository": { | ||
"dependencies": { | ||
"@types/aws-sdk": "*" | ||
"aws-sdk": "^2.37.0", | ||
"@types/node": "*" | ||
}, | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "36f079edf2fdcff2f93fa4e3b0ca64d03de564685db1d66a7fa77e405ca0866e" | ||
"typesPublisherContentHash": "6e6b242ad1022acd5689f2657bfb34b9d6a0a0816f64f9b4e7c07e200006d39d", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,9 +8,7 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/sqs-consumer | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqs-consumer | ||
Additional Details | ||
* Last updated: Mon, 21 Nov 2016 21:03:00 GMT | ||
* File structure: ModuleAugmentation | ||
* Library Dependencies: aws-sdk | ||
* Module Dependencies: aws-sdk | ||
* Last updated: Mon, 17 Apr 2017 17:55:17 GMT | ||
* Dependencies: aws-sdk, node | ||
* Global values: none | ||
@@ -17,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3056
2
23
17
+ Added@types/node@*
+ Addedaws-sdk@^2.37.0
+ Added@types/node@22.10.5(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@types/aws-sdk@*
- Removed@types/aws-sdk@2.7.4(transitive)