New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

google-docs-fetch

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-docs-fetch - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

13

index.js
var cheerio = require('cheerio');
var css = require('css');
var request = require('request');
var url = require('url')

@@ -22,4 +23,4 @@ module.exports = function (docId, callback) {

// Process stylesheet
for (var rule of stylesAst.stylesheet.rules) {
if (rule.type !== 'rule') continue;
stylesAst.stylesheet.rules.forEach(function (rule) {
if (rule.type !== 'rule') return;

@@ -31,4 +32,4 @@ // Wrap all selectors in .page-content class

for (var declaration of rule.declarations) {
if (declaration.type !== 'declaration') continue;
rule.declarations.forEach(function (declaration) {
if (declaration.type !== 'declaration') return;

@@ -38,4 +39,4 @@ // Remove font-family styles

declaration.value = '';
}
}
});
});
var parsedStyles = css.stringify(stylesAst);

@@ -42,0 +43,0 @@

{
"name": "google-docs-fetch",
"version": "0.0.2",
"version": "0.0.3",
"description": "Fetch a Google Docs document as formatted, inlineable HTML.",

@@ -5,0 +5,0 @@ "main": "index.js",

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