@wordpress/media-utils 5.29.1-next.e256d081a.0 → 5.30.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/CHANGELOG.md +2 -0
- package/package.json +7 -7
- package/src/utils/test/upload-media.ts +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/media-utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.0",
|
|
4
4
|
"description": "WordPress Media Upload Utils.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"types": "build-types",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "7.25.7",
|
|
32
|
-
"@wordpress/api-fetch": "^7.
|
|
33
|
-
"@wordpress/blob": "^4.
|
|
34
|
-
"@wordpress/element": "^6.
|
|
35
|
-
"@wordpress/i18n": "^6.
|
|
36
|
-
"@wordpress/private-apis": "^1.
|
|
32
|
+
"@wordpress/api-fetch": "^7.30.0",
|
|
33
|
+
"@wordpress/blob": "^4.30.0",
|
|
34
|
+
"@wordpress/element": "^6.30.0",
|
|
35
|
+
"@wordpress/i18n": "^6.3.0",
|
|
36
|
+
"@wordpress/private-apis": "^1.30.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c66cb089eed19d4f4956962fa7b4c81abe6dd513"
|
|
42
42
|
}
|
|
@@ -215,7 +215,7 @@ describe( 'uploadMedia', () => {
|
|
|
215
215
|
( uploadToServer as jest.Mock ).mockImplementation( () => {
|
|
216
216
|
throw {
|
|
217
217
|
code: 'fetch_error',
|
|
218
|
-
message: '
|
|
218
|
+
message: 'Could not get a valid response from the server.',
|
|
219
219
|
};
|
|
220
220
|
} );
|
|
221
221
|
|
|
@@ -229,7 +229,7 @@ describe( 'uploadMedia', () => {
|
|
|
229
229
|
expect( onError ).toHaveBeenCalledWith(
|
|
230
230
|
new UploadError( {
|
|
231
231
|
code: 'GENERAL',
|
|
232
|
-
message: '
|
|
232
|
+
message: 'Could not get a valid response from the server.',
|
|
233
233
|
file: imageFile,
|
|
234
234
|
} )
|
|
235
235
|
);
|