bin-serde 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts CHANGED
@@ -105,7 +105,6 @@ export class Writer {
105
105
 
106
106
  public writeStringAscii(val: string) {
107
107
  if (val.length === 0) {
108
- this.writeUInt8(0);
109
108
  return this;
110
109
  }
111
110
  this.ensureSize(val.length);
package/lib/index.js CHANGED
@@ -92,7 +92,6 @@ export class Writer {
92
92
  }
93
93
  writeStringAscii(val) {
94
94
  if (val.length === 0) {
95
- this.writeUInt8(0);
96
95
  return this;
97
96
  }
98
97
  this.ensureSize(val.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bin-serde",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A low level library for efficiently writing and reading binary data in javascript",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",