rmapi-js 8.4.0 → 9.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.
@@ -0,0 +1 @@
1
+ export declare function concatArrays(arrays: Uint8Array[]): Uint8Array;
package/dist/utils.js ADDED
@@ -0,0 +1,10 @@
1
+ export function concatArrays(arrays) {
2
+ const totalLength = arrays.reduce((acc, arr) => acc + arr.length, 0);
3
+ const result = new Uint8Array(totalLength);
4
+ let offset = 0;
5
+ for (const arr of arrays) {
6
+ result.set(arr, offset);
7
+ offset += arr.length;
8
+ }
9
+ return result;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rmapi-js",
3
- "version": "8.4.0",
3
+ "version": "9.0.0",
4
4
  "description": "JavaScript implementation of the reMarkable 1.5 api",
5
5
  "repository": "git@github.com:erikbrinkman/rmapi-js.git",
6
6
  "author": "Erik Brinkman <erik.brinkman@gmail.com>",
@@ -18,33 +18,25 @@
18
18
  ],
19
19
  "scripts": {
20
20
  "doc": "typedoc",
21
- "fmt": "prettier --cache --write 'src/*.ts' '*.{js,json}'",
22
- "lint": "tsc && eslint --cache 'src/*.ts' && typedoc --emit none",
21
+ "fmt": "biome format --write",
22
+ "lint": "tsc && biome check && typedoc --emit none",
23
23
  "export": "tsc -p tsconfig.build.json && bun build src/index.ts --minify --outfile dist/rmapi-js.esm.min.js",
24
24
  "prepack": "bun lint && bun test --coverage && bun export"
25
25
  },
26
26
  "dependencies": {
27
- "base64-js": "^1.5.1",
27
+ "core-js": "^3.47.0",
28
28
  "crc-32": "^1.2.2",
29
29
  "json-stable-stringify": "^1.3.0",
30
30
  "jszip": "^3.10.1",
31
31
  "jtd-ts": "^0.2.1",
32
- "uuid": "^11.1.0"
32
+ "uuid": "^13.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@eslint/js": "^9.33.0",
36
- "@types/bun": "^1.2.20",
35
+ "@biomejs/biome": "^2.3.8",
36
+ "@types/bun": "^1.3.4",
37
37
  "@types/json-stable-stringify": "^1.2.0",
38
- "@types/uuid": "^10.0.0",
39
- "@typescript-eslint/eslint-plugin": "^8.39.1",
40
- "eslint": "^9.33.0",
41
- "eslint-config-prettier": "^10.1.8",
42
- "eslint-plugin-spellcheck": "^0.0.20",
43
- "eslint-plugin-tsdoc": "^0.4.0",
44
- "prettier": "^3.6.2",
45
- "prettier-plugin-organize-imports": "^4.2.0",
46
- "typedoc": "^0.28.10",
47
- "typescript": "~5.9.2",
48
- "typescript-eslint": "^8.39.1"
38
+ "@types/uuid": "^11.0.0",
39
+ "typedoc": "^0.28.15",
40
+ "typescript": "~5.9.3"
49
41
  }
50
42
  }