@plentymarkets/shop-core 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shop-core",
3
3
  "configKey": "shopCore",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -115,7 +115,7 @@ export const useCookieBar = () => {
115
115
  export const fetchScripts = (scripts) => {
116
116
  scripts.forEach((script) => {
117
117
  try {
118
- if (checkIfScriptIsExternal(script)) {
118
+ if (checkIfScriptIsExternal(script) && document) {
119
119
  const scriptElement = document.createElement("script");
120
120
  scriptElement.setAttribute("src", script);
121
121
  scriptElement.setAttribute("type", "text/javascript");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plentymarkets/shop-core",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Core module for PlentyONE Shop",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
42
42
  },
43
43
  "dependencies": {
44
- "@plentymarkets/shop-api": "^0.88.0",
44
+ "@plentymarkets/shop-api": "^0.90.1",
45
45
  "mitt": "^3.0.1"
46
46
  },
47
47
  "devDependencies": {