@cloudpss/ubjson 0.6.29 → 0.6.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudpss/ubjson",
3
- "version": "0.6.29",
3
+ "version": "0.6.30",
4
4
  "author": "CloudPSS",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -11,7 +11,7 @@ import { Transform } from 'node:stream';
11
11
  * 包装为 promise
12
12
  */
13
13
  async function encodeAsync(value: unknown): Promise<Buffer<ArrayBuffer>> {
14
- return (await buffer(encode(value))) as Buffer<ArrayBuffer>;
14
+ return await buffer(encode(value));
15
15
  }
16
16
 
17
17
  test('encode function', async () => {