ultimate-jekyll-manager 0.0.186 → 0.0.188
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.
|
@@ -151,8 +151,8 @@ const createCustomAd = ($vertUnit, config) => {
|
|
|
151
151
|
const iframeId = `vert-${window.__ujVertIdCounter = (window.__ujVertIdCounter || 0) + 1}`;
|
|
152
152
|
|
|
153
153
|
// Build base URL for the ad content
|
|
154
|
-
// Use local server if debug=true OR if we're in development mode
|
|
155
|
-
const baseURL = (qsDebug || webManager.isDevelopment())
|
|
154
|
+
// Use local server if debug=true OR if we're in development mode AND on promo-server
|
|
155
|
+
const baseURL = (qsDebug || (webManager.isDevelopment() && webManager.config.brand.id === 'promo-server'))
|
|
156
156
|
? `${window.location.protocol}//${window.location.host}/verts/main`
|
|
157
157
|
: 'https://promo-server.itwcreativeworks.com/verts/main';
|
|
158
158
|
|
package/dist/commands/setup.js
CHANGED
|
@@ -790,16 +790,14 @@ async function deduplicatePosts() {
|
|
|
790
790
|
// Run migrations based on installed version
|
|
791
791
|
async function migrate() {
|
|
792
792
|
const installedVersion = project.devDependencies[package.name] || '0.0.0';
|
|
793
|
-
console.log('---installedVersion', installedVersion);
|
|
794
|
-
console.log('****', version.is(installedVersion, '<=', '0.0.184'));
|
|
795
793
|
|
|
796
794
|
// Skip if using local version
|
|
797
795
|
if (installedVersion.startsWith('file:')) {
|
|
798
796
|
return;
|
|
799
797
|
}
|
|
800
798
|
|
|
801
|
-
// Migrate hooks to nested structure (
|
|
802
|
-
if (version.is(installedVersion, '<=', '0.0
|
|
799
|
+
// Migrate hooks to nested structure (introduced in 0.0.185)
|
|
800
|
+
if (version.is(installedVersion, '<=', '1.0.0')) {
|
|
803
801
|
await migrateHooksToNestedStructure();
|
|
804
802
|
}
|
|
805
803
|
}
|