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

print-js

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

print-js - npm Package Compare versions

Comparing version 1.0.53 to 1.0.54

4

dist/print.js

@@ -159,3 +159,5 @@ (function webpackUniversalModuleDefinition(root, factory) {

isChrome: function isChrome() {
return !!window.chrome && !!window.chrome.webstore;
var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
return !!context.chrome;
},

@@ -162,0 +164,0 @@ // At least Safari 3+: "[object HTMLElementConstructor]"

@@ -31,2 +31,5 @@ declare type PrintTypes = 'pdf' | 'html' | 'image' | 'json';

scanStyles?: boolean;
onError?: (error: any) => void;
onPrintDialogClose?: () => void;
onPdfOpen?: () => void;
}

@@ -33,0 +36,0 @@

@@ -5,3 +5,3 @@ {

"description": "A tiny javascript library to help printing from the web.",
"version": "1.0.53",
"version": "1.0.54",
"main": "dist/print.js",

@@ -8,0 +8,0 @@ "types": "./index.d.ts",

@@ -15,4 +15,4 @@ const Browser = {

// Chrome 1+
isChrome: () => {
return !!window.chrome && !!window.chrome.webstore
isChrome: (context = window) => {
return !!context.chrome
},

@@ -19,0 +19,0 @@ // At least Safari 3+: "[object HTMLElementConstructor]"

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