@commercetools/frontend-netlify-plugin
Advanced tools
Comparing version 0.0.5 to 0.1.0
{ | ||
"name": "@commercetools/frontend-netlify-plugin", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "Netlify Build plugin - Commercetools Frontend build extension", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -24,2 +24,9 @@ import fetch from "node-fetch"; | ||
if (response) { | ||
const repliedVersion = response.headers.get('Commercetools-Frontend-Extension-Version') | ||
if (repliedVersion !== version) { | ||
console.log(`Version mismatch, got answer from ${repliedVersion} instead of ${version}`) | ||
return {up: false} | ||
} | ||
return await response.json() | ||
@@ -30,3 +37,3 @@ } | ||
} | ||
return { up: false } | ||
return {up: false} | ||
} | ||
@@ -47,3 +54,3 @@ | ||
console.log('Checking if extension is up, attempt: ', attempt) | ||
const { up } = await checkBackend(shortCommitHash) | ||
const {up} = await checkBackend(shortCommitHash) | ||
if (!up) { | ||
@@ -50,0 +57,0 @@ console.error( |
@@ -33,3 +33,3 @@ import * as dotenv from 'dotenv' | ||
if (process.env.NETLIFY_PLUGIN_COMMERCETOOLS_FRONTEND_WAIT_DISABLE !== "1") { | ||
await waitForBackend(shortCommitHash, 35) | ||
await waitForBackend(shortCommitHash, 40) | ||
} | ||
@@ -36,0 +36,0 @@ } catch (error) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5509
104