dl-git-repo-safe 1.0.1 → 1.0.2

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [1.0.2] - 2026-04-01
8
+
9
+ ### Fixed
10
+ - Fixed callback handling in clone mode: `git-clone-safe` returns `null` on success (standard Node.js convention), not `undefined`, causing `.git` folder to not be cleaned up
11
+
7
12
  ## [1.0.1] - 2026-04-01
8
13
 
9
14
  ### Changed
package/index.js CHANGED
@@ -36,7 +36,7 @@ function download (repo, dest, opts, fn) {
36
36
  ...opts
37
37
  }
38
38
  gitclone(url, dest, cloneOptions, function (err) {
39
- if (err === undefined) {
39
+ if (!err) {
40
40
  rm(dest + '/.git')
41
41
  fn()
42
42
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dl-git-repo-safe",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",