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

codelabs-react

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codelabs-react - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

26

dist/extract.js

@@ -238,15 +238,27 @@ "use strict";

function getBold(element) {
return {
bold: !!element.textRun.textStyle.bold
};
try {
return {
bold: !!element.textRun.textStyle.bold
};
} catch (ex) {
return false;
}
}
function getItalic(element) {
return {
italic: !!element.textRun.textStyle.italic
};
try {
return {
italic: !!element.textRun.textStyle.italic
};
} catch (ex) {
return false;
}
}
function getParagraphText(node) {
return node.paragraph.elements[0].textRun.content;
try {
return node.paragraph.elements[0].textRun.content;
} catch (ex) {
return "";
}
}

@@ -253,0 +265,0 @@

{
"name": "codelabs-react",
"version": "1.7.0",
"version": "1.7.1",
"description": "",

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

@@ -260,15 +260,27 @@ const infoColor = { red: 0.8509804, green: 0.91764706, blue: 0.827451 };

function getBold(element) {
return {
bold: !!element.textRun.textStyle.bold,
};
try {
return {
bold: !!element.textRun.textStyle.bold,
};
} catch (ex) {
return false;
}
}
function getItalic(element) {
return {
italic: !!element.textRun.textStyle.italic,
};
try {
return {
italic: !!element.textRun.textStyle.italic,
};
} catch (ex) {
return false;
}
}
function getParagraphText(node) {
return node.paragraph.elements[0].textRun.content;
try {
return node.paragraph.elements[0].textRun.content;
} catch (ex) {
return "";
}
}

@@ -275,0 +287,0 @@

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