@guanghechen/byte 1.0.3 → 2.0.0

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
@@ -1,6 +1,6 @@
1
1
  <header>
2
2
  <h1 align="center">
3
- <a href="https://github.com/guanghechen/sora/tree/@guanghechen/byte@1.0.3/packages/byte#readme">@guanghechen/byte</a>
3
+ <a href="https://github.com/guanghechen/sora/tree/@guanghechen/byte@2.0.0/packages/byte#readme">@guanghechen/byte</a>
4
4
  </h1>
5
5
  <div align="center">
6
6
  <a href="https://www.npmjs.com/package/@guanghechen/byte">
@@ -68,4 +68,4 @@ Utility functions for bytes (Uint8Array).
68
68
  ## Usage
69
69
 
70
70
  [homepage]:
71
- https://github.com/guanghechen/sora/tree/@guanghechen/byte@1.0.3/packages/byte#readme
71
+ https://github.com/guanghechen/sora/tree/@guanghechen/byte@2.0.0/packages/byte#readme
@@ -50,4 +50,5 @@ declare function mergeBytes(bytesList: ReadonlyArray<Uint8Array>): Uint8Array;
50
50
  */
51
51
  declare function randomBytes(size: number): Uint8Array;
52
52
 
53
- export { type IByteEncoding, areSameBytes, base64Text2bytes, bytes2base64Text, bytes2hexText, bytes2text, bytes2utf8Text, destroyBytes, destroyBytesList, hexText2bytes, mergeBytes, randomBytes, text2bytes, utf8Text2bytes, validateBase64Text };
53
+ export { areSameBytes, base64Text2bytes, bytes2base64Text, bytes2hexText, bytes2text, bytes2utf8Text, destroyBytes, destroyBytesList, hexText2bytes, mergeBytes, randomBytes, text2bytes, utf8Text2bytes, validateBase64Text };
54
+ export type { IByteEncoding };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanghechen/byte",
3
- "version": "1.0.3",
3
+ "version": "2.0.0",
4
4
  "description": "Utility functions for bytes (Uint8Array).",
5
5
  "author": {
6
6
  "name": "guanghechen",
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/guanghechen/sora/tree/@guanghechen/byte@1.0.2",
11
+ "url": "https://github.com/guanghechen/sora/tree/@guanghechen/byte@1.0.3",
12
12
  "directory": "packages/byte"
13
13
  },
14
- "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/byte@1.0.2/packages/byte#readme",
14
+ "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/byte@1.0.3/packages/byte#readme",
15
15
  "keywords": [
16
16
  "Uint8Array"
17
17
  ],
@@ -29,6 +29,13 @@
29
29
  "module": "./lib/esm/index.mjs",
30
30
  "types": "./lib/types/index.d.ts",
31
31
  "license": "MIT",
32
+ "scripts": {
33
+ "build": "rollup -c ../../rollup.config.mjs",
34
+ "clean": "rimraf lib",
35
+ "test": "vitest run --config ../../vitest.config.ts",
36
+ "test:coverage": "vitest run --config ../../vitest.config.ts --coverage",
37
+ "test:update": "vitest run --config ../../vitest.config.ts -u"
38
+ },
32
39
  "files": [
33
40
  "lib/",
34
41
  "!lib/**/*.map",
@@ -37,5 +44,5 @@
37
44
  "LICENSE",
38
45
  "README.md"
39
46
  ],
40
- "gitHead": "c46c7cc64c02c61047fbc7dff2ce8f6b21d4da2c"
47
+ "gitHead": "12990a720b31d50d217e2e17a6191256dc94eda6"
41
48
  }