zetcert 0.1.2 → 0.1.3

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/zetcert.cjs +2 -2
  2. package/package.json +1 -1
package/dist/zetcert.cjs CHANGED
@@ -32159,7 +32159,7 @@ function isRoot() {
32159
32159
  }
32160
32160
 
32161
32161
  // package.json
32162
- var version = "0.1.2";
32162
+ var version = "0.1.3";
32163
32163
 
32164
32164
  // src/version.ts
32165
32165
  var VERSION = version;
@@ -32309,7 +32309,7 @@ function copyFileAtomic(from, to, mode) {
32309
32309
  let file = onDisk(to);
32310
32310
  (0, import_node_fs.mkdirSync)(import_node_path2.default.dirname(file), { recursive: !0 });
32311
32311
  let tmp = `${file}.zetcert-${process.pid}.tmp`;
32312
- (0, import_node_fs.copyFileSync)(onDisk(resolveLinks(from)), tmp), (0, import_node_fs.chmodSync)(tmp, mode), (0, import_node_fs.renameSync)(tmp, file);
32312
+ (0, import_node_fs.copyFileSync)(onDisk(resolveLinks(from)), tmp), (0, import_node_fs.chownSync)(tmp, process.geteuid?.() ?? 0, process.getegid?.() ?? 0), (0, import_node_fs.chmodSync)(tmp, mode), (0, import_node_fs.renameSync)(tmp, file);
32313
32313
  }
32314
32314
 
32315
32315
  // src/certbot/configobj.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zetcert",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Manages the Let's Encrypt certificates of an nginx server, on top of certbot",
5
5
  "license": "MIT",
6
6
  "type": "module",