@attributech/nuxt-drupal-utils 0.2.3 → 0.3.1

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
@@ -2,11 +2,11 @@
2
2
  "name": "@attributech/nuxt-drupal-utils",
3
3
  "configKey": "drupalUtils",
4
4
  "compatibility": {
5
- "nuxt": "^2.16.0 || ^3.0.0"
5
+ "nuxt": "^3.0.0 || ^4.0.0"
6
6
  },
7
- "version": "0.2.1",
7
+ "version": "0.3.1",
8
8
  "builder": {
9
- "@nuxt/module-builder": "0.8.4",
10
- "unbuild": "2.0.0"
9
+ "@nuxt/module-builder": "1.0.2",
10
+ "unbuild": "unknown"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -1,20 +1,19 @@
1
1
  import { defineNuxtModule, createResolver, addImportsDir } from '@nuxt/kit';
2
2
  export { getApiUrl, getAppUrl, getLagoonDevelopmentDomain, getServerUrl } from '../dist/runtime/utils/index.js';
3
3
 
4
- const module = defineNuxtModule({
4
+ const module$1 = defineNuxtModule({
5
5
  meta: {
6
6
  name: "@attributech/nuxt-drupal-utils",
7
7
  configKey: "drupalUtils",
8
8
  compatibility: {
9
- // Compatible with Nuxt 2.16+ (with Bridge) and Nuxt 3
10
- nuxt: "^2.16.0 || ^3.0.0"
9
+ nuxt: "^3.0.0 || ^4.0.0"
11
10
  }
12
11
  },
13
12
  defaults: {},
14
- setup(options, nuxt) {
13
+ setup() {
15
14
  const resolver = createResolver(import.meta.url);
16
15
  addImportsDir(resolver.resolve("./runtime/utils"));
17
16
  }
18
17
  });
19
18
 
20
- export { module as default };
19
+ export { module$1 as default };
package/dist/types.d.mts CHANGED
@@ -1,7 +1,9 @@
1
1
  import type { NuxtModule } from '@nuxt/schema'
2
2
 
3
- import type { default as Module } from './module.js'
3
+ import type { default as Module } from './module.mjs'
4
4
 
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
- export { type getApiUrl, type getAppUrl, type getLagoonDevelopmentDomain, type getServerUrl } from './module.js'
7
+ export { type getApiUrl, type getAppUrl, type getLagoonDevelopmentDomain, type getServerUrl } from '../dist/runtime/utils/index.js'
8
+
9
+ export { default } from './module.mjs'
package/package.json CHANGED
@@ -1,43 +1,16 @@
1
1
  {
2
2
  "name": "@attributech/nuxt-drupal-utils",
3
- "version": "0.2.3",
4
- "description": "Shared utilities for Nuxt 3 projects with Drupal backend",
3
+ "version": "0.3.1",
4
+ "description": "Shared utilities for Nuxt projects with Drupal backend",
5
5
  "type": "module",
6
6
  "exports": {
7
- ".": {
8
- "import": {
9
- "types": "./dist/types.d.ts",
10
- "default": "./dist/module.mjs"
11
- },
12
- "require": {
13
- "types": "./dist/types.d.ts",
14
- "default": "./dist/module.cjs"
15
- }
16
- },
17
- "./dist/runtime/utils/index.js": {
18
- "require": {
19
- "types": "./dist/runtime/utils/index.d.ts",
20
- "default": "./dist/runtime/utils/index.js"
21
- }
22
- }
7
+ ".": "./dist/module.mjs"
23
8
  },
24
- "main": "./dist/module.cjs",
25
- "module": "./dist/module.mjs",
26
- "types": "./dist/types.d.ts",
9
+ "main": "./dist/module.mjs",
10
+ "types": "dist/types.d.mts",
27
11
  "files": [
28
12
  "dist"
29
13
  ],
30
- "scripts": {
31
- "build": "nuxt-module-build build",
32
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
33
- "lint": "eslint .",
34
- "lint:fix": "eslint . --fix",
35
- "test": "vitest run",
36
- "test:watch": "vitest",
37
- "test:coverage": "vitest run --coverage",
38
- "test:ui": "vitest --ui",
39
- "release": "release-it"
40
- },
41
14
  "keywords": [
42
15
  "nuxt",
43
16
  "drupal",
@@ -46,25 +19,25 @@
46
19
  ],
47
20
  "license": "MIT",
48
21
  "peerDependencies": {
49
- "nuxt": "^2.16.0 || ^3.0.0"
22
+ "nuxt": "^3.0.0 || ^4.0.0"
50
23
  },
51
24
  "dependencies": {
52
- "@nuxt/kit": "^3.14.0"
25
+ "@nuxt/kit": "^4.4.6"
53
26
  },
54
27
  "devDependencies": {
55
- "@nuxt/eslint-config": "^1.1.0",
56
- "@nuxt/module-builder": "^0.8.4",
57
- "@nuxt/types": "^2.16.0",
58
- "@types/node": "^20.11.0",
59
- "@vitest/coverage-v8": "^3.0.7",
60
- "@vitest/ui": "^3.0.7",
61
- "c8": "^10.1.3",
62
- "eslint": "^9.21.0",
28
+ "@nuxt/eslint-config": "^1.15.2",
29
+ "@nuxt/module-builder": "^1.0.2",
30
+ "@nuxt/types": "^2.18.1",
31
+ "@types/node": "^25.9.1",
32
+ "@vitest/coverage-v8": "^4.1.7",
33
+ "@vitest/ui": "^4.1.7",
34
+ "c8": "^11.0.0",
35
+ "eslint": "^10.4.0",
63
36
  "eslint-plugin-vitest": "^0.5.4",
64
- "happy-dom": "^17.2.2",
65
- "release-it": "^18.1.2",
66
- "typescript": "^5.6.3",
67
- "vitest": "^3.0.7"
37
+ "happy-dom": "^20.9.0",
38
+ "release-it": "^20.0.1",
39
+ "typescript": "^6.0.3",
40
+ "vitest": "^4.1.7"
68
41
  },
69
42
  "publishConfig": {
70
43
  "access": "public"
@@ -77,5 +50,17 @@
77
50
  "github": {
78
51
  "release": true
79
52
  }
53
+ },
54
+ "scripts": {
55
+ "build": "nuxt-module-build build",
56
+ "dev": "nuxi dev playground",
57
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
58
+ "lint": "eslint .",
59
+ "lint:fix": "eslint . --fix",
60
+ "test": "vitest run",
61
+ "test:watch": "vitest",
62
+ "test:coverage": "vitest run --coverage",
63
+ "test:ui": "vitest --ui",
64
+ "release": "release-it"
80
65
  }
81
- }
66
+ }
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { ModuleOptions } from 'nuxt/schema';
3
- export { getApiUrl, getAppUrl, getLagoonDevelopmentDomain, getServerUrl } from '../dist/runtime/utils/index.js';
4
-
5
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
-
7
- export { _default as default };
package/dist/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { type getApiUrl, type getAppUrl, type getLagoonDevelopmentDomain, type getServerUrl } from './module'