@serenityjs/plugins 0.1.0-beta.10 → 0.1.0-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -7
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -135,10 +135,9 @@ var Plugins = class {
135
135
  if (!needModules) {
136
136
  try {
137
137
  (0, import_node_child_process.execSync)("npm install", { cwd: (0, import_node_path.resolve)(file.path, file.name) });
138
- } catch (reason) {
138
+ } catch {
139
139
  this.logger.error(
140
- `Failed to install node_modules for plugin "${file.name}".`,
141
- reason
140
+ `Failed to install node_modules for plugin "${file.name}".`
142
141
  );
143
142
  continue;
144
143
  }
@@ -165,8 +164,8 @@ var Plugins = class {
165
164
  (0, import_node_child_process.execSync)("tsc", { cwd: (0, import_node_path.resolve)(file.path, file.name) });
166
165
  }
167
166
  this.logger.success(`Compiled plugin "${file.name}".`);
168
- } catch (reason) {
169
- this.logger.error(`Failed to compile plugin "${file.name}".`, reason);
167
+ } catch {
168
+ this.logger.error(`Failed to compile plugin "${file.name}".`);
170
169
  continue;
171
170
  }
172
171
  }
@@ -179,8 +178,8 @@ var Plugins = class {
179
178
  new import_logger.Logger(`${file.name}@${pack.version}`, import_logger.LoggerColors.Blue)
180
179
  );
181
180
  this.plugins.set(file.name, { instance, package: pack, plugin });
182
- } catch (reason) {
183
- this.logger.error(`Failed to import plugin "${file.name}".`, reason);
181
+ } catch {
182
+ this.logger.error(`Failed to import plugin "${file.name}".`);
184
183
  continue;
185
184
  }
186
185
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenityjs/plugins",
3
- "version": "0.1.0-beta.10",
3
+ "version": "0.1.0-beta.7",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "repository": "https://github.com/SerenityJS/serenity",
@@ -18,9 +18,9 @@
18
18
  "preset": "@serenityjs/jest-presets/jest/node"
19
19
  },
20
20
  "devDependencies": {
21
- "@serenityjs/eslint-config": "0.1.0-beta.10",
22
- "@serenityjs/jest-presets": "0.1.0-beta.10",
23
- "@serenityjs/typescript-config": "0.1.0-beta.10",
21
+ "@serenityjs/eslint-config": "0.1.0-beta.7",
22
+ "@serenityjs/jest-presets": "0.1.0-beta.7",
23
+ "@serenityjs/typescript-config": "0.1.0-beta.7",
24
24
  "@types/jest": "^29.5.12",
25
25
  "@types/node": "^20.11.24",
26
26
  "jest": "^29.7.0",
@@ -28,6 +28,6 @@
28
28
  "typescript": "^5.4.2"
29
29
  },
30
30
  "dependencies": {
31
- "@serenityjs/logger": "0.1.0-beta.10"
31
+ "@serenityjs/logger": "0.1.0-beta.7"
32
32
  }
33
33
  }