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

document-viewer-ts

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

document-viewer-ts - npm Package Compare versions

Comparing version 0.5.3-legacy to 0.5.4-legacy

4

dist/es2015/base.js

@@ -212,3 +212,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

export const renderDocument = (workerSrc) => (containerDiv) => {
var _a;
var _a, _b;
try {

@@ -220,3 +220,3 @@ const documentUrl = containerDiv.getAttribute('data-document-url');

const splitOnPeriods = documentUrl.split('.');
const extension = (_a = splitOnPeriods[(splitOnPeriods.length - 1)]) === null || _a === void 0 ? void 0 : _a.split('?')[0];
const extension = (_b = (_a = splitOnPeriods[(splitOnPeriods.length - 1)]) === null || _a === void 0 ? void 0 : _a.split('?')[0]) === null || _b === void 0 ? void 0 : _b.toLowerCase();
switch (extension) {

@@ -223,0 +223,0 @@ case 'pdf':

@@ -216,3 +216,3 @@ "use strict";

const renderDocument = (workerSrc) => (containerDiv) => {
var _a;
var _a, _b;
try {

@@ -224,3 +224,3 @@ const documentUrl = containerDiv.getAttribute('data-document-url');

const splitOnPeriods = documentUrl.split('.');
const extension = (_a = splitOnPeriods[(splitOnPeriods.length - 1)]) === null || _a === void 0 ? void 0 : _a.split('?')[0];
const extension = (_b = (_a = splitOnPeriods[(splitOnPeriods.length - 1)]) === null || _a === void 0 ? void 0 : _a.split('?')[0]) === null || _b === void 0 ? void 0 : _b.toLowerCase();
switch (extension) {

@@ -227,0 +227,0 @@ case 'pdf':

{
"name": "document-viewer-ts",
"version": "0.5.3-legacy",
"version": "0.5.4-legacy",
"description": "PDF and MS Doc viewer written in TypeScript for React and vanilla JavaScript",

@@ -5,0 +5,0 @@ "main": "dist/lib/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