@plaudit/webpack-extensions 3.9.4 → 3.9.5
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 +4 -0
- package/dist/utils/pseduo-semaphore.js +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.9.5] - 2026-06-11
|
|
9
|
+
### Added
|
|
10
|
+
- Text to the `Error` instances thrown in `pseudo-semaphore.ts`
|
|
11
|
+
|
|
8
12
|
## [3.9.4] - 2026-06-10
|
|
9
13
|
### Fixed
|
|
10
14
|
- Libraries externalizing in a way that does not account for the variable potentially being undeclared
|
|
@@ -11,7 +11,7 @@ class PseudoSemaphore {
|
|
|
11
11
|
}
|
|
12
12
|
register(id) {
|
|
13
13
|
if (this.flags.has(id)) {
|
|
14
|
-
throw new Error();
|
|
14
|
+
throw new Error(`A semaphore with an id of "${id}" already exists`);
|
|
15
15
|
}
|
|
16
16
|
this.initializeFlag(id);
|
|
17
17
|
this.resolve(id, undefined);
|
|
@@ -45,10 +45,10 @@ class PseudoSemaphore {
|
|
|
45
45
|
}
|
|
46
46
|
getFlag(id) {
|
|
47
47
|
const flag = this.flags.get(id);
|
|
48
|
-
if (flag) {
|
|
49
|
-
|
|
48
|
+
if (flag === undefined) {
|
|
49
|
+
throw new Error(`A semaphore with an id of "${id}" does not exist`);
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
return flag;
|
|
52
52
|
}
|
|
53
53
|
initializeFlag(id) {
|
|
54
54
|
const controller = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaudit/webpack-extensions",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@plaudit/gutenberg-api-extensions": "^2.97.1",
|
|
32
32
|
"@types/browser-sync-webpack-plugin": "^2.2.5",
|
|
33
33
|
"@types/jsdom": "^28.0.3",
|
|
34
|
-
"@types/node": "^25.9.
|
|
34
|
+
"@types/node": "^25.9.3",
|
|
35
35
|
"@types/postcss-functions": "^4.0.4",
|
|
36
36
|
"@types/postcss-import": "^14.0.3",
|
|
37
37
|
"@types/tapable": "^2.3.0",
|