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.21 to 0.0.22

es/location/index.d.ts

2

cdn/index.js

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

var Y=Object.defineProperty;var D=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var x=(o,s,i)=>s in o?Y(o,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[s]=i,w=(o,s)=>{for(var i in s||(s={}))Z.call(s,i)&&x(o,i,s[i]);if(D)for(var i of D(s))V.call(s,i)&&x(o,i,s[i]);return o};(function(o,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(o=typeof globalThis!="undefined"?globalThis:o||self,s(o.sw={}))})(this,function(o){"use strict";function s(){return String(Date.now().toString(36)+Math.random().toString(36).substr(2))}function i(e,t){for(let r in e){const n=e[r];t.apply(this,[e,r,n]),y(n)&&i(n,t)}}function y(e){return e!==null&&typeof e=="object"}function O(e){R(e)}function z(e){k(e)}const h={};let b=!1;function I(){b||(b=!0,p("__function__",async({args:e,id:t})=>await Promise.resolve(h[t](...e))))}function R(e){i(e,(t,r,n)=>{if(typeof n=="function"){const a=s();h[a]=n,t[r]={__type__:"__function__",id:a},I()}})}function k(e){i(e,(t,r,n)=>{if(y(n)&&n.__type__&&n.__type__==="__function__"&&typeof n.id=="string"){const a=n.id;t[r]=(...d)=>f("__function__",{args:d,id:a})}})}const m=new Set;function f(e,t,r){const n=s(),a=t!=null?t:{},d={_type:e,_data:a,_callbackId:n};O(d);const u=JSON.stringify(d);let _=!1;const g=3e3;return new Promise((Q,X)=>{const S=function(L){if(typeof L.data!="string")return;let l;try{l=JSON.parse(L.data)}catch{return}!T(l)||l._callbackId===n&&(!l.hasOwnProperty("_response")||(window.removeEventListener("message",S),_||(_=!0,Q(l._response))))};window.addEventListener("message",S),window.parent.__Cypress__?r?r.postMessage(u,window.parent.origin):window.postMessage(u,window.parent.origin):r?r.postMessage(u,window.parent.origin):window.parent.postMessage(u,window.parent.origin),setTimeout(()=>{_||X("Send timeout expired. It could be possible that no handler for the postMessage request exists or that the handler freezed.")},g)})}function p(e,t){const r=async function(n){var g;if(typeof n.data!="string")return;let a;try{a=JSON.parse(n.data)}catch{return}if(!P(a)||a._type!==e)return;z(a);const d=await Promise.resolve(t(a._data,{_event_:n})),u={_callbackId:a._callbackId,_type:a._type,_response:d!=null?d:null},_=JSON.stringify(u);n.source?n.source.postMessage(_,{targetOrigin:(g=n.source.origin)!=null?g:"*"}):window.postMessage(_,window.origin)};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)}function E(e,t){return p(e,t)}function c(e,t){return r=>f(e,w(w({},t),r))}function M(e){return t=>E(e,t)}(async()=>{p("__registerWindow__",(e,t)=>{t._event_.source?m.add(t._event_.source):m.add(window)}),await f("__registerWindow__",{})})().catch(e=>console.error(e));function P(e){const t=e;return!!t._type&&!!t._data&&!!t._callbackId}function T(e){const t=e;return!!t._type&&!!t.hasOwnProperty("_response")&&!!t._callbackId}const j=c("windowRedirect"),v=c("windowReload",{});var C=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",redirect:j,reload:v});const J=c("notificationDispatch");var N=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",dispatch:J});const H=c("contextLanguage",{}),q=M("contextLanguage"),$=c("contextEnvironment",{}),U=c("contextLocale",{}),W=M("contextLocale"),A=c("contextCurrency",{});var B=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",getLanguage:H,subscribeLanguage:q,getEnvironment:$,getLocale:U,subscribeLocale:W,getCurrency:A});const F=c("uiComponentSectionRenderer");var G=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",add:F});const K={componentSection:G};o.context=B,o.notification=N,o.ui=K,o.window=C,Object.defineProperty(o,"__esModule",{value:!0}),o[Symbol.toStringTag]="Module"});
var ee=Object.defineProperty;var D=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var I=(o,s,i)=>s in o?ee(o,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[s]=i,w=(o,s)=>{for(var i in s||(s={}))te.call(s,i)&&I(o,i,s[i]);if(D)for(var i of D(s))ne.call(s,i)&&I(o,i,s[i]);return o};(function(o,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(o=typeof globalThis!="undefined"?globalThis:o||self,s(o.sw={}))})(this,function(o){"use strict";function s(){return String(Date.now().toString(36)+Math.random().toString(36).substr(2))}function i(e,t){for(let r in e){const n=e[r];t.apply(this,[e,r,n]),y(n)&&i(n,t)}}function y(e){return e!==null&&typeof e=="object"}function O(e){E(e)}function x(e){R(e)}const h={};let b=!1;function z(){b||(b=!0,p("__function__",async({args:e,id:t})=>await Promise.resolve(h[t](...e))))}function E(e){i(e,(t,r,n)=>{if(typeof n=="function"){const a=s();h[a]=n,t[r]={__type__:"__function__",id:a},z()}})}function R(e){i(e,(t,r,n)=>{if(y(n)&&n.__type__&&n.__type__==="__function__"&&typeof n.id=="string"){const a=n.id;t[r]=(...d)=>f("__function__",{args:d,id:a})}})}const m=new Set;function f(e,t,r){const n=s(),a=t!=null?t:{},d={_type:e,_data:a,_callbackId:n};O(d);const u=JSON.stringify(d);let _=!1;const g=3e3;return new Promise((Z,V)=>{const S=function(L){if(typeof L.data!="string")return;let l;try{l=JSON.parse(L.data)}catch{return}!j(l)||l._callbackId===n&&(!l.hasOwnProperty("_response")||(window.removeEventListener("message",S),_||(_=!0,Z(l._response))))};window.addEventListener("message",S),window.parent.__Cypress__?r?r.postMessage(u,window.parent.origin):window.postMessage(u,window.parent.origin):r?r.postMessage(u,window.parent.origin):window.parent.postMessage(u,window.parent.origin),setTimeout(()=>{_||V("Send timeout expired. It could be possible that no handler for the postMessage request exists or that the handler freezed.")},g)})}function p(e,t){const r=async function(n){var g;if(typeof n.data!="string")return;let a;try{a=JSON.parse(n.data)}catch{return}if(!T(a)||a._type!==e)return;x(a);const d=await Promise.resolve(t(a._data,{_event_:n})),u={_callbackId:a._callbackId,_type:a._type,_response:d!=null?d:null},_=JSON.stringify(u);n.source?n.source.postMessage(_,{targetOrigin:(g=n.source.origin)!=null?g:"*"}):window.postMessage(_,window.origin)};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)}function P(e,t){return p(e,t)}function c(e,t){return r=>f(e,w(w({},t),r))}function M(e){return t=>P(e,t)}(async()=>{p("__registerWindow__",(e,t)=>{t._event_.source?m.add(t._event_.source):m.add(window)}),await f("__registerWindow__",{})})().catch(e=>console.error(e));function T(e){const t=e;return!!t._type&&!!t._data&&!!t._callbackId}function j(e){const t=e;return!!t._type&&!!t.hasOwnProperty("_response")&&!!t._callbackId}const k=c("windowRedirect"),v=c("windowReload",{});var N=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",redirect:k,reload:v});const C=c("notificationDispatch");var H=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",dispatch:C});const J=c("contextLanguage",{}),$=M("contextLanguage"),q=c("contextEnvironment",{}),A=c("contextLocale",{}),U=M("contextLocale"),W=c("contextCurrency",{});var B=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",getLanguage:J,subscribeLanguage:$,getEnvironment:q,getLocale:A,subscribeLocale:U,getCurrency:W});const F=c("uiComponentSectionRenderer");var G=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",add:F});const K=e=>new URLSearchParams(window.location.search).get("location-id")===e,Q="sw-main-hidden";var X=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",is:K,MAIN_HIDDEN:Q});const Y={componentSection:G};o.context=B,o.location=X,o.notification=H,o.ui=Y,o.window=N,Object.defineProperty(o,"__esModule",{value:!0}),o[Symbol.toStringTag]="Module"});

@@ -5,2 +5,3 @@ import * as window from './window';

import * as componentSection from './ui/componentSection';
import * as location from './location';
declare const ui: {

@@ -12,2 +13,2 @@ componentSection: typeof componentSection;

*/
export { window, notification, context, ui, };
export { window, notification, context, ui, location, };

@@ -5,2 +5,3 @@ import * as window from './window';

import * as componentSection from './ui/componentSection';
import * as location from './location';
const ui = {

@@ -12,3 +13,3 @@ componentSection,

*/
export { window, notification, context, ui, };
export { window, notification, context, ui, location, };
//# sourceMappingURL=index.js.map
{
"name": "@shopware-ag/admin-extension-sdk",
"version": "0.0.21",
"version": "0.0.22",
"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",

@@ -5,2 +5,3 @@ import * as window from './window';

import * as componentSection from './ui/componentSection';
import * as location from './location';
declare const ui: {

@@ -12,2 +13,2 @@ componentSection: typeof componentSection;

*/
export { window, notification, context, ui, };
export { window, notification, context, ui, location, };

@@ -26,3 +26,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "./window", "./notification", "./context", "./ui/componentSection"], factory);
define(["require", "exports", "./window", "./notification", "./context", "./ui/componentSection", "./location"], factory);
}

@@ -32,3 +32,3 @@ })(function (require, exports) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.ui = exports.context = exports.notification = exports.window = void 0;
exports.location = exports.ui = exports.context = exports.notification = exports.window = void 0;
const window = __importStar(require("./window"));

@@ -41,2 +41,4 @@ exports.window = window;

const componentSection = __importStar(require("./ui/componentSection"));
const location = __importStar(require("./location"));
exports.location = location;
const ui = {

@@ -43,0 +45,0 @@ componentSection,

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