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

@shopware-ag/admin-extension-sdk

Package Overview
Dependencies
Maintainers
6
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware-ag/admin-extension-sdk - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

13

dist/es/channel.js

@@ -12,3 +12,3 @@ /**

// set fallback data when no data is defined
const sendData = data ?? {};
const sendData = data !== null && data !== void 0 ? data : {};
// generate the message with the callbackId

@@ -32,3 +32,3 @@ const messageData = {

}
catch {
catch (_a) {
// fail silently when message is not a valid json file

@@ -66,2 +66,3 @@ return;

const handleListener = function (event) {
var _a, _b;
if (typeof event.data !== 'string') {

@@ -75,3 +76,3 @@ return;

}
catch {
catch (_c) {
// fail silently when message is not a valid json file

@@ -91,3 +92,3 @@ return;

_type: shopwareMessageData._type,
_response: method(shopwareMessageData._data) ?? null
_response: (_a = method(shopwareMessageData._data)) !== null && _a !== void 0 ? _a : null
};

@@ -99,3 +100,3 @@ const stringifiedResponseMessage = JSON.stringify(responseMessage);

// @ts-expect-error - event.source.origin is not correctly defined in TS
targetOrigin: event.source.origin ?? '*'
targetOrigin: (_b = event.source.origin) !== null && _b !== void 0 ? _b : '*'
});

@@ -126,3 +127,3 @@ }

export function createSender(messageType, baseMessageOptions) {
return (messageOptions) => send(messageType, { ...baseMessageOptions, ...messageOptions });
return (messageOptions) => send(messageType, Object.assign(Object.assign({}, baseMessageOptions), messageOptions));
}

@@ -129,0 +130,0 @@ export function createHandler(messageType) {

@@ -24,3 +24,3 @@ (function (factory) {

// set fallback data when no data is defined
const sendData = data ?? {};
const sendData = data !== null && data !== void 0 ? data : {};
// generate the message with the callbackId

@@ -44,3 +44,3 @@ const messageData = {

}
catch {
catch (_a) {
// fail silently when message is not a valid json file

@@ -79,2 +79,3 @@ return;

const handleListener = function (event) {
var _a, _b;
if (typeof event.data !== 'string') {

@@ -88,3 +89,3 @@ return;

}
catch {
catch (_c) {
// fail silently when message is not a valid json file

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

_type: shopwareMessageData._type,
_response: method(shopwareMessageData._data) ?? null
_response: (_a = method(shopwareMessageData._data)) !== null && _a !== void 0 ? _a : null
};

@@ -112,3 +113,3 @@ const stringifiedResponseMessage = JSON.stringify(responseMessage);

// @ts-expect-error - event.source.origin is not correctly defined in TS
targetOrigin: event.source.origin ?? '*'
targetOrigin: (_b = event.source.origin) !== null && _b !== void 0 ? _b : '*'
});

@@ -140,3 +141,3 @@ }

function createSender(messageType, baseMessageOptions) {
return (messageOptions) => send(messageType, { ...baseMessageOptions, ...messageOptions });
return (messageOptions) => send(messageType, Object.assign(Object.assign({}, baseMessageOptions), messageOptions));
}

@@ -143,0 +144,0 @@ exports.createSender = createSender;

{
"name": "@shopware-ag/admin-extension-sdk",
"version": "0.0.8",
"version": "0.0.9",
"repository": "git://github.com/shopware/admin-extension-sdk.git",

@@ -5,0 +5,0 @@ "description": "The SDK for App iframes to communicate with the Shopware Adminstration",

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