zova-openapi 1.0.0 → 1.0.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/LICENSE CHANGED
File without changes
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from './types/index.js';
2
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './types/index.js';
2
- //# sourceMappingURL=index.js.map
@@ -1,12 +1,14 @@
1
- import { OpenAPITSOptions } from 'openapi-typescript';
1
+ import type { OpenAPITSOptions } from 'openapi-typescript';
2
2
  export type TypeOpenapiConfigMatchRule = string | RegExp | (string | RegExp)[];
3
- export interface ZovaOpenapiConfigModule {
4
- source: string;
3
+ export interface ZovaOpenapiConfigModuleBase {
4
+ source?: string;
5
5
  options?: OpenAPITSOptions;
6
+ }
7
+ export interface ZovaOpenapiConfigModule extends ZovaOpenapiConfigModuleBase {
6
8
  match?: TypeOpenapiConfigMatchRule;
7
9
  ignore?: TypeOpenapiConfigMatchRule;
8
10
  }
9
11
  export interface ZovaOpenapiConfig {
12
+ default?: ZovaOpenapiConfigModuleBase;
10
13
  modules: Record<string, ZovaOpenapiConfigModule>;
11
14
  }
12
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,43 +1,40 @@
1
1
  {
2
2
  "name": "zova-openapi",
3
- "version": "1.0.0",
3
+ "type": "module",
4
+ "version": "1.0.2",
4
5
  "description": "Zova Openapi",
5
6
  "publishConfig": {
6
7
  "access": "public"
7
8
  },
8
- "type": "module",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "default": "./dist/index.js"
13
- },
14
- "./*": "./*"
15
- },
16
- "files": [
17
- "dist",
18
- "src"
19
- ],
20
9
  "author": "zhennann",
21
10
  "license": "MIT",
22
- "keywords": [
23
- "vue3",
24
- "ioc",
25
- "zova"
26
- ],
11
+ "homepage": "https://github.com/cabloy/zova#readme",
27
12
  "repository": {
28
13
  "type": "git",
29
14
  "url": "git+https://github.com/cabloy/zova.git"
30
15
  },
31
- "homepage": "https://github.com/cabloy/zova#readme",
32
16
  "bugs": {
33
17
  "url": "https://github.com/cabloy/zova/issues"
34
18
  },
35
- "dependencies": {
36
- "openapi-typescript": "^7.4.4"
19
+ "keywords": [
20
+ "vue3",
21
+ "ioc",
22
+ "zova"
23
+ ],
24
+ "exports": {
25
+ ".": {
26
+ "types": [
27
+ "./src/index.ts",
28
+ "./dist/index.d.ts"
29
+ ],
30
+ "default": "./dist/index.js"
31
+ },
32
+ "./package.json": "./package.json"
37
33
  },
38
- "scripts": {
39
- "lint": "eslint .",
40
- "clean": "tsc -b --clean",
41
- "tsc:publish": "npm run clean && tsc -b"
34
+ "files": [
35
+ "dist"
36
+ ],
37
+ "dependencies": {
38
+ "openapi-typescript": "^7.6.1"
42
39
  }
43
- }
40
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;AAE/E,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,0BAA0B,CAAC;IACnC,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;CAClD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './types/index.js';
@@ -1,14 +0,0 @@
1
- import { OpenAPITSOptions } from 'openapi-typescript';
2
-
3
- export type TypeOpenapiConfigMatchRule = string | RegExp | (string | RegExp)[];
4
-
5
- export interface ZovaOpenapiConfigModule {
6
- source: string;
7
- options?: OpenAPITSOptions;
8
- match?: TypeOpenapiConfigMatchRule;
9
- ignore?: TypeOpenapiConfigMatchRule;
10
- }
11
-
12
- export interface ZovaOpenapiConfig {
13
- modules: Record<string, ZovaOpenapiConfigModule>;
14
- }