@nuintun/buffer 0.8.5 → 0.8.7

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/README.md CHANGED
@@ -139,7 +139,7 @@ export declare class Buffer {
139
139
  /**
140
140
  * @public
141
141
  * @method writeBoolean
142
- * @description 在缓冲区中写入布尔值,true 写 1,false写 0
142
+ * @description 在缓冲区中写入布尔值,true 写 1,false 写 0
143
143
  * @param {boolean} value 布尔值
144
144
  */
145
145
  writeBoolean(value: boolean): void;
@@ -380,10 +380,10 @@ export declare class Buffer {
380
380
  [npm-image]: https://img.shields.io/npm/v/@nuintun/buffer?style=flat-square
381
381
  [npm-url]: https://www.npmjs.org/package/@nuintun/buffer
382
382
  [download-image]: https://img.shields.io/npm/dm/@nuintun/buffer?style=flat-square
383
- [languages-image]: https://img.shields.io/github/languages/top/nuintun/buffer?style=flat-square
384
- [github-url]: https://github.com/nuintun/buffer
383
+ [languages-image]: https://img.shields.io/github/languages/top/nuintun/Buffer?style=flat-square
384
+ [github-url]: https://github.com/nuintun/Buffer
385
385
  [tree-shakeable-image]: https://img.shields.io/badge/tree--shakeable-true-brightgreen?style=flat-square
386
386
  [side-effect-image]: https://img.shields.io/badge/side--effect-free-brightgreen?style=flat-square
387
387
  [bundle-phobia-url]: https://bundlephobia.com/result?p=@nuintun/buffer
388
- [license-image]: https://img.shields.io/github/license/nuintun/buffer?style=flat-square
389
- [license-url]: https://github.com/nuintun/buffer/blob/main/LICENSE
388
+ [license-image]: https://img.shields.io/github/license/nuintun/Buffer?style=flat-square
389
+ [license-url]: https://github.com/nuintun/Buffer/blob/main/LICENSE
package/cjs/binary.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/cjs/encoding.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/cjs/enum.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/cjs/errors.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/cjs/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
@@ -221,7 +221,7 @@ class Buffer {
221
221
  /**
222
222
  * @public
223
223
  * @method writeBoolean
224
- * @description 在缓冲区中写入布尔值,true 写 1,false写 0
224
+ * @description 在缓冲区中写入布尔值,true 写 1,false 写 0
225
225
  * @param {boolean} value 布尔值
226
226
  */
227
227
  writeBoolean(value) {
package/cjs/index.d.cts CHANGED
@@ -107,7 +107,7 @@ export declare class Buffer {
107
107
  /**
108
108
  * @public
109
109
  * @method writeBoolean
110
- * @description 在缓冲区中写入布尔值,true 写 1,false写 0
110
+ * @description 在缓冲区中写入布尔值,true 写 1,false 写 0
111
111
  * @param {boolean} value 布尔值
112
112
  */
113
113
  writeBoolean(value: boolean): void;
package/cjs/utils.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/esm/binary.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/esm/encoding.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/esm/enum.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/esm/errors.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/esm/index.d.ts CHANGED
@@ -107,7 +107,7 @@ export declare class Buffer {
107
107
  /**
108
108
  * @public
109
109
  * @method writeBoolean
110
- * @description 在缓冲区中写入布尔值,true 写 1,false写 0
110
+ * @description 在缓冲区中写入布尔值,true 写 1,false 写 0
111
111
  * @param {boolean} value 布尔值
112
112
  */
113
113
  writeBoolean(value: boolean): void;
package/esm/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
8
8
  */
9
9
 
10
- import { unknownEndianness, readOverflow, offsetInvalid, offsetOverflow, lengthInvalid, readLengthInvalid } from './errors.js';
10
+ import { readOverflow, offsetInvalid, offsetOverflow, lengthInvalid, readLengthInvalid, unknownEndianness } from './errors.js';
11
11
  import { mapping } from './binary.js';
12
12
  import { Endian } from './enum.js';
13
13
  import { encode, decode } from './encoding.js';
@@ -219,7 +219,7 @@ class Buffer {
219
219
  /**
220
220
  * @public
221
221
  * @method writeBoolean
222
- * @description 在缓冲区中写入布尔值,true 写 1,false写 0
222
+ * @description 在缓冲区中写入布尔值,true 写 1,false 写 0
223
223
  * @param {boolean} value 布尔值
224
224
  */
225
225
  writeBoolean(value) {
package/esm/utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @package @nuintun/buffer
3
3
  * @license MIT
4
- * @version 0.8.5
4
+ * @version 0.8.7
5
5
  * @author nuintun <nuintun@qq.com>
6
6
  * @description A buffer tool for javascript.
7
7
  * @see https://github.com/nuintun/Buffer#readme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuintun/buffer",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "A buffer tool for javascript.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -36,11 +36,11 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@rollup/plugin-node-resolve": "^16.0.3",
39
- "@rollup/plugin-typescript": "^12.1.4",
40
- "dts-paths": "^1.1.13",
41
- "prettier": "^3.6.2",
42
- "rimraf": "^6.0.1",
43
- "rollup": "^4.52.4",
39
+ "@rollup/plugin-typescript": "^12.3.0",
40
+ "dts-paths": "^1.1.16",
41
+ "prettier": "^3.8.1",
42
+ "rimraf": "^6.1.2",
43
+ "rollup": "^4.57.1",
44
44
  "typescript": "^5.9.3"
45
45
  },
46
46
  "scripts": {