@zohodesk/codestandard-validator 1.2.4-exp-9 → 1.3.1

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  const {
4
4
  existsSync,
5
- rm
5
+ rmSync
6
6
  } = require('fs');
7
7
  const {
8
8
  Logger
@@ -20,7 +20,7 @@ function removeFolder(folderPath) {
20
20
  try {
21
21
  let isCommonConfigFolderPresent = existsSync(folderPath);
22
22
  if (isCommonConfigFolderPresent) {
23
- executeSynchronizedCommands(rm, [folderPath, {
23
+ executeSynchronizedCommands(rmSync, [folderPath, {
24
24
  recursive: true,
25
25
  force: true
26
26
  }], 'common linter configuration folder removed successfully', 'Unable to remove the common linter configuration folder', false, false);
package/changeLog.md CHANGED
@@ -48,6 +48,18 @@
48
48
  1. ProjectId api revamp
49
49
  2. code standard analytics bin bind to code standard validator bin
50
50
 
51
- # 1.2.4
51
+ # 1.2.4
52
52
 
53
53
  1. Refactor configuration loading and linting process, update mandatory rules handling, and improve pre-commit hook functionality
54
+
55
+ # 1.3.4
56
+
57
+ 1. Fix typo in environment variable name: `MANDARORY_RULES` corrected to `MANDATORY_RULES`
58
+ 2. Fix typo in Config.js: `intialize` corrected to `initialize` for post-install execution
59
+ 3. Remove unused `jest.setup.js` placeholder file
60
+ 4. Version bump from `1.2.4-exp-7` to `1.2.4-exp-9`
61
+
62
+ # 1.3.1 - Bug Fixes
63
+
64
+ 1. Replace asynchronous `fs.rm` with synchronous `fs.rmSync` in folder cleanup utility to align with synchronized command execution.
65
+ 2. Update package version from `1.3.0` to `1.3.1`.
@@ -1,3 +1,3 @@
1
- const MandatoryListRules = JSON.parse(process.env.MANDARORY_RULES || '[]')
1
+ const MandatoryListRules = JSON.parse(process.env.MANDATORY_RULES || '[]')
2
2
 
3
3
  module.exports = MandatoryListRules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/codestandard-validator",
3
- "version": "1.2.4-exp-9",
3
+ "version": "1.3.1",
4
4
  "description": "library to enforce code standard using eslint",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/jest.setup.js DELETED
@@ -1 +0,0 @@
1
- // Intentionally empty. Tests use local mocks for dependencies like Logger, fs, etc.