@sfxcode/nuxt-mongocamp-server 1.2.5 → 1.2.7
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
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"configKey": "mongocamp",
|
|
5
5
|
"compatibility": {
|
|
6
|
-
"nuxt": "
|
|
6
|
+
"nuxt": ">=3.16.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
|
@@ -631,7 +631,7 @@ function createConsola(options = {}) {
|
|
|
631
631
|
const consola = createConsola();
|
|
632
632
|
|
|
633
633
|
const name = "@sfxcode/nuxt-mongocamp-server";
|
|
634
|
-
const version = "1.2.
|
|
634
|
+
const version = "1.2.7";
|
|
635
635
|
|
|
636
636
|
const module = defineNuxtModule({
|
|
637
637
|
meta: {
|
|
@@ -639,7 +639,7 @@ const module = defineNuxtModule({
|
|
|
639
639
|
version,
|
|
640
640
|
configKey: "mongocamp",
|
|
641
641
|
compatibility: {
|
|
642
|
-
nuxt: "
|
|
642
|
+
nuxt: ">=3.16.0"
|
|
643
643
|
}
|
|
644
644
|
},
|
|
645
645
|
setup(options, nuxt) {
|
|
@@ -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) {
|
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.7",
|
|
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.7",
|
|
43
|
+
"@vueuse/nuxt": "^13.5.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.
|
|
48
|
-
"changelogen": "^0.6.
|
|
49
|
-
"eslint": "^9.
|
|
50
|
-
"nuxt": "^3.
|
|
51
|
-
"vitest": "^3.
|
|
46
|
+
"@nuxt/devtools": "^2.6.2",
|
|
47
|
+
"@nuxt/eslint-config": "^1.6.0",
|
|
48
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
49
|
+
"@nuxt/schema": "^3.17.7",
|
|
50
|
+
"@nuxt/test-utils": "^3.19.2",
|
|
51
|
+
"@openapitools/openapi-generator-cli": "^2.21.3",
|
|
52
|
+
"@types/node": "^24.0.15",
|
|
53
|
+
"@unocss/nuxt": "66.2.3",
|
|
54
|
+
"changelogen": "^0.6.2",
|
|
55
|
+
"eslint": "^9.31.0",
|
|
56
|
+
"nuxt": "^3.17.7",
|
|
57
|
+
"vitest": "^3.2.4"
|
|
52
58
|
},
|
|
53
59
|
"packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af"
|
|
54
60
|
}
|