usemods-nuxt 1.15.0 → 1.16.0

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
@@ -4,9 +4,9 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0 || ^4.0.0"
6
6
  },
7
- "version": "1.15.0",
7
+ "version": "1.16.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
- "unbuild": "3.6.0"
10
+ "unbuild": "3.6.1"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineNuxtModule, addImports } from '@nuxt/kit';
2
2
  import * as utils from 'usemods';
3
3
 
4
- const module = defineNuxtModule({
4
+ const module$1 = defineNuxtModule({
5
5
  meta: {
6
6
  name: "usemods-nuxt",
7
7
  configKey: "usemods",
@@ -15,7 +15,9 @@ const module = defineNuxtModule({
15
15
  },
16
16
  setup(options) {
17
17
  const aliasMap = new Map(options.alias);
18
- const exportedFunctions = Object.keys(utils);
18
+ const exportedFunctions = Object.keys(utils).filter(
19
+ (name) => name !== "default" && typeof utils[name] === "function"
20
+ );
19
21
  for (const name of exportedFunctions) {
20
22
  const alias = aliasMap.has(name) ? aliasMap.get(name) : name;
21
23
  addImports({
@@ -27,4 +29,4 @@ const module = defineNuxtModule({
27
29
  }
28
30
  });
29
31
 
30
- export { module as default };
32
+ export { module$1 as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usemods-nuxt",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Zippy little modifiers and utilities for your Nuxt app.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,16 +22,16 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "@nuxt/kit": "^3.15.4 || ^4.0.0",
25
- "usemods": "1.15.0"
25
+ "usemods": "1.16.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@nuxt/devtools": "^1.7.0",
28
+ "@nuxt/devtools": "^3.1.1",
29
29
  "@nuxt/eslint-config": "^0.7.5",
30
- "@nuxt/module-builder": "^1.0.1",
30
+ "@nuxt/module-builder": "latest",
31
31
  "@nuxt/schema": "^3.15.4 || ^4.0.0",
32
32
  "@nuxt/test-utils": "^3.15.4 || ^4.0.0",
33
33
  "@types/node": "^22.13.1",
34
- "changelogen": "^0.5.7",
34
+ "changelogen": "^0.6.2",
35
35
  "eslint": "^9.19.0",
36
36
  "nuxt": "^3.15.4 || ^4.0.0",
37
37
  "typescript": "^5.7.3",
@@ -41,7 +41,7 @@
41
41
  "scripts": {
42
42
  "dev": "nuxi dev playground",
43
43
  "dev:build": "nuxi build playground",
44
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
44
+ "dev:prepare": "pnpm exec nuxt-module-build build --stub && pnpm exec nuxt-module-build prepare && nuxi prepare playground",
45
45
  "release": "pnpm run dev:prepare && pnpm run test && pnpm run prepack && pnpm publish --no-git-checks",
46
46
  "test": "vitest run",
47
47
  "test:watch": "vitest watch",