nuxt-ollama 1.0.16 → 1.1.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/README.md +10 -5
- package/dist/module.d.mts +7 -1
- package/dist/module.json +4 -4
- package/dist/module.mjs +1 -1
- package/dist/types.d.mts +2 -6
- package/package.json +27 -30
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -13
- package/dist/types.d.ts +0 -7
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# <img src="./nuxt-ollama.png" style="width:
|
|
1
|
+
# <img src="./nuxt-ollama.png" style="width:50px;"> Nuxt Ollama
|
|
2
2
|
|
|
3
3
|
[![npm version][npm-version-src]][npm-version-href]
|
|
4
4
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
@@ -18,9 +18,14 @@ You have to install Ollama to use this module. See [Official Website](https://ol
|
|
|
18
18
|
## Quick Setup
|
|
19
19
|
|
|
20
20
|
Install the module to your Nuxt application with one command:
|
|
21
|
-
|
|
21
|
+
- using npm
|
|
22
22
|
```bash
|
|
23
23
|
npx nuxi module add nuxt-ollama
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
- using pnpm
|
|
27
|
+
```bash
|
|
28
|
+
pnpx nuxi module add nuxt-ollama
|
|
24
29
|
```
|
|
25
30
|
|
|
26
31
|
That's it! You can now use Nuxt Ollama in your Nuxt app ✨
|
|
@@ -72,13 +77,13 @@ Contributions are welcome, feel free to open an issue or submit a pull request!
|
|
|
72
77
|
|
|
73
78
|
```bash
|
|
74
79
|
# Install dependencies
|
|
75
|
-
|
|
80
|
+
pnpm install
|
|
76
81
|
|
|
77
82
|
# Generate type stubs
|
|
78
|
-
|
|
83
|
+
pnpm run dev:prepare
|
|
79
84
|
|
|
80
85
|
# Develop with the playground
|
|
81
|
-
|
|
86
|
+
pnpm run dev
|
|
82
87
|
```
|
|
83
88
|
|
|
84
89
|
</details>
|
package/dist/module.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
interface OllamaOptions {
|
|
4
|
+
protocol: string;
|
|
5
|
+
host: string;
|
|
6
|
+
port: number;
|
|
7
|
+
proxy: boolean;
|
|
8
|
+
}
|
|
3
9
|
|
|
4
10
|
interface ModuleOptions extends OllamaOptions {
|
|
5
11
|
protocol: string;
|
package/dist/module.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "nuxt-ollama",
|
|
3
3
|
"configKey": "ollama",
|
|
4
4
|
"compatibility": {
|
|
5
|
-
"nuxt": ">=
|
|
5
|
+
"nuxt": ">=4.0.0"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.1.2",
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "0.
|
|
10
|
-
"unbuild": "
|
|
9
|
+
"@nuxt/module-builder": "1.0.2",
|
|
10
|
+
"unbuild": "3.6.1"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ollama",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Easy ollama integration for Nuxt",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,46 +14,43 @@
|
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"types": "./dist/types.d.
|
|
18
|
-
"import": "./dist/module.mjs"
|
|
19
|
-
"require": "./dist/module.cjs"
|
|
17
|
+
"types": "./dist/types.d.mts",
|
|
18
|
+
"import": "./dist/module.mjs"
|
|
20
19
|
}
|
|
21
20
|
},
|
|
22
|
-
"main": "./dist/module.
|
|
23
|
-
"types": "./dist/types.d.ts",
|
|
21
|
+
"main": "./dist/module.mjs",
|
|
24
22
|
"files": [
|
|
25
23
|
"dist"
|
|
26
24
|
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
27
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
28
|
+
"defu": "^6.1.4",
|
|
29
|
+
"ollama": "^0.6.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@nuxt/devtools": "^2.6.5",
|
|
33
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
34
|
+
"@nuxt/kit": "^4.2.0",
|
|
35
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
36
|
+
"@nuxt/schema": "^4.2.0",
|
|
37
|
+
"@nuxt/test-utils": "^3.20.1",
|
|
38
|
+
"@types/node": "latest",
|
|
39
|
+
"changelogen": "^0.5.7",
|
|
40
|
+
"eslint": "^9.38.0",
|
|
41
|
+
"nuxt": "^4.2.0",
|
|
42
|
+
"typescript": "^5.9.3",
|
|
43
|
+
"vitest": "^3.2.4",
|
|
44
|
+
"vue-tsc": "^2.2.12"
|
|
45
|
+
},
|
|
27
46
|
"scripts": {
|
|
28
|
-
"prepack": "nuxt-module-build build",
|
|
29
47
|
"dev": "nuxi dev playground",
|
|
30
48
|
"dev:build": "nuxi build playground",
|
|
31
49
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
32
|
-
"release": "
|
|
50
|
+
"release": "pnpm run lint && pnpm run test && pnpm run prepack && changelogen --release && pnpm publish && git push --follow-tags",
|
|
33
51
|
"lint": "eslint .",
|
|
34
52
|
"test": "vitest run",
|
|
35
53
|
"test:watch": "vitest watch",
|
|
36
54
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^8.24.0",
|
|
40
|
-
"@typescript-eslint/parser": "^8.24.0",
|
|
41
|
-
"defu": "^6.1.4",
|
|
42
|
-
"ollama": "^0.5.13"
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@nuxt/devtools": "^2.0.0",
|
|
46
|
-
"@nuxt/eslint-config": "^1.0.1",
|
|
47
|
-
"@nuxt/kit": "^3.16.2",
|
|
48
|
-
"@nuxt/module-builder": "^0.8.4",
|
|
49
|
-
"@nuxt/schema": "^3.16.2",
|
|
50
|
-
"@nuxt/test-utils": "^3.15.4",
|
|
51
|
-
"@types/node": "latest",
|
|
52
|
-
"changelogen": "^0.5.7",
|
|
53
|
-
"eslint": "^9.20.0",
|
|
54
|
-
"nuxt": "^3.16.2",
|
|
55
|
-
"typescript": "~5.7.3",
|
|
56
|
-
"vitest": "^3.0.5",
|
|
57
|
-
"vue-tsc": "^2.2.0"
|
|
58
55
|
}
|
|
59
|
-
}
|
|
56
|
+
}
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { OllamaOptions } from '~/src/types';
|
|
3
|
-
|
|
4
|
-
interface ModuleOptions extends OllamaOptions {
|
|
5
|
-
protocol: string;
|
|
6
|
-
host: string;
|
|
7
|
-
port: number;
|
|
8
|
-
proxy: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
11
|
-
|
|
12
|
-
export { _default as default };
|
|
13
|
-
export type { ModuleOptions };
|
package/dist/types.d.ts
DELETED