Socket
Socket
Sign inDemoInstall

split

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.10 to 0.3.0

test/options.asynct.js

6

index.js

@@ -15,5 +15,6 @@ //filter will reemit the data if cb(err,pass) pass is truthy

function split (matcher, mapper) {
function split (matcher, mapper, options) {
var decoder = new Decoder()
var soFar = ''
var maxLength = options && options.maxLength;
if('function' === typeof matcher)

@@ -43,2 +44,5 @@ mapper = matcher, matcher = null

if (maxLength && soFar.length > maxLength)
stream.emit('error', new Error('maximum buffer reached'))
for (var i = 0; i < pieces.length; i++) {

@@ -45,0 +49,0 @@ var piece = pieces[i]

2

package.json
{
"name": "split",
"version": "0.2.10",
"version": "0.3.0",
"description": "split a Text Stream into a Line Stream",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/dominictarr/split",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc