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()
}