blossom-client-sdk 1.1.0 → 1.1.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/lib/client.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  export type EventTemplate = {
3
2
  created_at: number;
4
3
  kind: number;
package/lib/client.js CHANGED
@@ -39,7 +39,7 @@ export class BlossomClient {
39
39
  }
40
40
  else {
41
41
  // nodejs Buffer
42
- buffer = file.buffer;
42
+ buffer = file;
43
43
  }
44
44
  let hash;
45
45
  if (crypto.subtle) {
package/package.json CHANGED
@@ -1,18 +1,12 @@
1
1
  {
2
2
  "name": "blossom-client-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A simple client for manage blobs on blossom servers",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
7
7
  "typings": "./lib/index.d.ts",
8
8
  "author": "hzrd149",
9
9
  "license": "MIT",
10
- "scripts": {
11
- "build": "tsc",
12
- "prepublish": "npm run build",
13
- "format": "prettier -w .",
14
- "docs": "typedoc src/index.ts"
15
- },
16
10
  "files": [
17
11
  "lib"
18
12
  ],
@@ -50,8 +44,15 @@
50
44
  },
51
45
  "devDependencies": {
52
46
  "@changesets/cli": "^2.27.1",
47
+ "@types/node": "^22.5.5",
53
48
  "prettier": "^3.3.3",
54
49
  "typedoc": "^0.25.12",
55
50
  "typescript": "^5.3.3"
51
+ },
52
+ "scripts": {
53
+ "build": "tsc",
54
+ "prepublish": "npm run build",
55
+ "format": "prettier -w .",
56
+ "docs": "typedoc src/index.ts"
56
57
  }
57
- }
58
+ }
package/CHANGELOG.md DELETED
@@ -1,62 +0,0 @@
1
- # blossom-client-sdk
2
-
3
- ## 1.1.0
4
-
5
- ### Minor Changes
6
-
7
- - Add support for multiple hashes when creating auth events
8
-
9
- ### Patch Changes
10
-
11
- - Allow auth to be passed into multiServerUpload
12
-
13
- ## 1.0.1
14
-
15
- ### Patch Changes
16
-
17
- - Add upload exports to package.json
18
-
19
- ## 1.0.0
20
-
21
- ### Major Changes
22
-
23
- - 8350d95: Remove dependency on cross-fetch and require NodeJS >= 18 for native `fetch` API
24
-
25
- ### Minor Changes
26
-
27
- - 383a13b: Add `multiServerUpload` method
28
-
29
- ## 0.9.1
30
-
31
- ### Patch Changes
32
-
33
- - Add support for nodejs Buffer type
34
-
35
- ## 0.9.0
36
-
37
- ### Minor Changes
38
-
39
- - 1a5342b: Add mirror blob methods
40
- - 24f4e57: add "x" or "server" tag on get auth
41
-
42
- ## 0.8.0
43
-
44
- ### Minor Changes
45
-
46
- - Add `handleBrokenImages` method for repairing any broken images in an app
47
-
48
- ## 0.7.0
49
-
50
- ### Minor Changes
51
-
52
- - Include "x" tag with sha256 in upload auth
53
-
54
- ### Patch Changes
55
-
56
- - Allow URL class for server
57
-
58
- ## 0.7.0
59
-
60
- ### Minor Changes
61
-
62
- - e2e93f5: Add `handleImageFallbacks` method