@wordpress/preferences-persistence 2.56.0 → 2.57.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
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/preferences-persistence",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.57.0",
|
|
4
4
|
"description": "Persistence utilities for `wordpress/preferences`.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"wpScript": true,
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@wordpress/api-fetch": "^7.
|
|
45
|
+
"@wordpress/api-fetch": "^7.57.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"vitest": "^5.0.
|
|
48
|
+
"vitest": "^5.0.3"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
|
|
54
54
|
}
|
|
@@ -112,8 +112,7 @@ describe( 'debounceAsync', () => {
|
|
|
112
112
|
await expect( debounced() ).rejects.toBe( expectedError );
|
|
113
113
|
|
|
114
114
|
// Test chained .catch().
|
|
115
|
-
await debounced().catch( ( error ) =>
|
|
116
|
-
|
|
117
|
-
} );
|
|
115
|
+
const caughtError = await debounced().catch( ( error ) => error );
|
|
116
|
+
expect( caughtError ).toBe( expectedError );
|
|
118
117
|
} );
|
|
119
118
|
} );
|