Socket
Socket
Sign inDemoInstall

split2

Package Overview
Dependencies
5
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.0 to 3.1.1

1

index.js

@@ -106,2 +106,3 @@ /*

options = Object.assign({}, options)
options.transform = transform

@@ -108,0 +109,0 @@ options.flush = flush

2

package.json
{
"name": "split2",
"version": "3.1.0",
"version": "3.1.1",
"description": "split a Text Stream into a Line Stream, using Stream 3",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -38,2 +38,18 @@ 'use strict'

test('split four lines on three writes', function (t) {
t.plan(2)
var input = split()
input.pipe(strcb(function (err, list) {
t.error(err)
t.deepEqual(list, ['hello', 'world', 'bye', 'world'])
}))
input.write('hello\nwor')
input.write('ld\nbye\nwo')
input.write('rld')
input.end()
})
test('accumulate multiple writes', function (t) {

@@ -335,1 +351,15 @@ t.plan(2)

})
test("don't modify the options object", function (t) {
t.plan(2)
var options = {}
var input = split(options)
input.pipe(strcb(function (err, list) {
t.error(err)
t.same(options, {})
}))
input.end()
})
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