smart-buffer
smart-buffer copied to clipboard
smart-buffer is a Buffer wrapper that adds automatic read & write offset tracking, string operations, data insertions, and more.
Bumps [diff](https://github.com/kpdecker/jsdiff) from 3.3.1 to 3.5.0. Changelog Sourced from diff's changelog. v3.5.0 - March 4th, 2018 Omit redundant slice in join method of diffArrays - 1023590 Support patches with empty...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.4.2 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 2.8.8 (2020-02-29) Bug Fixes #61 & #65...
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.7 to 4.7.7. Changelog Sourced from handlebars's changelog. v4.7.7 - February 15th, 2021 fix weird error in integration tests - eb860c0 fix: check prototype property access in...
Consider: ```js const buffer = SmartBuffer.fromSize(0, 'utf16le'); buffer.writeStringNT('hello'); const output = buffer.readStringNT(); ``` We'd expect `output` to be `"hello"`, but it's current `''`, due to: https://github.com/JoshGlazebrook/smart-buffer/blob/d35c0ce6e253e7c963553a4092cb73b711caafaa/src/smartbuffer.ts#L685-L690 The buffer (after the...
It would be more efficient if smart-buffer can be used around readable stream and writeable stream. A potential use case is to append a stream of objects encoded by msgpack...
Bumps [sshpk](https://github.com/joyent/node-sshpk) from 1.13.0 to 1.16.1. Release notes *Sourced from [sshpk's releases](https://github.com/joyent/node-sshpk/releases).* > ## v1.16.1 > * Fixes for [#60](https://github-redirect.dependabot.com/joyent/node-sshpk/issues/60) (correctly encoding certificates with expiry dates >=2050), [#62](https://github-redirect.dependabot.com/joyent/node-sshpk/issues/62) (accepting PKCS#8...
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.6.1 to 3.13.1. Changelog *Sourced from [js-yaml's changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md).* > 3.13.1 / 2019-04-05 > ------------------- > > - Fix possible code execution in (already unsafe) `.load()`, [#480](https://github-redirect.dependabot.com/nodeca/js-yaml/issues/480). >...
Currently the `writeOffset` is always adjusted and `readOffset` is never adjusted. I think a more sensible thing is to adjust both, but not if the insertion offset is after them....
The `writeStringNT` code when not given an offset argument is correct as it uses the writeOffset for placing the null terminator, but with an offset it is incorrect. The `insertStringNT`...