@redneckz/wildless-cms-uni-blocks 0.14.367 → 0.14.368
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/bundle/bundle.umd.js +5 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/utils/url.d.ts +1 -1
- package/dist/utils/url.d.ts +1 -1
- package/dist/utils/url.js +4 -1
- package/dist/utils/url.js.map +1 -1
- package/lib/utils/url.d.ts +1 -1
- package/lib/utils/url.js +4 -1
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +5 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/utils/url.d.ts +1 -1
- package/mobile/dist/utils/url.d.ts +1 -1
- package/mobile/dist/utils/url.js +4 -1
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/utils/url.d.ts +1 -1
- package/mobile/lib/utils/url.js +4 -1
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/utils/url.ts +6 -1
- package/package.json +1 -1
- package/src/utils/url.ts +6 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -297,7 +297,10 @@
|
|
|
297
297
|
const isHash = (href) => Boolean(href?.startsWith('#'));
|
|
298
298
|
const withoutQuery = (href) => (href || '').replace(/\?.*/, '').replace(/\/$/, '');
|
|
299
299
|
const joinPath = (...path) => path.filter(Boolean).join('/').replace(/\/+/g, '/');
|
|
300
|
-
const hasPrefix = (href, prefix) => prefix &&
|
|
300
|
+
const hasPrefix = (href, prefix) => Boolean(prefix &&
|
|
301
|
+
href &&
|
|
302
|
+
href.startsWith(prefix) &&
|
|
303
|
+
[prefix === '/', href === prefix, href[prefix.length] === '/'].some(Boolean));
|
|
301
304
|
|
|
302
305
|
var url = /*#__PURE__*/Object.freeze({
|
|
303
306
|
__proto__: null,
|
|
@@ -6314,7 +6317,7 @@
|
|
|
6314
6317
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6315
6318
|
});
|
|
6316
6319
|
|
|
6317
|
-
const packageVersion = "0.14.
|
|
6320
|
+
const packageVersion = "0.14.367";
|
|
6318
6321
|
|
|
6319
6322
|
exports.Blocks = Blocks;
|
|
6320
6323
|
exports.ContentPage = ContentPage;
|