chore: add pkg dependencies

This commit is contained in:
Rim
2025-04-01 23:48:10 -04:00
parent e32a4c6abc
commit 86f0782a98
1210 changed files with 125948 additions and 3593 deletions

27
node_modules/stream-meter/index.js generated vendored Normal file
View File

@ -0,0 +1,27 @@
module.exports = Meter
var util = require("util")
var Transform = require("stream").Transform
if (!Transform) {
Transform = require("readable-stream/transform")
}
function Meter(maxBytes) {
if (!(this instanceof Meter)) return new Meter(maxBytes)
Transform.call(this)
this.bytes = 0
this.maxBytes = maxBytes || Number.MAX_VALUE
}
util.inherits(Meter, Transform)
Meter.prototype._transform = function (chunk, encoding, cb) {
this.bytes += chunk.length
this.push(chunk)
if (this.bytes > this.maxBytes) {
return cb(new Error("Stream exceeded specified max of " + this.maxBytes + " bytes."))
}
cb()
}

35
node_modules/stream-meter/package.json generated vendored Normal file
View File

@ -0,0 +1,35 @@
{
"name": "stream-meter",
"version": "1.0.4",
"description": "A stream meter that both counts the bytes piped through it, and can optionally abort on a max size. (e.g. limit a http request size)",
"main": "index.js",
"directories": {
"test": "test"
},
"dependencies": {
"readable-stream": "^2.1.4"
},
"devDependencies": {
"concat-stream": "^1.5.1",
"stream-spigot": "^3.0.3",
"tape": "^4.6.0"
},
"scripts": {
"test": "node test/"
},
"repository": {
"type": "git",
"url": "https://github.com/brycebaril/node-stream-meter.git"
},
"keywords": [
"streams2",
"streams",
"meter",
"abort"
],
"author": "Bryce B. Baril",
"license": "MIT",
"bugs": {
"url": "https://github.com/brycebaril/node-stream-meter/issues"
}
}