bdy 1.22.2-dev → 1.22.4-dev

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.22.2-dev",
4
+ "version": "1.22.4-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -142,8 +142,14 @@ class AgentSystem {
142
142
  (0, node_fs_1.writeFile)(p, c, { encoding: 'utf-8' }, (err) => {
143
143
  if (err)
144
144
  reject(err);
145
- else
146
- resolve();
145
+ else {
146
+ (0, node_fs_1.chmod)(p, 0o644, (err) => {
147
+ if (err)
148
+ reject(err);
149
+ else
150
+ resolve();
151
+ });
152
+ }
147
153
  });
148
154
  });
149
155
  }
@@ -345,7 +351,12 @@ class AgentSystem {
345
351
  }), {
346
352
  encoding: 'utf-8',
347
353
  });
348
- (0, node_fs_1.chmodSync)(this.getNewAgentConfigPath(), 0o666);
354
+ try {
355
+ (0, node_fs_1.chmodSync)(this.getNewAgentConfigPath(), 0o666);
356
+ }
357
+ catch {
358
+ // do nothing, file can already have proper mode
359
+ }
349
360
  return true;
350
361
  }
351
362
  catch (err) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.22.2-dev",
4
+ "version": "1.22.4-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {