@attributech/nuxt-drupal-utils 0.2.0 → 0.2.2
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.d.mts +1 -4
- package/dist/module.d.ts +1 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -7
- package/dist/runtime/utils/index.d.ts +4 -4
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +18 -5
- package/dist/runtime/plugin.d.ts +0 -2
- package/dist/runtime/plugin.js +0 -10
package/dist/module.d.mts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { ModuleOptions } from 'nuxt/schema';
|
|
3
|
-
export { getApiUrl } from '../dist/runtime/utils/
|
|
4
|
-
export { getAppUrl } from '../dist/runtime/utils/getAppUrl.js';
|
|
5
|
-
export { getServerUrl } from '../dist/runtime/utils/getServerUrl.js';
|
|
6
|
-
export { getLagoonDevelopmentDomain } from '../dist/runtime/utils/getLagoonDevelopmentDomain.js';
|
|
3
|
+
export { getApiUrl, getAppUrl, getLagoonDevelopmentDomain, getServerUrl } from '../dist/runtime/utils/index.js';
|
|
7
4
|
|
|
8
5
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
9
6
|
|
package/dist/module.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { ModuleOptions } from 'nuxt/schema';
|
|
3
|
-
export { getApiUrl } from '../dist/runtime/utils/
|
|
4
|
-
export { getAppUrl } from '../dist/runtime/utils/getAppUrl.js';
|
|
5
|
-
export { getServerUrl } from '../dist/runtime/utils/getServerUrl.js';
|
|
6
|
-
export { getLagoonDevelopmentDomain } from '../dist/runtime/utils/getLagoonDevelopmentDomain.js';
|
|
3
|
+
export { getApiUrl, getAppUrl, getLagoonDevelopmentDomain, getServerUrl } from '../dist/runtime/utils/index.js';
|
|
7
4
|
|
|
8
5
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
9
6
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver,
|
|
2
|
-
export { getApiUrl } from '../dist/runtime/utils/
|
|
3
|
-
export { getAppUrl } from '../dist/runtime/utils/getAppUrl.js';
|
|
4
|
-
export { getServerUrl } from '../dist/runtime/utils/getServerUrl.js';
|
|
5
|
-
export { getLagoonDevelopmentDomain } from '../dist/runtime/utils/getLagoonDevelopmentDomain.js';
|
|
1
|
+
import { defineNuxtModule, createResolver, addImportsDir } from '@nuxt/kit';
|
|
2
|
+
export { getApiUrl, getAppUrl, getLagoonDevelopmentDomain, getServerUrl } from '../dist/runtime/utils/index.js';
|
|
6
3
|
|
|
7
4
|
const module = defineNuxtModule({
|
|
8
5
|
meta: {
|
|
@@ -16,9 +13,7 @@ const module = defineNuxtModule({
|
|
|
16
13
|
defaults: {},
|
|
17
14
|
setup(options, nuxt) {
|
|
18
15
|
const resolver = createResolver(import.meta.url);
|
|
19
|
-
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
20
16
|
addImportsDir(resolver.resolve("./runtime/utils"));
|
|
21
|
-
nuxt.options.alias["#nuxt-drupal-utils/utils"] = resolver.resolve("./runtime/utils");
|
|
22
17
|
}
|
|
23
18
|
});
|
|
24
19
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getApiUrl } from
|
|
2
|
-
export { getAppUrl } from
|
|
3
|
-
export { getServerUrl } from
|
|
4
|
-
export { getLagoonDevelopmentDomain } from
|
|
1
|
+
export { getApiUrl } from './getApiUrl.js';
|
|
2
|
+
export { getAppUrl } from './getAppUrl.js';
|
|
3
|
+
export { getServerUrl } from './getServerUrl.js';
|
|
4
|
+
export { getLagoonDevelopmentDomain } from './getLagoonDevelopmentDomain.js';
|
package/dist/types.d.mts
CHANGED
|
@@ -4,4 +4,4 @@ import type { default as Module } from './module.js'
|
|
|
4
4
|
|
|
5
5
|
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
6
|
|
|
7
|
-
export { type getApiUrl } from './module.js'
|
|
7
|
+
export { type getApiUrl, type getAppUrl, type getLagoonDevelopmentDomain, type getServerUrl } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import type { default as Module } from './module'
|
|
|
4
4
|
|
|
5
5
|
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
6
|
|
|
7
|
-
export { type getApiUrl } from './module'
|
|
7
|
+
export { type getApiUrl, type getAppUrl, type getLagoonDevelopmentDomain, type getServerUrl } from './module'
|
package/package.json
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attributech/nuxt-drupal-utils",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Shared utilities for Nuxt 3 projects with Drupal backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"import":
|
|
9
|
-
|
|
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
|
+
}
|
|
10
22
|
}
|
|
11
23
|
},
|
|
12
|
-
"main": "./dist/module.
|
|
13
|
-
"
|
|
24
|
+
"main": "./dist/module.cjs",
|
|
25
|
+
"module": "./dist/module.mjs",
|
|
26
|
+
"types": "./dist/types.d.ts",
|
|
14
27
|
"files": [
|
|
15
28
|
"dist"
|
|
16
29
|
],
|
package/dist/runtime/plugin.d.ts
DELETED
package/dist/runtime/plugin.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getApiUrl } from "./utils/getApiUrl.js";
|
|
2
|
-
import { getAppUrl } from "./utils/getAppUrl.js";
|
|
3
|
-
import { getServerUrl } from "./utils/getServerUrl.js";
|
|
4
|
-
import { getLagoonDevelopmentDomain } from "./utils/getLagoonDevelopmentDomain.js";
|
|
5
|
-
export default (context, inject) => {
|
|
6
|
-
inject("getApiUrl", getApiUrl);
|
|
7
|
-
inject("getAppUrl", getAppUrl);
|
|
8
|
-
inject("getServerUrl", getServerUrl);
|
|
9
|
-
inject("getLagoonDevelopmentDomain", getLagoonDevelopmentDomain);
|
|
10
|
-
};
|