@wordpress/api-fetch 5.2.7-next.33ec3857e2.0 → 5.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/api-fetch",
3
- "version": "5.2.7-next.33ec3857e2.0",
3
+ "version": "5.2.7",
4
4
  "description": "Utility to make WordPress REST API requests.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -28,11 +28,11 @@
28
28
  "types": "build-types",
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.16.0",
31
- "@wordpress/i18n": "^4.2.5-next.33ec3857e2.0",
32
- "@wordpress/url": "^3.3.2-next.33ec3857e2.0"
31
+ "@wordpress/i18n": "^4.2.4",
32
+ "@wordpress/url": "^3.3.2"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "51c7917ea7fac72953702f24d6daac87d99e7617"
37
+ "gitHead": "3cf1fca7ff79c72899d55df13b4339a4d8099871"
38
38
  }
package/src/test/index.js CHANGED
@@ -127,7 +127,6 @@ describe( 'apiFetch', () => {
127
127
  );
128
128
 
129
129
  return apiFetch( { path: '/random' } ).catch( ( body ) => {
130
- // eslint-disable-next-line jest/no-conditional-expect
131
130
  expect( body ).toEqual( {
132
131
  code: 'bad_request',
133
132
  message: 'Bad Request',
@@ -143,7 +142,6 @@ describe( 'apiFetch', () => {
143
142
  );
144
143
 
145
144
  return apiFetch( { path: '/random' } ).catch( ( body ) => {
146
- // eslint-disable-next-line jest/no-conditional-expect
147
145
  expect( body ).toEqual( {
148
146
  code: 'invalid_json',
149
147
  message: 'The response is not a valid JSON response.',
@@ -162,7 +160,6 @@ describe( 'apiFetch', () => {
162
160
  );
163
161
 
164
162
  return apiFetch( { path: '/random' } ).catch( ( body ) => {
165
- // eslint-disable-next-line jest/no-conditional-expect
166
163
  expect( body ).toEqual( {
167
164
  code: 'invalid_json',
168
165
  message: 'The response is not a valid JSON response.',
@@ -174,7 +171,6 @@ describe( 'apiFetch', () => {
174
171
  window.fetch.mockReturnValue( Promise.reject() );
175
172
 
176
173
  return apiFetch( { path: '/random' } ).catch( ( body ) => {
177
- // eslint-disable-next-line jest/no-conditional-expect
178
174
  expect( body ).toEqual( {
179
175
  code: 'fetch_error',
180
176
  message: 'You are probably offline.',
@@ -217,7 +213,6 @@ describe( 'apiFetch', () => {
217
213
  );
218
214
 
219
215
  return apiFetch( { path: '/random' } ).catch( ( body ) => {
220
- // eslint-disable-next-line jest/no-conditional-expect
221
216
  expect( body ).toEqual( null );
222
217
  } );
223
218
  } );
@@ -247,7 +242,6 @@ describe( 'apiFetch', () => {
247
242
 
248
243
  return apiFetch( { path: '/random', parse: false } ).catch(
249
244
  ( response ) => {
250
- // eslint-disable-next-line jest/no-conditional-expect
251
245
  expect( response ).toEqual( {
252
246
  status: 400,
253
247
  } );