Open danielyaa5 opened 6 years ago
Hi Daniel, Thank you so much for de feedback, and sorry for the status of the package. If I have to tell the thruth, It have been done for a defined use case in my work so It's bad documented and bad debugged. But knowing some one is looking at it, I'll fix it today. I'll do a major update today using another technique for leading with async generator, for fix a hard bug that I found leading with streams (the streams doc is so bad...).
2017-11-16 0:36 GMT+01:00 Daniel notifications@github.com:
Cool package. I wish I could help debug more but I don't understand TypeScript.
Error
return new Scan(new AWS.DynamoDB.DocumentClient(), { TableName }); ^
TypeError: Scan is not a constructor
Code
// npm const AWS = require('aws-sdk'); const Joi = require('joi'); const { Scan } = require('aws-dynamodb-streams');
module.exports = (TableName) => { // validation Joi.assert(TableName, Joi.string().min(1).required());
console.log(Scan) return new Scan(new AWS.DynamoDB.DocumentClient(), { TableName }); };
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AitorGuerrero/aws-dynamodb-streams/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ADy2DFw5sAhMjdck1hUv69stDaNG4s9-ks5s23V1gaJpZM4QfvY5 .
I'm having the same issue.
Cool package. I wish I could help debug more but I don't understand TypeScript.
Error
Code
Im on version 3.0