Skip to content

Commit

Permalink
Another debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 23, 2021
1 parent 4b5b4a1 commit 156f4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update-db.js
Expand Up @@ -164,14 +164,14 @@ function updatePnpmLockfile (lock, latest) {
for (i = 0; i < lines.length; i++) {
if (lines[i].indexOf('caniuse-lite:') >= 0) {
lineParts = lines[i].split(/:\s?/, 2)
console.log(1, lines[i])
versions[lineParts[1]] = true
lines[i] = lineParts[0] + ': ' + latest.version
} else if (lines[i].indexOf('/caniuse-lite') >= 0) {
console.log(1, lines[i])
lineParts = lines[i].split(/([/:])/)
for (j = 0; j < lineParts.length; j++) {
if (lineParts[j].indexOf('caniuse-lite') >= 0) {
console.log(lines[i], lineParts, j)
versions[lineParts[j + 2]] = true
lineParts[j + 2] = latest.version
break
Expand Down

0 comments on commit 156f4eb

Please sign in to comment.