@lacqjs/nuxt-dict 0.0.7 → 0.0.8
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 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -3
- package/dist/types.d.mts +1 -1
- package/package.json +3 -2
- /package/dist/runtime/{utils → core}/define-adapter.d.ts +0 -0
- /package/dist/runtime/{utils → core}/define-adapter.js +0 -0
package/dist/module.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { ModuleOptions } from '../dist/runtime/types/index.js';
|
|
|
4
4
|
export { DictAdapter, DictItem, DictTranslator, GetDictItemOptions, ModuleOptions, TranslateOptions, TranslatePathOptions, TreeNode } from '../dist/runtime/types/index.js';
|
|
5
5
|
export { DictManager } from '../dist/runtime/core/dict-manager.js';
|
|
6
6
|
export { createDictTranslator } from '../dist/runtime/utils/dict-translator.js';
|
|
7
|
-
export { defineDictAdapter } from '../dist/runtime/
|
|
7
|
+
export { defineDictAdapter } from '../dist/runtime/core/define-adapter.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Nuxt Dict 模块入口。
|
package/dist/module.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ModuleOptions } from '../dist/runtime/types/index.js';
|
|
|
4
4
|
export { DictAdapter, DictItem, DictTranslator, GetDictItemOptions, ModuleOptions, TranslateOptions, TranslatePathOptions, TreeNode } from '../dist/runtime/types/index.js';
|
|
5
5
|
export { DictManager } from '../dist/runtime/core/dict-manager.js';
|
|
6
6
|
export { createDictTranslator } from '../dist/runtime/utils/dict-translator.js';
|
|
7
|
-
export { defineDictAdapter } from '../dist/runtime/
|
|
7
|
+
export { defineDictAdapter } from '../dist/runtime/core/define-adapter.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Nuxt Dict 模块入口。
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineNuxtModule, useLogger, createResolver, addTemplate, addTypeTemplate, addPlugin, addImportsDir } from '@nuxt/kit';
|
|
1
|
+
import { defineNuxtModule, useLogger, createResolver, addTemplate, addTypeTemplate, addPlugin, addImportsDir, addImports } from '@nuxt/kit';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
4
|
import { defaultOptions } from '../dist/runtime/options.js';
|
|
5
5
|
import { createLogger } from '../dist/runtime/utils/logger.js';
|
|
6
6
|
export { createDictTranslator } from '../dist/runtime/utils/dict-translator.js';
|
|
7
|
-
export { defineDictAdapter } from '../dist/runtime/
|
|
7
|
+
export { defineDictAdapter } from '../dist/runtime/core/define-adapter.js';
|
|
8
8
|
|
|
9
9
|
const name = "@lacqjs/nuxt-dict";
|
|
10
|
-
const version = "0.0.
|
|
10
|
+
const version = "0.0.8";
|
|
11
11
|
const devDependencies = {
|
|
12
12
|
nuxt: "^4.4.8"};
|
|
13
13
|
const pkg = {
|
|
@@ -259,6 +259,7 @@ declare module '#build/nuxt-dict/adapters' {
|
|
|
259
259
|
_nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
|
|
260
260
|
addPlugin(resolver.resolve("./runtime/plugins/dict"));
|
|
261
261
|
addImportsDir(resolver.resolve("./runtime/composables"));
|
|
262
|
+
addImports([{ name: "defineDictAdapter", from: resolver.resolve("./runtime/core/define-adapter") }]);
|
|
262
263
|
registerTypeTemplates(resolver, _options.stores);
|
|
263
264
|
_nuxt.hook("prepare:types", ({ references }) => {
|
|
264
265
|
references.push({ types: pkg.name });
|
package/dist/types.d.mts
CHANGED
|
@@ -4,6 +4,6 @@ export { type DictManager } from '../dist/runtime/core/dict-manager.js'
|
|
|
4
4
|
|
|
5
5
|
export { type createDictTranslator } from '../dist/runtime/utils/dict-translator.js'
|
|
6
6
|
|
|
7
|
-
export { type defineDictAdapter } from '../dist/runtime/
|
|
7
|
+
export { type defineDictAdapter } from '../dist/runtime/core/define-adapter.js'
|
|
8
8
|
|
|
9
9
|
export { default } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lacqjs/nuxt-dict",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Nuxt 数据字典模块,提供扁平/树形字典翻译、多语言国际化、三级缓存与 SSR 预取。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@lacqjs/nuxt-dict",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
".": {
|
|
34
34
|
"types": "./dist/module.d.mts",
|
|
35
35
|
"import": "./dist/module.mjs"
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"./runtime/*": "./dist/runtime/*"
|
|
37
38
|
},
|
|
38
39
|
"publishConfig": {
|
|
39
40
|
"access": "public",
|
|
File without changes
|
|
File without changes
|