Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browser-bookmarks

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-bookmarks - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

demo.js

16

browsers/chrome.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc