@sfxcode/nuxt-mongocamp-server 1.2.5 → 1.2.6
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 +1 -1
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/CollectionApi.d.ts +3 -3
- package/dist/runtime/api/runtime.d.ts +4 -1
- package/dist/runtime/api/runtime.js +9 -4
- package/dist/runtime/composables/mongocampAuth.d.ts +3 -3
- package/package.json +24 -18
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"configKey": "mongocamp",
|
|
5
5
|
"compatibility": {
|
|
6
6
|
"nuxt": "^3.0.0"
|
|
7
7
|
},
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "1.0.
|
|
9
|
+
"@nuxt/module-builder": "1.0.1",
|
|
10
10
|
"unbuild": "3.5.0"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.13.0
|
|
@@ -47,7 +47,7 @@ export interface GetSchemaAnalysisRequest {
|
|
|
47
47
|
sampleSize?: number;
|
|
48
48
|
deepth?: number;
|
|
49
49
|
}
|
|
50
|
-
export interface
|
|
50
|
+
export interface ListCollectionsByDatabaseRequest {
|
|
51
51
|
databaseName: string;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -152,10 +152,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
152
152
|
* List of all Collections of the given database
|
|
153
153
|
* List of Collections
|
|
154
154
|
*/
|
|
155
|
-
listCollectionsByDatabaseRaw(requestParameters:
|
|
155
|
+
listCollectionsByDatabaseRaw(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
156
156
|
/**
|
|
157
157
|
* List of all Collections of the given database
|
|
158
158
|
* List of Collections
|
|
159
159
|
*/
|
|
160
|
-
listCollectionsByDatabase(requestParameters:
|
|
160
|
+
listCollectionsByDatabase(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
161
161
|
}
|
|
@@ -123,7 +123,10 @@ export interface RequestOpts {
|
|
|
123
123
|
body?: HTTPBody;
|
|
124
124
|
}
|
|
125
125
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
|
-
export declare function
|
|
126
|
+
export declare function exists(json: any, key: string): boolean;
|
|
127
|
+
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
};
|
|
127
130
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
128
131
|
export interface Consume {
|
|
129
132
|
contentType: string;
|
|
@@ -236,11 +236,16 @@ function querystringSingleKey(key, value, keyPrefix = "") {
|
|
|
236
236
|
}
|
|
237
237
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
238
238
|
}
|
|
239
|
+
export function exists(json, key) {
|
|
240
|
+
const value = json[key];
|
|
241
|
+
return value !== null && value !== void 0;
|
|
242
|
+
}
|
|
239
243
|
export function mapValues(data, fn) {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
+
const result = {};
|
|
245
|
+
for (const key of Object.keys(data)) {
|
|
246
|
+
result[key] = fn(data[key]);
|
|
247
|
+
}
|
|
248
|
+
return result;
|
|
244
249
|
}
|
|
245
250
|
export function canConsumeForm(consumes) {
|
|
246
251
|
for (const consume of consumes) {
|
|
@@ -3,7 +3,7 @@ export declare function useMongocampAuth(): {
|
|
|
3
3
|
login: (loginId: string, loginPassword: string) => Promise<UserProfile>;
|
|
4
4
|
logout: () => void;
|
|
5
5
|
isAuthenticated: () => Promise<import("../api/index.js").JsonValueBoolean>;
|
|
6
|
-
isLoggedIn: import("
|
|
7
|
-
userRoles: import("
|
|
8
|
-
userGrants: import("
|
|
6
|
+
isLoggedIn: import("vue").ComputedRef<boolean>;
|
|
7
|
+
userRoles: import("vue").ComputedRef<string[]>;
|
|
8
|
+
userGrants: import("vue").ComputedRef<import("../api/index.js").Grant[]>;
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"types": "./dist/types.d.mts",
|
|
9
|
+
"import": "./dist/module.mjs"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/module.mjs",
|
|
13
|
+
"typesVersions": {
|
|
14
|
+
"*": {
|
|
15
|
+
".": [
|
|
16
|
+
"./dist/types.d.mts"
|
|
17
|
+
]
|
|
10
18
|
}
|
|
11
19
|
},
|
|
12
|
-
"main": "./dist/module.cjs",
|
|
13
|
-
"types": "./dist/types.d.ts",
|
|
14
20
|
"files": [
|
|
15
21
|
"dist"
|
|
16
22
|
],
|
|
@@ -33,22 +39,22 @@
|
|
|
33
39
|
"api-codegen": "openapi-generator-cli generate -i ./openapi/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
|
|
34
40
|
},
|
|
35
41
|
"dependencies": {
|
|
36
|
-
"@nuxt/kit": "^3.
|
|
37
|
-
"@vueuse/nuxt": "^13.
|
|
42
|
+
"@nuxt/kit": "^3.17.5",
|
|
43
|
+
"@vueuse/nuxt": "^13.4.0"
|
|
38
44
|
},
|
|
39
45
|
"devDependencies": {
|
|
40
|
-
"@nuxt/devtools": "^2.
|
|
41
|
-
"@nuxt/eslint-config": "^1.
|
|
42
|
-
"@nuxt/module-builder": "^1.0.
|
|
43
|
-
"@nuxt/schema": "^3.
|
|
44
|
-
"@nuxt/test-utils": "^3.
|
|
45
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
46
|
-
"@types/node": "^
|
|
47
|
-
"@unocss/nuxt": "66.
|
|
46
|
+
"@nuxt/devtools": "^2.5.0",
|
|
47
|
+
"@nuxt/eslint-config": "^1.4.1",
|
|
48
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
49
|
+
"@nuxt/schema": "^3.17.5",
|
|
50
|
+
"@nuxt/test-utils": "^3.19.1",
|
|
51
|
+
"@openapitools/openapi-generator-cli": "^2.20.2",
|
|
52
|
+
"@types/node": "^24.0.3",
|
|
53
|
+
"@unocss/nuxt": "66.2.3",
|
|
48
54
|
"changelogen": "^0.6.1",
|
|
49
|
-
"eslint": "^9.
|
|
50
|
-
"nuxt": "^3.
|
|
51
|
-
"vitest": "^3.
|
|
55
|
+
"eslint": "^9.29.0",
|
|
56
|
+
"nuxt": "^3.17.5",
|
|
57
|
+
"vitest": "^3.2.4"
|
|
52
58
|
},
|
|
53
59
|
"packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af"
|
|
54
60
|
}
|