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

@pwabuilder/pwainstall

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pwabuilder/pwainstall - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

2

package.json
{
"name": "@pwabuilder/pwainstall",
"version": "1.2.5",
"version": "1.2.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/pwa-install.js",

@@ -52,2 +52,3 @@ import {

right: 0;
z-index: var(--modal-z-index);
}

@@ -288,3 +289,3 @@

width: 24em;
height: 14em;
height: 13.7em;

@@ -291,0 +292,0 @@ -webkit-overflow-scrolling: touch

@@ -37,10 +37,8 @@ import { expect, elementUpdated, html, fixture } from '@open-wc/testing';

it('shouldShowInstall should return undefined if no manifest data', async () => {
it('shouldShowInstall should return false if no manifest data', async () => {
const el = await fixture('<pwa-install></pwa-install>');
await el.getManifestData();
expect(el.manifestdata).to.be.undefined;
const testResult = el.shouldShowInstall();
expect(testResult).to.be.undefined;
expect(testResult).to.be.false;
});

@@ -66,3 +64,3 @@

it('shouldShowInstall should return undefined', async () => {
it('shouldShowInstall should return false', async () => {
const el = await fixture('<pwa-install></pwa-install>');

@@ -73,8 +71,6 @@

expect(testResult).to.be.undefined;
expect(testResult).to.be.false;
});
// will be undefined in the test environment as there is no manifest / sw
// we never want to show the install button if the app cant be installed
it('shouldShowInstall should still return undefined even if showopen is true', async () => {
it('shouldShowInstall should still return false even if showopen is true', async () => {
const el = await fixture('<pwa-install showopen></pwa-install>');

@@ -85,9 +81,6 @@

expect(testResult).to.be.undefined;
expect(testResult).to.be.false;
});
// will be undefined in the test environment as there is no manifest / sw
// we never want to show the install button if the app cant be installed
it('shouldShowInstall should return undefined even if showeligible is on', async () => {
// this should be undefined because install is eligible in this case
it('shouldShowInstall should return false even if showeligible is on', async () => {
const el = await fixture('<pwa-install showeligible></pwa-install>');

@@ -98,7 +91,5 @@

expect(testResult).to.be.undefined;
expect(testResult).to.be.false;
});
it('deferredPrompt should be undefined if not in install eligible env', async () => {

@@ -105,0 +96,0 @@ const el = await fixture('<pwa-install></pwa-install>');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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