isomorphic-git 1.44.15 → 1.44.17

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,28 +1,36 @@
1
1
  /*!
2
- * The buffer module from node.js, for the browser.
2
+ * The POSIX core below - `assertPath`, `normalizeStringPosix` and the body of
3
+ * `normalize` - comes from path-browserify, which extracted it from Node.js.
4
+ * Reformatted to this project's style (`const`/`let`, no semicolons); the
5
+ * algorithm is unchanged.
3
6
  *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */
7
-
8
- /*!
9
- * This code for `path.join` is directly copied from @zenfs/core/path for bundle size improvements.
10
- * SPDX-License-Identifier: LGPL-3.0-or-later
11
- * Copyright (c) James Prevett and other ZenFS contributors.
7
+ * SPDX-License-Identifier: MIT
8
+ * Copyright (c) 2013 James Halliday
9
+ * Copyright Joyent, Inc. and other Node contributors.
10
+ *
11
+ * @see https://github.com/browserify/path-browserify
12
12
  *
13
- * Windows support added:
13
+ * The Windows handling is this project's own, added in #2302. path-browserify
14
+ * is the POSIX part of `path` only, so `normalize` and `join` are wrapped with:
14
15
  * - Backslashes are normalised to forward slashes before processing.
15
16
  * - Drive-letter prefixes (e.g. "C:") are detected and preserved through
16
17
  * normalisation, so absolute Windows paths are handled correctly.
17
- * - An absolute argument passed to join() resets the accumulated path,
18
+ * - A drive-letter argument passed to join() resets the accumulated path,
18
19
  * matching Node behaviour and handling worktree gitdir paths properly.
19
20
  *
20
21
  * Limitation: UNC paths (e.g. \\server\share) are not supported. The leading
21
22
  * backslashes are normalised to forward slashes and then collapsed by
22
- * normalizeString, losing the UNC root. Git on Windows works with
23
+ * normalizeStringPosix, losing the UNC root. Git on Windows works with
23
24
  * drive-letter paths, so this is not expected to be a practical issue.
24
25
  */
25
26
 
27
+ /*!
28
+ * The buffer module from node.js, for the browser.
29
+ *
30
+ * @author Feross Aboukhadijeh <https://feross.org>
31
+ * @license MIT
32
+ */
33
+
26
34
  /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
27
35
 
28
36
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */