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

google-docs-components

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-docs-components - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

21

dist/cjs/index.js

@@ -25,5 +25,24 @@ "use strict";

const tag = list.ordered ? "ol" : "ul";
const toListItems = (elements) => {
const listItems = [];
elements.forEach((child) => {
if (listItems.length && (child === null || child === void 0 ? void 0 : child.element) == "ul" || child.element == "ol") {
listItems[listItems.length - 1].children.push(child);
return;
}
if (child.children) {
//Google Docs considers list items as paragraphs, but we don't want that in our html
listItems.push(Object.assign({}, child, { element: "li" }));
return;
}
listItems.push({
element: "li",
children: [child]
});
});
return listItems;
};
const data = {
element: tag,
children: parseContent(list.items)
children: toListItems(parseContent(list.items))
};

@@ -30,0 +49,0 @@ return data;

@@ -19,5 +19,24 @@ import componentFromTable from "./processTable";

const tag = list.ordered ? "ol" : "ul";
const toListItems = (elements) => {
const listItems = [];
elements.forEach((child) => {
if (listItems.length && (child === null || child === void 0 ? void 0 : child.element) == "ul" || child.element == "ol") {
listItems[listItems.length - 1].children.push(child);
return;
}
if (child.children) {
//Google Docs considers list items as paragraphs, but we don't want that in our html
listItems.push(Object.assign({}, child, { element: "li" }));
return;
}
listItems.push({
element: "li",
children: [child]
});
});
return listItems;
};
const data = {
element: tag,
children: parseContent(list.items)
children: toListItems(parseContent(list.items))
};

@@ -24,0 +43,0 @@ return data;

2

package.json
{
"name": "google-docs-components",
"version": "1.0.2",
"version": "1.0.3",
"main": "./dist/cjs/index.js",

@@ -5,0 +5,0 @@ "module": "./dist/esm/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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