@sfxcode/nuxt-mongocamp-server 1.2.4 → 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.d.mts CHANGED
@@ -8,4 +8,5 @@ interface ModuleOptions {
8
8
  }
9
9
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
10
10
 
11
- export { type ModuleOptions, _default as default };
11
+ export { _default as default };
12
+ export type { ModuleOptions };
package/dist/module.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sfxcode/nuxt-mongocamp-server",
3
- "version": "1.2.4",
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": "0.8.4",
10
- "unbuild": "2.0.0"
9
+ "@nuxt/module-builder": "1.0.1",
10
+ "unbuild": "3.5.0"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -57,7 +57,6 @@ function createDefu$1(merger) {
57
57
  const defu$1 = createDefu$1();
58
58
 
59
59
  const LogLevels = {
60
- silent: Number.NEGATIVE_INFINITY,
61
60
  fatal: 0,
62
61
  error: 0,
63
62
  warn: 1,
@@ -65,9 +64,6 @@ const LogLevels = {
65
64
  info: 3,
66
65
  success: 3,
67
66
  fail: 3,
68
- ready: 3,
69
- start: 3,
70
- box: 3,
71
67
  debug: 4,
72
68
  trace: 5,
73
69
  verbose: Number.POSITIVE_INFINITY
@@ -144,7 +140,7 @@ function isPlainObject$1(value) {
144
140
 
145
141
  function _defu(baseObject, defaults, namespace = ".", merger) {
146
142
  if (!isPlainObject$1(defaults)) {
147
- return _defu(baseObject, {}, namespace, merger);
143
+ return _defu(baseObject, {}, namespace);
148
144
  }
149
145
  const object = Object.assign({}, defaults);
150
146
  for (const key in baseObject) {
@@ -152,10 +148,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
152
148
  continue;
153
149
  }
154
150
  const value = baseObject[key];
155
- if (value === null || value === undefined) {
156
- continue;
157
- }
158
- if (merger && merger(object, key, value, namespace)) {
151
+ if (value === null || value === void 0) {
159
152
  continue;
160
153
  }
161
154
  if (Array.isArray(value) && Array.isArray(object[key])) {
@@ -164,9 +157,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
164
157
  object[key] = _defu(
165
158
  value,
166
159
  object[key],
167
- (namespace ? `${namespace}.` : "") + key.toString(),
168
- merger
169
- );
160
+ (namespace ? `${namespace}.` : "") + key.toString());
170
161
  } else {
171
162
  object[key] = value;
172
163
  }
@@ -176,7 +167,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
176
167
  function createDefu(merger) {
177
168
  return (...arguments_) => (
178
169
  // eslint-disable-next-line unicorn/no-array-reduce
179
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
170
+ arguments_.reduce((p, c) => _defu(p, c, ""), {})
180
171
  );
181
172
  }
182
173
  const defu = createDefu();
@@ -545,13 +536,13 @@ class Consola {
545
536
  }
546
537
  }
547
538
  function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
548
- if (input === undefined) {
539
+ if (input === void 0) {
549
540
  return defaultLevel;
550
541
  }
551
542
  if (typeof input === "number") {
552
543
  return input;
553
544
  }
554
- if (types[input] && types[input].level !== undefined) {
545
+ if (types[input] && types[input].level !== void 0) {
555
546
  return types[input].level;
556
547
  }
557
548
  return defaultLevel;
@@ -640,7 +631,7 @@ function createConsola(options = {}) {
640
631
  const consola = createConsola();
641
632
 
642
633
  const name = "@sfxcode/nuxt-mongocamp-server";
643
- const version = "1.2.4";
634
+ const version = "1.2.6";
644
635
 
645
636
  const module = defineNuxtModule({
646
637
  meta: {
@@ -0,0 +1,54 @@
1
+ apis/AdminApi.ts
2
+ apis/ApplicationApi.ts
3
+ apis/AuthApi.ts
4
+ apis/BucketApi.ts
5
+ apis/CollectionApi.ts
6
+ apis/DatabaseApi.ts
7
+ apis/DocumentApi.ts
8
+ apis/FileApi.ts
9
+ apis/IndexApi.ts
10
+ apis/InformationApi.ts
11
+ apis/JobsApi.ts
12
+ apis/index.ts
13
+ index.ts
14
+ models/BucketInformation.ts
15
+ models/CollectionStatus.ts
16
+ models/DatabaseInfo.ts
17
+ models/DeleteResponse.ts
18
+ models/ErrorDescription.ts
19
+ models/FileInformation.ts
20
+ models/Grant.ts
21
+ models/IndexCreateRequest.ts
22
+ models/IndexCreateResponse.ts
23
+ models/IndexDropResponse.ts
24
+ models/IndexOptionsRequest.ts
25
+ models/InsertResponse.ts
26
+ models/JobConfig.ts
27
+ models/JobInformation.ts
28
+ models/JsonSchema.ts
29
+ models/JsonSchemaDefinition.ts
30
+ models/JsonValueAny.ts
31
+ models/JsonValueBoolean.ts
32
+ models/JsonValueString.ts
33
+ models/Login.ts
34
+ models/LoginResult.ts
35
+ models/MongoAggregateRequest.ts
36
+ models/MongoCampConfiguration.ts
37
+ models/MongoFindRequest.ts
38
+ models/MongoIndex.ts
39
+ models/PasswordUpdateRequest.ts
40
+ models/PipelineStage.ts
41
+ models/Role.ts
42
+ models/SchemaAnalysis.ts
43
+ models/SchemaAnalysisField.ts
44
+ models/SchemaAnalysisFieldType.ts
45
+ models/SettingsResponse.ts
46
+ models/UpdateFileInformationRequest.ts
47
+ models/UpdateRequest.ts
48
+ models/UpdateResponse.ts
49
+ models/UpdateRoleRequest.ts
50
+ models/UserInformation.ts
51
+ models/UserProfile.ts
52
+ models/Version.ts
53
+ models/index.ts
54
+ runtime.ts
@@ -0,0 +1 @@
1
+ 7.13.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
@@ -47,7 +47,7 @@ export interface GetSchemaAnalysisRequest {
47
47
  sampleSize?: number;
48
48
  deepth?: number;
49
49
  }
50
- export interface ListCollectionsByDatabase0Request {
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: ListCollectionsByDatabase0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
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: ListCollectionsByDatabase0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
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 mapValues(data: any, fn: (item: any) => any): {};
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
- return Object.keys(data).reduce(
241
- (acc, key) => ({ ...acc, [key]: fn(data[key]) }),
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) {
@@ -2,8 +2,8 @@ import type { UserProfile } from '../api/index.js';
2
2
  export declare function useMongocampAuth(): {
3
3
  login: (loginId: string, loginPassword: string) => Promise<UserProfile>;
4
4
  logout: () => void;
5
- isAuthenticated: () => Promise<import("../api").JsonValueBoolean>;
5
+ isAuthenticated: () => Promise<import("../api/index.js").JsonValueBoolean>;
6
6
  isLoggedIn: import("vue").ComputedRef<boolean>;
7
7
  userRoles: import("vue").ComputedRef<string[]>;
8
- userGrants: import("vue").ComputedRef<import("../api").Grant[]>;
8
+ userGrants: import("vue").ComputedRef<import("../api/index.js").Grant[]>;
9
9
  };
package/dist/types.d.mts CHANGED
@@ -1 +1,3 @@
1
- export { type ModuleOptions, default } from './module.js'
1
+ export { default } from './module.mjs'
2
+
3
+ export { type ModuleOptions } from './module.mjs'
package/package.json CHANGED
@@ -1,16 +1,22 @@
1
1
  {
2
2
  "name": "@sfxcode/nuxt-mongocamp-server",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
8
- "import": "./dist/module.mjs",
9
- "require": "./dist/module.cjs"
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.15.4",
37
- "@vueuse/nuxt": "^12.7.0"
42
+ "@nuxt/kit": "^3.17.5",
43
+ "@vueuse/nuxt": "^13.4.0"
38
44
  },
39
45
  "devDependencies": {
40
- "@nuxt/devtools": "^2.1.3",
41
- "@nuxt/eslint-config": "^1.1.0",
42
- "@nuxt/module-builder": "^0.8.4",
43
- "@nuxt/schema": "^3.15.4",
44
- "@nuxt/test-utils": "^3.17.1",
45
- "@openapitools/openapi-generator-cli": "^2.17.0",
46
- "@types/node": "^22.13.9",
47
- "@unocss/nuxt": "^66.0.0",
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.21.0",
50
- "nuxt": "^3.15.4",
51
- "vitest": "^3.0.7"
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
  }
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
-
3
- interface ModuleOptions {
4
- url: string;
5
- paginationSize?: number;
6
- refreshToken: boolean;
7
- tokenRefreshIntervall: number;
8
- }
9
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
10
-
11
- export { type ModuleOptions, _default as default };
package/dist/types.d.ts DELETED
@@ -1 +0,0 @@
1
- export { type ModuleOptions, default } from './module'