browser-bookmarks
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -104,3 +104,5 @@ const fs = require('fs'); | ||
let bookmarks = []; | ||
Object.keys(dataJson.roots).forEach((folder) => { | ||
let keys = Object.keys(dataJson.roots); | ||
for (let i = 0; i < keys.length; i++) { | ||
const folder = keys[i]; | ||
const rootObject = dataJson.roots[folder]; | ||
@@ -111,6 +113,12 @@ // retrieve child nodes in each root folder | ||
if (children.length) { | ||
bookmarks = bookmarks.concat(children); | ||
for (let j = 0; j < children.length; j++) { | ||
bookmarks.push(children[j]); | ||
} | ||
} | ||
}); | ||
resolve(bookmarks.map(normalize)); | ||
} | ||
const nb = new Array(bookmarks.length); | ||
for (let i = 0; i < bookmarks.length; i++) { | ||
nb[i] = normalize(bookmarks[i]); | ||
} | ||
resolve(nb); | ||
} else { | ||
@@ -117,0 +125,0 @@ resolve([]); |
{ | ||
"name": "browser-bookmarks", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Retrieve bookmarks from different browsers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120045
19
362