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

hstream

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hstream - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

.github/workflows/ci.yml

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # hstream change log

## 3.0.0
* Update dependencies. This major version bump is out of caution in case the parsing for the underlying HTML or CSS selector libraries changed.
## 2.0.0

@@ -9,0 +13,0 @@

2

index.js

@@ -115,3 +115,3 @@ var HTMLParser = require('htmlparser2').Parser

// Hopefully this check is good enough to be future proof
if (parser.endIndex === null) parser._updatePosition(2)
if (parser.endIndex === null) parser.updatePosition(2)
queue(slice())

@@ -118,0 +118,0 @@ }

{
"name": "hstream",
"description": "streaming html templates",
"version": "2.0.0",
"author": "Renée Kooi <renee@kooi.me>",
"bugs": {
"url": "https://github.com/stackhtml/hstream/issues"
},
"dependencies": {
"css-what": "^3.2.1",
"htmlparser2": "^4.0.0",
"through2": "^3.0.1"
},
"devDependencies": {
"dedent": "^0.7.0",
"hyperstream": "^1.2.2",
"nanobench": "^2.1.1",
"rimraf": "^3.0.0",
"simple-concat": "^1.0.0",
"standard": "^14.0.0",
"tape": "^4.13.0"
},
"engines": {
"node": ">= 8"
},
"homepage": "https://github.com/stackhtml/hstream",
"keywords": [
"html",
"stream",
"template"
],
"license": "Apache-2.0",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/stackhtml/hstream.git"
},
"scripts": {
"bench": "node bench/hstream.js",
"compare": "node bench/hyperstream.js > bench/hyperstream.txt && node bench/hstream.js > bench/hstream.txt && nanobench-compare bench/*.txt; rimraf bench/*.txt",
"test": "standard && node test/index.js"
}
"name": "hstream",
"description": "streaming html templates",
"version": "3.0.0",
"author": "Renée Kooi <renee@kooi.me>",
"bugs": {
"url": "https://github.com/stackhtml/hstream/issues"
},
"dependencies": {
"css-what": "^4.0.0",
"htmlparser2": "^6.0.0",
"through2": "^4.0.2"
},
"devDependencies": {
"dedent": "^0.7.0",
"hyperstream": "^1.2.2",
"nanobench": "^2.1.1",
"rimraf": "^3.0.0",
"simple-concat": "^1.0.0",
"standard": "^14.0.0",
"tape": "^5.0.0"
},
"engines": {
"node": ">= 8"
},
"homepage": "https://github.com/stackhtml/hstream",
"keywords": [
"html",
"stream",
"template"
],
"license": "Apache-2.0",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/stackhtml/hstream.git"
},
"scripts": {
"bench": "node bench/hstream.js",
"compare": "node bench/hyperstream.js > bench/hyperstream.txt && node bench/hstream.js > bench/hstream.txt && nanobench-compare bench/*.txt; rimraf bench/*.txt",
"lint": "standard",
"test": "node test/index.js"
}
}

@@ -13,3 +13,3 @@ # hstream

[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]
[![actions][actions-image]][actions-url]
[![standard][standard-image]][standard-url]

@@ -19,4 +19,4 @@

[npm-url]: https://www.npmjs.com/package/hstream
[travis-image]: https://img.shields.io/travis/stackhtml/hstream.svg?style=flat-square
[travis-url]: https://travis-ci.org/stackhtml/hstream
[actions-image]: https://github.com/stackhtml/hstream/workflows/CI/badge.svg
[actions-url]: https://github.com/stackhtml/hstream/actions?query=workflow%3ACI
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square

@@ -34,5 +34,5 @@ [standard-url]: http://npm.im/standard

```js
var hyperstream = require('hstream')
var hstream = require('hstream')
hyperstream({
hstream({
'div > .x[attr="value"]': fs.createReadStream('./xyz.html')

@@ -44,3 +44,3 @@ })

### `hyperstream(updates)`
### `hstream(updates)`

@@ -47,0 +47,0 @@ Create a through stream that applies `updates`. `updates` is an object with CSS

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