@sfxcode/nuxt-mongocamp-server 1.4.1 → 1.4.3
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 +3 -2
- package/dist/module.d.mts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/server/composables/mongocampServerApi.js +0 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
Install node:
|
|
10
10
|
|
|
11
|
-
**Latest node LTS version required (
|
|
11
|
+
**Latest node LTS version required (24)**
|
|
12
12
|
Use node manager like **nvm** to install.
|
|
13
13
|
|
|
14
14
|
Install pnpm:
|
|
@@ -22,12 +22,13 @@ pnpm install
|
|
|
22
22
|
|
|
23
23
|
### Environment
|
|
24
24
|
|
|
25
|
-
Create .env file in playground with your MongoCamp Parameter
|
|
25
|
+
Create .env file in playground with your MongoCamp Parameter for client authentication and API access.
|
|
26
26
|
|
|
27
27
|
```
|
|
28
28
|
MONGOCAMP_URL=
|
|
29
29
|
MONGOCAMP_ADMIN_USER=
|
|
30
30
|
MONGOCAMP_ADMIN_PASSWORD=
|
|
31
|
+
NITRO_MONGOCAMP_API_KEY=
|
|
31
32
|
```
|
|
32
33
|
|
|
33
34
|
### Run
|
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -18,7 +18,6 @@ export function useMongocampServerApi(url, key, token) {
|
|
|
18
18
|
configuration = new Configuration({ basePath: url, apiKey: key });
|
|
19
19
|
else if (token && token.length > 0)
|
|
20
20
|
configuration = new Configuration({ basePath: url, accessToken: token });
|
|
21
|
-
console.log(configuration);
|
|
22
21
|
const adminApi = new AdminApi(configuration);
|
|
23
22
|
const applicationApi = new ApplicationApi(configuration);
|
|
24
23
|
const authApi = new AuthApi(configuration);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,22 +39,22 @@
|
|
|
39
39
|
"api-codegen": "openapi-generator-cli generate -i ./openapi/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@nuxt/kit": "^4.4.
|
|
43
|
-
"@vueuse/nuxt": "^14.
|
|
42
|
+
"@nuxt/kit": "^4.4.8",
|
|
43
|
+
"@vueuse/nuxt": "^14.3.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@nuxt/devtools": "4.0.0-alpha.
|
|
47
|
-
"@nuxt/eslint-config": "^1.
|
|
46
|
+
"@nuxt/devtools": "4.0.0-alpha.7",
|
|
47
|
+
"@nuxt/eslint-config": "^1.16.0",
|
|
48
48
|
"@nuxt/module-builder": "^1.0.2",
|
|
49
|
-
"@nuxt/schema": "^4.4.
|
|
50
|
-
"@nuxt/test-utils": "^4.0.
|
|
51
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
52
|
-
"@types/node": "^
|
|
53
|
-
"@unocss/nuxt": "66.
|
|
49
|
+
"@nuxt/schema": "^4.4.8",
|
|
50
|
+
"@nuxt/test-utils": "^4.0.3",
|
|
51
|
+
"@openapitools/openapi-generator-cli": "^2.38.0",
|
|
52
|
+
"@types/node": "^26.0.0",
|
|
53
|
+
"@unocss/nuxt": "66.7.2",
|
|
54
54
|
"changelogen": "^0.6.2",
|
|
55
|
-
"eslint": "^10.
|
|
56
|
-
"nuxt": "^4.4.
|
|
57
|
-
"vitest": "^4.1.
|
|
55
|
+
"eslint": "^10.5.0",
|
|
56
|
+
"nuxt": "^4.4.8",
|
|
57
|
+
"vitest": "^4.1.9"
|
|
58
58
|
},
|
|
59
59
|
"packageManager": "pnpm@10.30.0+sha512.2b5753de015d480eeb88f5b5b61e0051f05b4301808a82ec8b840c9d2adf7748eb352c83f5c1593ca703ff1017295bc3fdd3119abb9686efc96b9fcb18200937"
|
|
60
60
|
}
|