@ciwergrp/nuxid 1.5.5 → 1.5.6

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": "@ciwergrp/nuxid",
3
3
  "configKey": "nuxid",
4
- "version": "1.5.5",
4
+ "version": "1.5.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -174,7 +174,7 @@ function resolveElementPlusOptions(input) {
174
174
  }
175
175
 
176
176
  const helperDefaults = {
177
- enabled: false,
177
+ enabled: true,
178
178
  config: {
179
179
  style: "factory",
180
180
  localeSource: "cookie",
@@ -1,6 +1,10 @@
1
- import slugify from "@sindresorhus/slugify";
1
+ import * as slugifyModule from "@sindresorhus/slugify";
2
2
  import { defaultLocale } from "./locale.js";
3
+ const slugify = slugifyModule.default;
3
4
  export function slug(value, separator = "-") {
5
+ if (!slugify) {
6
+ throw new Error("Slugify is unavailable.");
7
+ }
4
8
  return slugify(value, {
5
9
  separator,
6
10
  locale: defaultLocale()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciwergrp/nuxid",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "All-in-one essential modules for Nuxt",
5
5
  "repository": {
6
6
  "type": "git",