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

rtf-parser

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtf-parser - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "rtf-parser",
"version": "1.0.4",
"version": "1.0.5",
"description": "This is a general RTF parser. It takes a text stream and produces a document object representing the parsed document. In and of itself, this isn't super useful but it's the building block for other tools to convert RTF into other formats.",

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

@@ -29,4 +29,2 @@ 'use strict'

addContent (node) {
const defaultFont = this.getFont(0) || {family: 'roman', charset: 'ASCII', name: 'Serif'}
const defaultColor = this.getColor(0) || {red: 0, blue: 0, green: 0}
node.style = Object.assign({}, this.getStyle())

@@ -33,0 +31,0 @@ node.style.font = this.getFont(node.style.font)

@@ -300,3 +300,3 @@ 'use strict'

this.table = []
this.currentFont = null
this.currentFont = {family: 'roman', charset: 'ASCII', name: 'Serif'}
}

@@ -303,0 +303,0 @@ addContent (text) {

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