@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 +4 -4
- package/dist/module.mjs +4 -5
- package/dist/types.d.mts +4 -2
- package/package.json +32 -47
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -7
- package/dist/types.d.ts +0 -7
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": "^
|
|
5
|
+
"nuxt": "^3.0.0 || ^4.0.0"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.3.1",
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "0.
|
|
10
|
-
"unbuild": "
|
|
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
|
-
|
|
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(
|
|
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.
|
|
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 '
|
|
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.
|
|
4
|
-
"description": "Shared utilities for Nuxt
|
|
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.
|
|
25
|
-
"
|
|
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": "^
|
|
22
|
+
"nuxt": "^3.0.0 || ^4.0.0"
|
|
50
23
|
},
|
|
51
24
|
"dependencies": {
|
|
52
|
-
"@nuxt/kit": "^
|
|
25
|
+
"@nuxt/kit": "^4.4.6"
|
|
53
26
|
},
|
|
54
27
|
"devDependencies": {
|
|
55
|
-
"@nuxt/eslint-config": "^1.
|
|
56
|
-
"@nuxt/module-builder": "^0.
|
|
57
|
-
"@nuxt/types": "^2.
|
|
58
|
-
"@types/node": "^
|
|
59
|
-
"@vitest/coverage-v8": "^
|
|
60
|
-
"@vitest/ui": "^
|
|
61
|
-
"c8": "^
|
|
62
|
-
"eslint": "^
|
|
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": "^
|
|
65
|
-
"release-it": "^
|
|
66
|
-
"typescript": "^
|
|
67
|
-
"vitest": "^
|
|
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
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'
|