matterbridge 3.0.3-dev-20250519-acb2774 → 3.0.3-dev-20250519-6aad062

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.
@@ -1931,23 +1931,21 @@ export class Matterbridge extends EventEmitter {
1931
1931
  async createDirectory(path, name) {
1932
1932
  try {
1933
1933
  await fs.access(path);
1934
+ this.log.debug(`Directory ${name} already exists at path: ${path}`);
1934
1935
  }
1935
1936
  catch (err) {
1936
- if (err instanceof Error) {
1937
- const nodeErr = err;
1938
- if (nodeErr.code === 'ENOENT') {
1939
- try {
1940
- await fs.mkdir(path, { recursive: true });
1941
- this.log.info(`Created ${name}: ${path}`);
1942
- }
1943
- catch (err) {
1944
- this.log.error(`Error creating dir ${name} path ${path}: ${err}`);
1945
- }
1937
+ if (err.code === 'ENOENT') {
1938
+ try {
1939
+ await fs.mkdir(path, { recursive: true });
1940
+ this.log.info(`Created ${name}: ${path}`);
1946
1941
  }
1947
- else {
1948
- this.log.error(`Error accessing dir ${name} path ${path}: ${err}`);
1942
+ catch (err) {
1943
+ this.log.error(`Error creating dir ${name} path ${path}: ${err}`);
1949
1944
  }
1950
1945
  }
1946
+ else {
1947
+ this.log.error(`Error accessing dir ${name} path ${path}: ${err}`);
1948
+ }
1951
1949
  }
1952
1950
  }
1953
1951
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "3.0.3-dev-20250519-acb2774",
3
+ "version": "3.0.3-dev-20250519-6aad062",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge",
9
- "version": "3.0.3-dev-20250519-acb2774",
9
+ "version": "3.0.3-dev-20250519-6aad062",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@matter/main": "0.13.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "3.0.3-dev-20250519-acb2774",
3
+ "version": "3.0.3-dev-20250519-6aad062",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",