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

@featherds/pdf-viewer

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@featherds/pdf-viewer - npm Package Compare versions

Comparing version 0.12.5 to 0.12.6

16

package.json
{
"name": "@featherds/pdf-viewer",
"version": "0.12.5",
"version": "0.12.6",
"publishConfig": {

@@ -12,8 +12,8 @@ "access": "public"

"dependencies": {
"@featherds/button": "^0.12.5",
"@featherds/composables": "^0.12.5",
"@featherds/dialog": "^0.12.5",
"@featherds/icon": "^0.12.5",
"@featherds/progress": "^0.12.5",
"@featherds/styles": "^0.12.5",
"@featherds/button": "^0.12.6",
"@featherds/composables": "^0.12.6",
"@featherds/dialog": "^0.12.6",
"@featherds/icon": "^0.12.6",
"@featherds/progress": "^0.12.6",
"@featherds/styles": "^0.12.6",
"vue": "^3.1.0-0"

@@ -26,3 +26,3 @@ },

"types": "./src/index.d.ts",
"gitHead": "902fb935f136f66098ff1f777f7ca1294854cd42"
"gitHead": "efae40a88230bf71e4927f9e40604d095fb92d35"
}
import FeatherPdfViewer from "./FeatherPdfViewer.vue";
import { shallowMount } from "@vue/test-utils";
import { getCalls } from "@featherds/utils/test/calls";
import { vi, expect, describe, it, beforeEach } from "vitest";
const focusTrap = {

@@ -26,6 +26,6 @@ template: "<div><slot /></div>",

const xhrMock = {
open: jest.fn(),
send: jest.fn(),
open: vi.fn(),
send: vi.fn(),
status: 200,
onload: () => { }
onload: () => {},
};

@@ -36,3 +36,6 @@ const xhrRequestMock = xhrMock as unknown as XMLHttpRequest;

xhrMock.send.mockReset();
jest.spyOn(window, "XMLHttpRequest").mockImplementation(() => xhrRequestMock);
vi.spyOn(
window as unknown as { XMLHttpRequest: () => void },
"XMLHttpRequest"
).mockImplementation(() => xhrRequestMock);
});

@@ -39,0 +42,0 @@ it("should use document url when extension is pdf", () => {

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