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

@react-pdf-viewer/search

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf-viewer/search - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

17

lib/cjs/search.js

@@ -76,3 +76,5 @@ 'use strict';

var _e = React.useState(false), wholeWords = _e[0], setWholeWords = _e[1];
var indexArr = Array(doc.numPages).fill(0).map(function (_, i) { return i; });
var indexArr = Array(doc.numPages)
.fill(0)
.map(function (_, i) { return i; });
var changeMatchCase = function (isChecked) {

@@ -127,6 +129,11 @@ setMatchCase(isChecked);

var promises = indexArr.map(function (pageIndex) {
return doc.getPage(pageIndex + 1).then(function (page) {
return doc
.getPage(pageIndex + 1)
.then(function (page) {
return page.getTextContent();
}).then(function (content) {
var pageContent = content.items.map(function (item) { return item.str || ''; }).join('');
})
.then(function (content) {
var pageContent = content.items
.map(function (item) { return item.str || ''; })
.join('');
return Promise.resolve({

@@ -155,3 +162,3 @@ pageContent: pageContent,

setFound([]);
var promise = (textContents.current.length === 0)
var promise = textContents.current.length === 0
? getTextContents().then(function (response) {

@@ -158,0 +165,0 @@ textContents.current = response;

{
"name": "@react-pdf-viewer/search",
"version": "2.2.0",
"version": "2.2.1",
"description": "A React component to view a PDF document",

@@ -36,3 +36,3 @@ "license": "https://react-pdf-viewer.dev/license",

"dependencies": {
"@react-pdf-viewer/core": "2.2.0"
"@react-pdf-viewer/core": "2.2.1"
},

@@ -52,3 +52,3 @@ "peerDependencies": {

},
"gitHead": "cc37771ea0886faf311ec7d5cd2a5f83aaffca74"
"gitHead": "dc23d3ab29ed34affa25cc4acd25f7fce4e14fd0"
}
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