isomorphic-git 1.26.0 → 1.26.1
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 +1 -0
- package/browser-tests.json +3 -6
- package/index.cjs +27 -24
- package/index.js +27 -24
- package/index.umd.min.js +2 -2
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/size_report.html +1 -1
package/README.md
CHANGED
|
@@ -374,6 +374,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
|
|
|
374
374
|
</tr>
|
|
375
375
|
<tr>
|
|
376
376
|
<td align="center"><a href="https://github.com/lsegurado"><img src="https://avatars.githubusercontent.com/u/27731047?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Lucas Martin Segurado</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=lsegurado" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Alsegurado" title="Bug reports">🐛</a></td>
|
|
377
|
+
<td align="center"><a href="https://github.com/limond"><img src="https://avatars.githubusercontent.com/u/1025682?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Leon Kaucher</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=limond" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=limond" title="Tests">⚠️</a></td>
|
|
377
378
|
</tr>
|
|
378
379
|
</table>
|
|
379
380
|
|
package/browser-tests.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
[
|
|
2
2
|
"Chrome Headless 79.0.3945.0 (Linux x86_64)",
|
|
3
|
-
"
|
|
3
|
+
"Firefox 126.0 (Ubuntu 0.0.0)",
|
|
4
4
|
"Chrome 123.0.0.0 (Android 10)",
|
|
5
|
-
"Edge 79.0.309.65 (Windows 10)",
|
|
6
5
|
"Mobile Safari 13.0 (iOS 13.0)",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"Firefox 126.0 (Ubuntu 0.0.0)",
|
|
10
|
-
"Chrome 123.0.0.0 (Android 10)"
|
|
6
|
+
"Edge 79.0.309.65 (Windows 10)",
|
|
7
|
+
"Safari 13.1 (Mac OS 10.15.4)"
|
|
11
8
|
]
|
package/index.cjs
CHANGED
|
@@ -3137,43 +3137,46 @@ async function _readObject({
|
|
|
3137
3137
|
oid,
|
|
3138
3138
|
getExternalRefDelta,
|
|
3139
3139
|
});
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3140
|
+
|
|
3141
|
+
if (!result) {
|
|
3142
|
+
throw new NotFoundError(oid)
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
// Directly return packed result, as specified: packed objects always return the 'content' format.
|
|
3146
|
+
return result
|
|
3144
3147
|
}
|
|
3145
3148
|
|
|
3149
|
+
// Loose objects are always deflated, return early
|
|
3146
3150
|
if (format === 'deflated') {
|
|
3147
3151
|
return result
|
|
3148
3152
|
}
|
|
3149
3153
|
|
|
3154
|
+
// All loose objects are deflated but the hard-coded empty tree is `wrapped` so we have to check if we need to inflate the object.
|
|
3150
3155
|
if (result.format === 'deflated') {
|
|
3151
3156
|
result.object = Buffer.from(await inflate(result.object));
|
|
3152
3157
|
result.format = 'wrapped';
|
|
3153
3158
|
}
|
|
3154
3159
|
|
|
3155
|
-
if (
|
|
3156
|
-
|
|
3157
|
-
return result
|
|
3158
|
-
}
|
|
3159
|
-
const sha = await shasum(result.object);
|
|
3160
|
-
if (sha !== oid) {
|
|
3161
|
-
throw new InternalError(
|
|
3162
|
-
`SHA check failed! Expected ${oid}, computed ${sha}`
|
|
3163
|
-
)
|
|
3164
|
-
}
|
|
3165
|
-
const { object, type } = GitObject.unwrap(result.object);
|
|
3166
|
-
result.type = type;
|
|
3167
|
-
result.object = object;
|
|
3168
|
-
result.format = 'content';
|
|
3160
|
+
if (format === 'wrapped') {
|
|
3161
|
+
return result
|
|
3169
3162
|
}
|
|
3170
3163
|
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3164
|
+
const sha = await shasum(result.object);
|
|
3165
|
+
if (sha !== oid) {
|
|
3166
|
+
throw new InternalError(
|
|
3167
|
+
`SHA check failed! Expected ${oid}, computed ${sha}`
|
|
3168
|
+
)
|
|
3169
|
+
}
|
|
3170
|
+
const { object, type } = GitObject.unwrap(result.object);
|
|
3171
|
+
result.type = type;
|
|
3172
|
+
result.object = object;
|
|
3173
|
+
result.format = 'content';
|
|
3174
|
+
|
|
3175
|
+
if (format === 'content') {
|
|
3176
|
+
return result
|
|
3174
3177
|
}
|
|
3175
3178
|
|
|
3176
|
-
throw new InternalError(`invalid format "${
|
|
3179
|
+
throw new InternalError(`invalid requested format "${format}"`)
|
|
3177
3180
|
}
|
|
3178
3181
|
|
|
3179
3182
|
class AlreadyExistsError extends BaseError {
|
|
@@ -7415,8 +7418,8 @@ function filterCapabilities(server, client) {
|
|
|
7415
7418
|
|
|
7416
7419
|
const pkg = {
|
|
7417
7420
|
name: 'isomorphic-git',
|
|
7418
|
-
version: '1.26.
|
|
7419
|
-
agent: 'git/isomorphic-git@1.26.
|
|
7421
|
+
version: '1.26.1',
|
|
7422
|
+
agent: 'git/isomorphic-git@1.26.1',
|
|
7420
7423
|
};
|
|
7421
7424
|
|
|
7422
7425
|
class FIFO {
|
package/index.js
CHANGED
|
@@ -3131,43 +3131,46 @@ async function _readObject({
|
|
|
3131
3131
|
oid,
|
|
3132
3132
|
getExternalRefDelta,
|
|
3133
3133
|
});
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3134
|
+
|
|
3135
|
+
if (!result) {
|
|
3136
|
+
throw new NotFoundError(oid)
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
// Directly return packed result, as specified: packed objects always return the 'content' format.
|
|
3140
|
+
return result
|
|
3138
3141
|
}
|
|
3139
3142
|
|
|
3143
|
+
// Loose objects are always deflated, return early
|
|
3140
3144
|
if (format === 'deflated') {
|
|
3141
3145
|
return result
|
|
3142
3146
|
}
|
|
3143
3147
|
|
|
3148
|
+
// All loose objects are deflated but the hard-coded empty tree is `wrapped` so we have to check if we need to inflate the object.
|
|
3144
3149
|
if (result.format === 'deflated') {
|
|
3145
3150
|
result.object = Buffer.from(await inflate(result.object));
|
|
3146
3151
|
result.format = 'wrapped';
|
|
3147
3152
|
}
|
|
3148
3153
|
|
|
3149
|
-
if (
|
|
3150
|
-
|
|
3151
|
-
return result
|
|
3152
|
-
}
|
|
3153
|
-
const sha = await shasum(result.object);
|
|
3154
|
-
if (sha !== oid) {
|
|
3155
|
-
throw new InternalError(
|
|
3156
|
-
`SHA check failed! Expected ${oid}, computed ${sha}`
|
|
3157
|
-
)
|
|
3158
|
-
}
|
|
3159
|
-
const { object, type } = GitObject.unwrap(result.object);
|
|
3160
|
-
result.type = type;
|
|
3161
|
-
result.object = object;
|
|
3162
|
-
result.format = 'content';
|
|
3154
|
+
if (format === 'wrapped') {
|
|
3155
|
+
return result
|
|
3163
3156
|
}
|
|
3164
3157
|
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3158
|
+
const sha = await shasum(result.object);
|
|
3159
|
+
if (sha !== oid) {
|
|
3160
|
+
throw new InternalError(
|
|
3161
|
+
`SHA check failed! Expected ${oid}, computed ${sha}`
|
|
3162
|
+
)
|
|
3163
|
+
}
|
|
3164
|
+
const { object, type } = GitObject.unwrap(result.object);
|
|
3165
|
+
result.type = type;
|
|
3166
|
+
result.object = object;
|
|
3167
|
+
result.format = 'content';
|
|
3168
|
+
|
|
3169
|
+
if (format === 'content') {
|
|
3170
|
+
return result
|
|
3168
3171
|
}
|
|
3169
3172
|
|
|
3170
|
-
throw new InternalError(`invalid format "${
|
|
3173
|
+
throw new InternalError(`invalid requested format "${format}"`)
|
|
3171
3174
|
}
|
|
3172
3175
|
|
|
3173
3176
|
class AlreadyExistsError extends BaseError {
|
|
@@ -7409,8 +7412,8 @@ function filterCapabilities(server, client) {
|
|
|
7409
7412
|
|
|
7410
7413
|
const pkg = {
|
|
7411
7414
|
name: 'isomorphic-git',
|
|
7412
|
-
version: '1.26.
|
|
7413
|
-
agent: 'git/isomorphic-git@1.26.
|
|
7415
|
+
version: '1.26.1',
|
|
7416
|
+
agent: 'git/isomorphic-git@1.26.1',
|
|
7414
7417
|
};
|
|
7415
7418
|
|
|
7416
7419
|
class FIFO {
|