nuxt-charts 2.1.1-test.4 → 2.1.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 +2 -2
- package/dist/module.mjs +36 -26
- package/dist/types.d.mts +2 -6
- package/package.json +14 -12
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -28
- package/dist/types.d.ts +0 -7
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -49,7 +49,7 @@ const resolveImports = (config, filePath) => {
|
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
const module = defineNuxtModule({
|
|
52
|
+
const module$1 = defineNuxtModule({
|
|
53
53
|
meta: {
|
|
54
54
|
name: "nuxt-charts",
|
|
55
55
|
configKey: "nuxtCharts",
|
|
@@ -63,41 +63,51 @@ const module = defineNuxtModule({
|
|
|
63
63
|
autoImports: true,
|
|
64
64
|
include: []
|
|
65
65
|
},
|
|
66
|
+
moduleDependencies: {},
|
|
66
67
|
async setup(options, nuxt) {
|
|
67
|
-
const deps = [
|
|
68
|
+
const deps = [
|
|
69
|
+
"vue-chrts",
|
|
70
|
+
"@unovis/ts",
|
|
71
|
+
"@unovis/vue",
|
|
72
|
+
"d3-geo",
|
|
73
|
+
"proj4",
|
|
74
|
+
"@turf/boolean-point-in-polygon"
|
|
75
|
+
];
|
|
68
76
|
addVitePlugin(() => ({
|
|
69
|
-
name: "
|
|
70
|
-
|
|
71
|
-
if (
|
|
77
|
+
name: "nuxt-charts:config",
|
|
78
|
+
configEnvironment(name, config) {
|
|
79
|
+
if (name === "client") {
|
|
72
80
|
config.optimizeDeps = config.optimizeDeps || {};
|
|
73
81
|
config.optimizeDeps.include = config.optimizeDeps.include || [];
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
config.optimizeDeps.include.push(dep);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
config.build = config.build || {};
|
|
80
|
-
config.build.commonjsOptions = config.build.commonjsOptions || {};
|
|
81
|
-
config.build.commonjsOptions.transformMixedEsModules = true;
|
|
82
|
-
} else if (env.name === "server") {
|
|
82
|
+
config.optimizeDeps.include.push(...deps);
|
|
83
|
+
} else if (name === "server") {
|
|
83
84
|
config.ssr = config.ssr || {};
|
|
84
85
|
config.ssr.noExternal = config.ssr.noExternal || [];
|
|
85
86
|
if (Array.isArray(config.ssr.noExternal)) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
config.ssr.noExternal.push(...deps);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
// Fallback for Vite 5/4
|
|
92
|
+
config(config) {
|
|
93
|
+
config.optimizeDeps = config.optimizeDeps || {};
|
|
94
|
+
config.optimizeDeps.include = config.optimizeDeps.include || [];
|
|
95
|
+
deps.forEach((dep) => {
|
|
96
|
+
if (!config.optimizeDeps.include.includes(dep)) {
|
|
97
|
+
config.optimizeDeps.include.push(dep);
|
|
91
98
|
}
|
|
99
|
+
});
|
|
100
|
+
config.ssr = config.ssr || {};
|
|
101
|
+
config.ssr.noExternal = config.ssr.noExternal || [];
|
|
102
|
+
if (Array.isArray(config.ssr.noExternal)) {
|
|
103
|
+
deps.forEach((dep) => {
|
|
104
|
+
if (!config.ssr.noExternal.includes(dep)) {
|
|
105
|
+
config.ssr.noExternal.push(dep);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
92
108
|
}
|
|
93
109
|
}
|
|
94
110
|
}));
|
|
95
|
-
nuxt.options.build.transpile = nuxt.options.build.transpile || [];
|
|
96
|
-
for (const dep of deps) {
|
|
97
|
-
if (!nuxt.options.build.transpile.includes(dep)) {
|
|
98
|
-
nuxt.options.build.transpile.push(dep);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
111
|
const { resolve } = createResolver(import.meta.url);
|
|
102
112
|
const runtimePath = resolve("./runtime/vue-chrts");
|
|
103
113
|
resolveImports(options);
|
|
@@ -105,4 +115,4 @@ const module = defineNuxtModule({
|
|
|
105
115
|
}
|
|
106
116
|
});
|
|
107
117
|
|
|
108
|
-
export { module as default };
|
|
118
|
+
export { module$1 as default };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export { default } from './module.mjs'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
-
|
|
7
|
-
export { default } from './module.js'
|
|
3
|
+
export { type ModuleOptions } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-charts",
|
|
3
|
-
"version": "2.1.1
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Nuxt module for vue-chrts",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"import": "./dist/module.mjs"
|
|
10
|
-
"require": "./dist/module.cjs"
|
|
9
|
+
"import": "./dist/module.mjs"
|
|
11
10
|
}
|
|
12
11
|
},
|
|
13
|
-
"main": "./dist/module.
|
|
12
|
+
"main": "./dist/module.mjs",
|
|
14
13
|
"module": "./dist/module.mjs",
|
|
15
14
|
"files": [
|
|
16
15
|
"dist"
|
|
17
16
|
],
|
|
18
17
|
"dependencies": {
|
|
19
|
-
"vue-chrts": "2.1.
|
|
18
|
+
"vue-chrts": "2.1.1"
|
|
20
19
|
},
|
|
21
20
|
"devDependencies": {
|
|
22
21
|
"@nuxt/eslint": "^1.7.1",
|
|
23
|
-
"@nuxt/eslint-config": "^1.7.1",
|
|
24
22
|
"@nuxt/kit": "^4.3.0",
|
|
25
|
-
"
|
|
23
|
+
"commit-and-tag-version": "^12.5.1",
|
|
24
|
+
"@nuxt/devtools": "^3.1.1",
|
|
25
|
+
"@nuxt/eslint-config": "^1.13.0",
|
|
26
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
26
27
|
"@nuxt/schema": "^4.3.0",
|
|
27
|
-
"@
|
|
28
|
+
"@nuxt/test-utils": "^3.23.0",
|
|
29
|
+
"@types/node": "latest",
|
|
28
30
|
"changelogen": "^0.6.2",
|
|
29
|
-
"
|
|
30
|
-
"eslint": "^9.0.0",
|
|
31
|
+
"eslint": "^9.39.2",
|
|
31
32
|
"nuxt": "^4.3.0",
|
|
32
|
-
"typescript": "
|
|
33
|
-
"vitest": "^
|
|
33
|
+
"typescript": "~5.9.3",
|
|
34
|
+
"vitest": "^4.0.18",
|
|
35
|
+
"vue-tsc": "^3.2.4"
|
|
34
36
|
},
|
|
35
37
|
"packageManager": "pnpm@8.15.4+sha256.cea6d0bdf2de3a0549582da3983c70c92ffc577ff4410cbf190817ddc35137c2",
|
|
36
38
|
"scripts": {
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
|
|
3
|
-
interface ModuleOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Prefix for component names
|
|
6
|
-
* @default ''
|
|
7
|
-
*/
|
|
8
|
-
prefix?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Register global components
|
|
11
|
-
* @default true
|
|
12
|
-
*/
|
|
13
|
-
global?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Use auto-imports (recommended)
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
autoImports?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Components to include (empty array means all components)
|
|
21
|
-
* @default []
|
|
22
|
-
*/
|
|
23
|
-
include?: string[];
|
|
24
|
-
}
|
|
25
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
26
|
-
|
|
27
|
-
export { _default as default };
|
|
28
|
-
export type { ModuleOptions };
|
package/dist/types.d.ts
DELETED