isomorphic-git 1.33.1 → 1.33.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.
- package/README.md +2 -0
- package/browser-tests.json +4 -7
- package/index.cjs +13 -8
- package/index.js +13 -8
- package/index.umd.min.js +4 -4
- package/index.umd.min.js.map +1 -1
- package/managers/index.umd.min.js +4 -4
- package/managers/index.umd.min.js.map +1 -1
- package/models/index.umd.min.js +2 -2
- package/models/index.umd.min.js.map +1 -1
- package/package.json +3 -1
- package/size_report.html +1 -1
package/README.md
CHANGED
|
@@ -391,6 +391,8 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
|
|
|
391
391
|
<td align="center"><a href="https://github.com/ARBhosale"><img src="https://avatars.githubusercontent.com/u/26981417?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Aniket Bhosale</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ARBhosale" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ARBhosale" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ARBhosale" title="Tests">⚠️</a></td>
|
|
392
392
|
<td align="center"><a href="https://github.com/gnillev"><img src="https://avatars.githubusercontent.com/u/8965094?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Mathias Nisted Velling</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gnillev" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gnillev" title="Tests">⚠️</a></td>
|
|
393
393
|
<td align="center"><a href="https://github.com/acandoo"><img src="https://avatars.githubusercontent.com/u/117209328?v=4?s=60" width="60px;" alt=""/><br /><sub><b>acandoo</b></sub></a><br /><a href="#platform-acandoo" title="Packaging/porting to new platform">📦</a> <a href="#userTesting-acandoo" title="User Testing">📓</a></td>
|
|
394
|
+
<td align="center"><a href="https://github.com/bekatan"><img src="https://avatars.githubusercontent.com/u/19550476?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Bekatan Satyev</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=bekatan" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=bekatan" title="Tests">⚠️</a></td>
|
|
395
|
+
<td align="center"><a href="https://github.com/hemanthkini"><img src="https://avatars.githubusercontent.com/u/3934055?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Hemanth Kini</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hemanthkini" title="Code">💻</a></td>
|
|
394
396
|
</tr>
|
|
395
397
|
</table>
|
|
396
398
|
|
package/browser-tests.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
[
|
|
2
|
-
"X Chrome Headless 79.0.3945.0 (Linux x86_64)",
|
|
3
|
-
"Firefox 141.0 (Linux x86_64)",
|
|
4
|
-
"X Chrome 137.0.0.0 (Android 10)",
|
|
5
|
-
"Edge 79.0.309.65 (Windows 10)",
|
|
6
|
-
"Safari 14.1 (Mac OS 10.15.7)",
|
|
7
|
-
"Mobile Safari 14.0 (iOS 14.0.1)",
|
|
8
2
|
"Chrome Headless 79.0.3945.0 (Linux x86_64)",
|
|
3
|
+
"Firefox 143.0 (Linux x86_64)",
|
|
9
4
|
"Chrome 137.0.0.0 (Android 10)",
|
|
10
|
-
"
|
|
5
|
+
"Mobile Safari 14.0 (iOS 14.0.1)",
|
|
6
|
+
"Edge 79.0.309.65 (Windows 10)",
|
|
7
|
+
"Safari 14.1 (Mac OS 10.15.7)"
|
|
11
8
|
]
|
package/index.cjs
CHANGED
|
@@ -12,6 +12,7 @@ var pako = _interopDefault(require('pako'));
|
|
|
12
12
|
var pify = _interopDefault(require('pify'));
|
|
13
13
|
var ignore = _interopDefault(require('ignore'));
|
|
14
14
|
var cleanGitRef = _interopDefault(require('clean-git-ref'));
|
|
15
|
+
var validRef = _interopDefault(require('is-git-ref-name-valid'));
|
|
15
16
|
var diff3Merge = _interopDefault(require('diff3'));
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -6143,7 +6144,7 @@ async function addNote({
|
|
|
6143
6144
|
*
|
|
6144
6145
|
*/
|
|
6145
6146
|
async function _addRemote({ fs, gitdir, remote, url, force }) {
|
|
6146
|
-
if (remote
|
|
6147
|
+
if (!validRef(remote, true)) {
|
|
6147
6148
|
throw new InvalidRefNameError(remote, cleanGitRef.clean(remote))
|
|
6148
6149
|
}
|
|
6149
6150
|
const config = await GitConfigManager.get({ fs, gitdir });
|
|
@@ -6415,7 +6416,7 @@ async function _branch({
|
|
|
6415
6416
|
checkout = false,
|
|
6416
6417
|
force = false,
|
|
6417
6418
|
}) {
|
|
6418
|
-
if (ref
|
|
6419
|
+
if (!validRef(ref, true)) {
|
|
6419
6420
|
throw new InvalidRefNameError(ref, cleanGitRef.clean(ref))
|
|
6420
6421
|
}
|
|
6421
6422
|
|
|
@@ -8066,8 +8067,8 @@ function filterCapabilities(server, client) {
|
|
|
8066
8067
|
|
|
8067
8068
|
const pkg = {
|
|
8068
8069
|
name: 'isomorphic-git',
|
|
8069
|
-
version: '1.33.
|
|
8070
|
-
agent: 'git/isomorphic-git@1.33.
|
|
8070
|
+
version: '1.33.3',
|
|
8071
|
+
agent: 'git/isomorphic-git@1.33.3',
|
|
8071
8072
|
};
|
|
8072
8073
|
|
|
8073
8074
|
class FIFO {
|
|
@@ -14150,11 +14151,11 @@ async function _renameBranch({
|
|
|
14150
14151
|
ref,
|
|
14151
14152
|
checkout = false,
|
|
14152
14153
|
}) {
|
|
14153
|
-
if (ref
|
|
14154
|
+
if (!validRef(ref, true)) {
|
|
14154
14155
|
throw new InvalidRefNameError(ref, cleanGitRef.clean(ref))
|
|
14155
14156
|
}
|
|
14156
14157
|
|
|
14157
|
-
if (oldref
|
|
14158
|
+
if (!validRef(oldref, true)) {
|
|
14158
14159
|
throw new InvalidRefNameError(oldref, cleanGitRef.clean(oldref))
|
|
14159
14160
|
}
|
|
14160
14161
|
|
|
@@ -15178,7 +15179,11 @@ async function _stashDrop({ fs, dir, gitdir, refIdx = 0 }) {
|
|
|
15178
15179
|
const stashReflogPath = stashMgr.refLogsStashPath;
|
|
15179
15180
|
await acquireLock$1({ reflogEntries, stashReflogPath, stashMgr }, async () => {
|
|
15180
15181
|
if (reflogEntries.length) {
|
|
15181
|
-
await fs.write(
|
|
15182
|
+
await fs.write(
|
|
15183
|
+
stashReflogPath,
|
|
15184
|
+
reflogEntries.reverse().join('\n') + '\n',
|
|
15185
|
+
'utf8'
|
|
15186
|
+
);
|
|
15182
15187
|
const lastStashCommit = reflogEntries[reflogEntries.length - 1].split(
|
|
15183
15188
|
' '
|
|
15184
15189
|
)[1];
|
|
@@ -16524,7 +16529,7 @@ async function writeRef({
|
|
|
16524
16529
|
|
|
16525
16530
|
const fs = new FileSystem(_fs);
|
|
16526
16531
|
|
|
16527
|
-
if (ref
|
|
16532
|
+
if (!validRef(ref, true)) {
|
|
16528
16533
|
throw new InvalidRefNameError(ref, cleanGitRef.clean(ref))
|
|
16529
16534
|
}
|
|
16530
16535
|
|
package/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import pako from 'pako';
|
|
|
6
6
|
import pify from 'pify';
|
|
7
7
|
import ignore from 'ignore';
|
|
8
8
|
import cleanGitRef from 'clean-git-ref';
|
|
9
|
+
import validRef from 'is-git-ref-name-valid';
|
|
9
10
|
import diff3Merge from 'diff3';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -6137,7 +6138,7 @@ async function addNote({
|
|
|
6137
6138
|
*
|
|
6138
6139
|
*/
|
|
6139
6140
|
async function _addRemote({ fs, gitdir, remote, url, force }) {
|
|
6140
|
-
if (remote
|
|
6141
|
+
if (!validRef(remote, true)) {
|
|
6141
6142
|
throw new InvalidRefNameError(remote, cleanGitRef.clean(remote))
|
|
6142
6143
|
}
|
|
6143
6144
|
const config = await GitConfigManager.get({ fs, gitdir });
|
|
@@ -6409,7 +6410,7 @@ async function _branch({
|
|
|
6409
6410
|
checkout = false,
|
|
6410
6411
|
force = false,
|
|
6411
6412
|
}) {
|
|
6412
|
-
if (ref
|
|
6413
|
+
if (!validRef(ref, true)) {
|
|
6413
6414
|
throw new InvalidRefNameError(ref, cleanGitRef.clean(ref))
|
|
6414
6415
|
}
|
|
6415
6416
|
|
|
@@ -8060,8 +8061,8 @@ function filterCapabilities(server, client) {
|
|
|
8060
8061
|
|
|
8061
8062
|
const pkg = {
|
|
8062
8063
|
name: 'isomorphic-git',
|
|
8063
|
-
version: '1.33.
|
|
8064
|
-
agent: 'git/isomorphic-git@1.33.
|
|
8064
|
+
version: '1.33.3',
|
|
8065
|
+
agent: 'git/isomorphic-git@1.33.3',
|
|
8065
8066
|
};
|
|
8066
8067
|
|
|
8067
8068
|
class FIFO {
|
|
@@ -14144,11 +14145,11 @@ async function _renameBranch({
|
|
|
14144
14145
|
ref,
|
|
14145
14146
|
checkout = false,
|
|
14146
14147
|
}) {
|
|
14147
|
-
if (ref
|
|
14148
|
+
if (!validRef(ref, true)) {
|
|
14148
14149
|
throw new InvalidRefNameError(ref, cleanGitRef.clean(ref))
|
|
14149
14150
|
}
|
|
14150
14151
|
|
|
14151
|
-
if (oldref
|
|
14152
|
+
if (!validRef(oldref, true)) {
|
|
14152
14153
|
throw new InvalidRefNameError(oldref, cleanGitRef.clean(oldref))
|
|
14153
14154
|
}
|
|
14154
14155
|
|
|
@@ -15172,7 +15173,11 @@ async function _stashDrop({ fs, dir, gitdir, refIdx = 0 }) {
|
|
|
15172
15173
|
const stashReflogPath = stashMgr.refLogsStashPath;
|
|
15173
15174
|
await acquireLock$1({ reflogEntries, stashReflogPath, stashMgr }, async () => {
|
|
15174
15175
|
if (reflogEntries.length) {
|
|
15175
|
-
await fs.write(
|
|
15176
|
+
await fs.write(
|
|
15177
|
+
stashReflogPath,
|
|
15178
|
+
reflogEntries.reverse().join('\n') + '\n',
|
|
15179
|
+
'utf8'
|
|
15180
|
+
);
|
|
15176
15181
|
const lastStashCommit = reflogEntries[reflogEntries.length - 1].split(
|
|
15177
15182
|
' '
|
|
15178
15183
|
)[1];
|
|
@@ -16518,7 +16523,7 @@ async function writeRef({
|
|
|
16518
16523
|
|
|
16519
16524
|
const fs = new FileSystem(_fs);
|
|
16520
16525
|
|
|
16521
|
-
if (ref
|
|
16526
|
+
if (!validRef(ref, true)) {
|
|
16522
16527
|
throw new InvalidRefNameError(ref, cleanGitRef.clean(ref))
|
|
16523
16528
|
}
|
|
16524
16529
|
|