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

it-pair

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

it-pair - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

dist/src/duplex.d.ts

144

package.json
{
"name": "it-pair",
"description": "pair a source async iterable stream and a sink async iterable stream",
"version": "1.0.0",
"version": "2.0.0",
"homepage": "https://github.com/alanshaw/it-pair",

@@ -10,15 +10,143 @@ "repository": {

},
"devDependencies": {
"it-pipe": "^1.0.1",
"standard": "^12.0.1",
"tape": "^4.5.1"
"type": "module",
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"*/index",
"dist/*",
"dist/*/index",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist/src",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"import": "./dist/src/index.js"
},
"./duplex": {
"import": "./dist/src/duplex.js"
}
},
"eslintConfig": {
"extends": "ipfs",
"parserOptions": {
"sourceType": "module"
}
},
"release": {
"branches": [
"master"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"breaking": true,
"release": "major"
},
{
"revert": true,
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "chore",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"scope": "no-release",
"release": false
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Trivial Changes"
},
{
"type": "docs",
"section": "Trivial Changes"
},
{
"type": "test",
"section": "Tests"
}
]
}
}
],
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
},
"scripts": {
"test": "standard && set -e; for t in test/*.js; do node $t; done"
"lint": "aegir lint",
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
"build": "tsc",
"pretest": "npm run build",
"test": "aegir test -f ./dist/test",
"test:chrome": "npm run test -- -t browser --cov",
"test:chrome-webworker": "npm run test -- -t webworker",
"test:firefox": "npm run test -- -t browser -- --browser firefox",
"test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox",
"test:node": "npm run test -- -t node --cov",
"test:electron-main": "npm run test -- -t electron-main",
"release": "semantic-release"
},
"author": "Dominic Tarr <dominic.tarr@gmail.com> (dominictarr.com)",
"devDependencies": {
"aegir": "^36.1.3",
"it-all": "^1.0.6",
"it-drain": "^1.0.5",
"it-pipe": "^2.0.0"
},
"author": "Alan Shaw",
"license": "MIT",
"dependencies": {
"get-iterator": "^1.0.2"
"it-stream-types": "^1.0.3",
"p-defer": "^4.0.0"
}
}

8

README.md
# it-pair
[![Build Status](https://github.com/alanshaw/it-pair/actions/workflows/js-test-and-release.yml/badge.svg?branch=master)](https://github.com/alanshaw/it-pair/actions/workflows/js-test-and-release.yml)
[![Dependencies Status](https://status.david-dm.org/gh/alanshaw/it-pair.svg)](https://david-dm.org/alanshaw/it-pair)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
A pair of {source, sink} streams that are internally connected,

@@ -30,7 +34,7 @@ (what goes into the sink comes out the source)

This is particularly useful for creating duplex streams especially
around servers. Use `pull-pair/duplex` to get two duplex streams
around servers. Use `it-pair/duplex` to get two duplex streams
that are attached to each other.
``` js
var DuplexPair = require('pull-pair/duplex')
var DuplexPair = require('it-pair/duplex')

@@ -37,0 +41,0 @@ var d = DuplexPair()

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