@wordpress/blob 4.55.0 → 4.55.1-next.v.202609171837.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 +12 -12
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -20,11 +20,11 @@ Create a blob URL from a file.
|
|
|
20
20
|
|
|
21
21
|
_Parameters_
|
|
22
22
|
|
|
23
|
-
-
|
|
23
|
+
- _file_ `File`: The file to create a blob URL for.
|
|
24
24
|
|
|
25
25
|
_Returns_
|
|
26
26
|
|
|
27
|
-
-
|
|
27
|
+
- `string`: The blob URL.
|
|
28
28
|
|
|
29
29
|
### downloadBlob
|
|
30
30
|
|
|
@@ -47,9 +47,9 @@ downloadBlob( filename, fileContent, 'application/json' );
|
|
|
47
47
|
|
|
48
48
|
_Parameters_
|
|
49
49
|
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
50
|
+
- _filename_ `string`: File name.
|
|
51
|
+
- _content_ `BlobPart`: File content (BufferSource | Blob | string).
|
|
52
|
+
- _contentType_ `string`: (Optional) File mime type. Default is `''`.
|
|
53
53
|
|
|
54
54
|
### getBlobByURL
|
|
55
55
|
|
|
@@ -57,11 +57,11 @@ Retrieve a file based on a blob URL. The file must have been created by `createB
|
|
|
57
57
|
|
|
58
58
|
_Parameters_
|
|
59
59
|
|
|
60
|
-
-
|
|
60
|
+
- _url_ `string`: The blob URL.
|
|
61
61
|
|
|
62
62
|
_Returns_
|
|
63
63
|
|
|
64
|
-
-
|
|
64
|
+
- `File | undefined`: The file for the blob URL.
|
|
65
65
|
|
|
66
66
|
### getBlobTypeByURL
|
|
67
67
|
|
|
@@ -69,11 +69,11 @@ Retrieve a blob type based on URL. The file must have been created by `createBlo
|
|
|
69
69
|
|
|
70
70
|
_Parameters_
|
|
71
71
|
|
|
72
|
-
-
|
|
72
|
+
- _url_ `string`: The blob URL.
|
|
73
73
|
|
|
74
74
|
_Returns_
|
|
75
75
|
|
|
76
|
-
-
|
|
76
|
+
- `string | undefined`: The blob type.
|
|
77
77
|
|
|
78
78
|
### isBlobURL
|
|
79
79
|
|
|
@@ -81,11 +81,11 @@ Check whether a url is a blob url.
|
|
|
81
81
|
|
|
82
82
|
_Parameters_
|
|
83
83
|
|
|
84
|
-
-
|
|
84
|
+
- _url_ `string | undefined`: The URL.
|
|
85
85
|
|
|
86
86
|
_Returns_
|
|
87
87
|
|
|
88
|
-
-
|
|
88
|
+
- `boolean`: Is the url a blob url?
|
|
89
89
|
|
|
90
90
|
### revokeBlobURL
|
|
91
91
|
|
|
@@ -93,7 +93,7 @@ Remove the resource and file cache from memory.
|
|
|
93
93
|
|
|
94
94
|
_Parameters_
|
|
95
95
|
|
|
96
|
-
-
|
|
96
|
+
- _url_ `string`: The blob URL.
|
|
97
97
|
|
|
98
98
|
<!-- END TOKEN(Autogenerated API docs) -->
|
|
99
99
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/blob",
|
|
3
|
-
"version": "4.55.0",
|
|
3
|
+
"version": "4.55.1-next.v.202609171837.0",
|
|
4
4
|
"description": "Blob utilities for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -43,12 +43,11 @@
|
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@testing-library/jest-dom": "^7.0.1",
|
|
46
|
-
"@types/jest": "^30.0.0",
|
|
47
46
|
"@types/node": "^24.13.3",
|
|
48
47
|
"vitest": "^5.0.0"
|
|
49
48
|
},
|
|
50
49
|
"publishConfig": {
|
|
51
50
|
"access": "public"
|
|
52
51
|
},
|
|
53
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "7fc9f6676debc888d2f071d17cb71837040d4b48"
|
|
54
53
|
}
|