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

@saleor/app-bridge

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saleor/app-bridge - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

dist/actions.d.ts

@@ -5,6 +5,6 @@ declare type HandshakeAction = {

};
type: 'handshake';
type: "handshake";
};
export declare type Action = HandshakeAction;
export declare type ActionType = Action['type'];
export declare type ActionType = Action["type"];
export {};

@@ -25,3 +25,3 @@ 'use strict';

switch (action.type) {
case 'handshake':
case "handshake":
{

@@ -48,3 +48,3 @@ var newState = _extends({}, state, {

var state = {
domain: '',
domain: "",
ready: false

@@ -60,6 +60,6 @@ };

} catch (e) {
console.warn('document.referrer is empty');
console.warn("document.referrer is empty");
}
window.addEventListener('message', function (e) {
window.addEventListener("message", function (e) {
if (e.origin !== refererOrigin) {

@@ -104,3 +104,3 @@ return;

var url = new URL(window.location.href);
domain = url.searchParams.get('domain') || '';
domain = url.searchParams.get("domain") || "";
}

@@ -114,3 +114,3 @@

if (!!window.parent) {
window.parent.postMessage(message, '*');
window.parent.postMessage(message, "*");
}

@@ -117,0 +117,0 @@ }

@@ -21,3 +21,3 @@ function _extends() {

switch (action.type) {
case 'handshake':
case "handshake":
{

@@ -44,3 +44,3 @@ var newState = _extends({}, state, {

var state = {
domain: '',
domain: "",
ready: false

@@ -56,6 +56,6 @@ };

} catch (e) {
console.warn('document.referrer is empty');
console.warn("document.referrer is empty");
}
window.addEventListener('message', function (e) {
window.addEventListener("message", function (e) {
if (e.origin !== refererOrigin) {

@@ -100,3 +100,3 @@ return;

var url = new URL(window.location.href);
domain = url.searchParams.get('domain') || '';
domain = url.searchParams.get("domain") || "";
}

@@ -110,3 +110,3 @@

if (!!window.parent) {
window.parent.postMessage(message, '*');
window.parent.postMessage(message, "*");
}

@@ -113,0 +113,0 @@ }

{
"version": "0.1.3",
"version": "0.1.4",
"license": "MIT",

@@ -53,3 +53,3 @@ "main": "dist/index.js",

"semi": true,
"singleQuote": true,
"singleQuote": false,
"trailingComma": "es5"

@@ -60,10 +60,10 @@ },

"description": "Library for Dashboard <-> Saleor App communication",
"module": "dist/saleor-app-bridge.esm.js",
"module": "dist/app-bridge.esm.js",
"size-limit": [
{
"path": "dist/saleor-app-bridge.cjs.production.min.js",
"path": "dist/app-bridge.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/saleor-app-bridge.esm.js",
"path": "dist/app-bridge.esm.js",
"limit": "10 KB"

@@ -70,0 +70,0 @@ }

@@ -5,3 +5,3 @@ type HandshakeAction = {

};
type: 'handshake';
type: "handshake";
};

@@ -17,2 +17,2 @@

export type Action = HandshakeAction;
export type ActionType = Action['type'];
export type ActionType = Action["type"];

@@ -1,2 +0,2 @@

import { Action, ActionType } from './actions';
import { Action, ActionType } from "./actions";

@@ -14,3 +14,3 @@ type State = {

switch (action.type) {
case 'handshake': {
case "handshake": {
const newState = {

@@ -36,3 +36,3 @@ ...state,

let state: State = {
domain: '',
domain: "",
ready: false,

@@ -48,6 +48,6 @@ };

} catch (e) {
console.warn('document.referrer is empty');
console.warn("document.referrer is empty");
}
window.addEventListener('message', e => {
window.addEventListener("message", e => {
if (e.origin !== refererOrigin) {

@@ -95,3 +95,3 @@ return;

const url = new URL(window.location.href);
domain = url.searchParams.get('domain') || '';
domain = url.searchParams.get("domain") || "";
}

@@ -104,3 +104,3 @@

if (!!window.parent) {
window.parent.postMessage(message, '*');
window.parent.postMessage(message, "*");
}

@@ -107,0 +107,0 @@ }

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

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