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

@shopify/app-bridge

Package Overview
Dependencies
Maintainers
19
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/app-bridge - npm Package Compare versions

Comparing version 3.6.0-snapshot-20221220190552 to 3.6.0

9

actions/WebVitals/actions.js

@@ -8,2 +8,3 @@ "use strict";

var helper_1 = require("../helper");
var platform_1 = require("../../utilities/platform");
var Action;

@@ -76,9 +77,3 @@ (function (Action) {

var untypedWindow = window;
// This logic is copied from app-bridge-utils/utilities/platform.ts
// Once we're ready to deprecate app-bridge-utils, we can refactor this
var isMobile = typeof navigator !== 'undefined' &&
(navigator.userAgent.indexOf('Shopify Mobile') >= 0 ||
navigator.userAgent.indexOf('Shopify POS') >= 0 ||
navigator.userAgent.indexOf('Shopify Ping') >= 0);
if (env_1.isServer || (env_1.isClient && untypedWindow.__is_web_vitals_initialized__) || isMobile) {
if (env_1.isServer || (env_1.isClient && untypedWindow.__is_web_vitals_initialized__) || platform_1.isMobile()) {
// We need to prevent the Web Vitals functions from being called more than once per page load,

@@ -85,0 +80,0 @@ // which can cause a memory leak as per the web-vitals docs.

{
"name": "@shopify/app-bridge",
"version": "3.6.0-snapshot-20221220190552",
"version": "3.6.0",
"types": "index.d.ts",

@@ -5,0 +5,0 @@ "main": "index.js",

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

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

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