Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
13
node_modules/diff/lib/diff/base.js
generated
vendored
13
node_modules/diff/lib/diff/base.js
generated
vendored
File diff suppressed because one or more lines are too long
16
node_modules/diff/lib/index.es6.js
generated
vendored
16
node_modules/diff/lib/index.es6.js
generated
vendored
|
|
@ -32,6 +32,11 @@ Diff.prototype = {
|
|||
oldLen = oldString.length;
|
||||
var editLength = 1;
|
||||
var maxEditLength = newLen + oldLen;
|
||||
|
||||
if (options.maxEditLength) {
|
||||
maxEditLength = Math.min(maxEditLength, options.maxEditLength);
|
||||
}
|
||||
|
||||
var bestPath = [{
|
||||
newPos: -1,
|
||||
components: []
|
||||
|
|
@ -96,15 +101,13 @@ Diff.prototype = {
|
|||
editLength++;
|
||||
} // Performs the length of edit iteration. Is a bit fugly as this has to support the
|
||||
// sync and async mode which is never fun. Loops over execEditLength until a value
|
||||
// is produced.
|
||||
// is produced, or until the edit length exceeds options.maxEditLength (if given),
|
||||
// in which case it will return undefined.
|
||||
|
||||
|
||||
if (callback) {
|
||||
(function exec() {
|
||||
setTimeout(function () {
|
||||
// This should not happen, but we want to be safe.
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (editLength > maxEditLength) {
|
||||
return callback();
|
||||
}
|
||||
|
|
@ -922,6 +925,11 @@ function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, ne
|
|||
}
|
||||
|
||||
var diff = diffLines(oldStr, newStr, options);
|
||||
|
||||
if (!diff) {
|
||||
return;
|
||||
}
|
||||
|
||||
diff.push({
|
||||
value: '',
|
||||
lines: []
|
||||
|
|
|
|||
16
node_modules/diff/lib/index.mjs
generated
vendored
16
node_modules/diff/lib/index.mjs
generated
vendored
|
|
@ -32,6 +32,11 @@ Diff.prototype = {
|
|||
oldLen = oldString.length;
|
||||
var editLength = 1;
|
||||
var maxEditLength = newLen + oldLen;
|
||||
|
||||
if (options.maxEditLength) {
|
||||
maxEditLength = Math.min(maxEditLength, options.maxEditLength);
|
||||
}
|
||||
|
||||
var bestPath = [{
|
||||
newPos: -1,
|
||||
components: []
|
||||
|
|
@ -96,15 +101,13 @@ Diff.prototype = {
|
|||
editLength++;
|
||||
} // Performs the length of edit iteration. Is a bit fugly as this has to support the
|
||||
// sync and async mode which is never fun. Loops over execEditLength until a value
|
||||
// is produced.
|
||||
// is produced, or until the edit length exceeds options.maxEditLength (if given),
|
||||
// in which case it will return undefined.
|
||||
|
||||
|
||||
if (callback) {
|
||||
(function exec() {
|
||||
setTimeout(function () {
|
||||
// This should not happen, but we want to be safe.
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (editLength > maxEditLength) {
|
||||
return callback();
|
||||
}
|
||||
|
|
@ -922,6 +925,11 @@ function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, ne
|
|||
}
|
||||
|
||||
var diff = diffLines(oldStr, newStr, options);
|
||||
|
||||
if (!diff) {
|
||||
return;
|
||||
}
|
||||
|
||||
diff.push({
|
||||
value: '',
|
||||
lines: []
|
||||
|
|
|
|||
7
node_modules/diff/lib/patch/create.js
generated
vendored
7
node_modules/diff/lib/patch/create.js
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue