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

aws-kinesis-writable

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-kinesis-writable - npm Package Compare versions

Comparing version 1.4.8 to 1.4.9

4

package.json
{
"name": "aws-kinesis-writable",
"description": "A bunyan stream for kinesis.",
"version": "1.4.8",
"version": "1.4.9",
"author": "José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)",

@@ -15,3 +15,3 @@ "repository": {

"dependencies": {
"aws-sdk": "~2.1.43",
"aws-sdk": "^2.2.36",
"lodash": "~3.10.1"

@@ -18,0 +18,0 @@ },

@@ -79,4 +79,12 @@ Kinesis writteable stream for bunyan.

## Issue Reporting
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
## Author
[Auth0](auth0.com)
## License
MIT 2015 - AUTH0 INC.
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.

@@ -1,19 +0,51 @@

var KinesisStream = require('.');
var bk = new KinesisStream({
streamName: 'test',
region: 'us-west-2',
buffer: false
});
// var KinesisStream = require('.');
// var bk = new KinesisStream({
// streamName: 'test',
// region: 'us-west-2',
// buffer: false
// });
var x = { x: 1, tenant: 'sam', date: new Date(), _id: 'jeje' + Date.now()};
bk._write(JSON.stringify(x), null, function (err) {
console.log(10, err);
x = { metatype: 'foo', metadata: { x: 2, tenant: 'sam', date: new Date()} };
bk._write(JSON.stringify(x), null, function (err) {
console.log(20, err);
x = { metatype: 'tenant-log', metadata: { x: 3, tenant: 'sam', date: new Date()} };
bk._write(JSON.stringify(x), null, function (err) {
console.log(30, err);
});
});
});
// var x = { x: 1, tenant: 'sam', date: new Date(), _id: 'jeje' + Date.now()};
// bk._write(JSON.stringify(x), null, function (err) {
// console.log(10, err);
// x = { metatype: 'foo', metadata: { x: 2, tenant: 'sam', date: new Date()} };
// bk._write(JSON.stringify(x), null, function (err) {
// console.log(20, err);
// x = { metatype: 'tenant-log', metadata: { x: 3, tenant: 'sam', date: new Date()} };
// bk._write(JSON.stringify(x), null, function (err) {
// console.log(30, err);
// });
// });
// });
var AWS = require('aws-sdk');
var _ = require('lodash');
var params = {
region: 'us-west-2'
};
var kinesis = new AWS.Kinesis(_.pick(params, [
'accessKeyId',
'secretAccessKey',
'region',
'httpOptions']));
var records = {
StreamName: 'vagrant_testig',
Records: [
{ Data: 34234, PartitionKey: 'pk' },
{ Data: 'bar', PartitionKey: 'pk' }
]
};
var req = kinesis.putRecords(records, (e, r) => {
console.log('CB', e, r);
})
.on('success', (r) => { console.log('SUCCESS', r.data); })
.on('error', (e) => { console.log('ERROR', e); })
.on('complete', () => { console.log('COMPLETE'); });
console.log('sent');

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