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

pdf.js-extract

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

pdf.js-extract - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

lib/cmap-reader.js

11

lib/index.js
const fs = require('fs');
const path = require('path');
const utils = require('./utils.js');
const LocalCMapReaderFactory = require('./cmap-reader.js');
// HACK few hacks to let PDF.js be loaded not as a module in global space.

@@ -34,2 +36,11 @@ require('./pdfjs/domstubs.js').setStubs(global);

}
if (options.cMapUrl === undefined) {
options.cMapUrl = path.join(__dirname, './cmaps/'); // trailing path delimiter is important
}
if (options.cMapPacked === undefined) {
options.cMapPacked = true;
}
if (options.CMapReaderFactory === undefined) {
options.CMapReaderFactory = LocalCMapReaderFactory;
}
options.data = new Uint8Array(buffer);

@@ -36,0 +47,0 @@ const pdf = {

6

lib/pdfjs/version.json
{
"version": "2.0.919",
"build": 919,
"commit": "f45e46d7"
"version": "2.1.54",
"build": 54,
"commit": "960213cb"
}

@@ -12,3 +12,3 @@ {

},
"version": "0.1.0",
"version": "0.1.1",
"author": {

@@ -43,7 +43,7 @@ "name": "ffalt"

"devDependencies": {
"@types/node": "^10.11.5",
"@types/node": "^10.12.6",
"chai": "^4.2.0",
"chai-exclude": "^1.0.9",
"chai-exclude": "^1.0.10",
"mocha": "^5.2.0"
}
}

@@ -18,3 +18,5 @@ # pdf.js-extract

[![Build Status](https://travis-ci.org/ffalt/pdf.js-extract.svg?branch=master)](https://travis-ci.org/ffalt/pdf.js-extract)
[![license](https://img.shields.io/npm/l/pdf.js-extract.svg)](http://opensource.org/licenses/MIT) [![developer](https://img.shields.io/badge/developer-awesome-brightgreen.svg)](https://github.com/ffalt/pdf.js-extract) [![Greenkeeper badge](https://badges.greenkeeper.io/ffalt/pdf.js-extract.svg)](https://greenkeeper.io/)
[![license](https://img.shields.io/npm/l/pdf.js-extract.svg)](http://opensource.org/licenses/MIT)
[![developer](https://img.shields.io/badge/developer-awesome-brightgreen.svg)](https://github.com/ffalt/pdf.js-extract)
[![Greenkeeper badge](https://badges.greenkeeper.io/ffalt/pdf.js-extract.svg)](https://greenkeeper.io/)

@@ -25,2 +27,3 @@ ## Convenience API

const PDFExtract = require('pdf.js-extract').PDFExtract;
// import {PDFExtract} from 'pdf.js-extract'; // or with typescript
const pdfExtract = new PDFExtract();

@@ -27,0 +30,0 @@ const options = {}; /* see below */

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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