@openapi-qraft/plugin 2.0.2 → 2.1.0
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/CHANGELOG.md +4 -0
- package/dist/lib/createServicePathMatch.d.ts.map +1 -1
- package/dist/lib/createServicePathMatch.js +4 -3
- package/dist/lib/createServicePathMatch.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/package.json +4 -4
- package/src/lib/createServicePathMatch.ts +2 -3
- package/src/packageVersion.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServicePathMatch.d.ts","sourceRoot":"","sources":["../../src/lib/createServicePathMatch.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,iBAAkB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"createServicePathMatch.d.ts","sourceRoot":"","sources":["../../src/lib/createServicePathMatch.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,iBAAkB,MAAM,EAAE,YAejB,MAAM,YAKjD,CAAC"}
|
|
@@ -5,9 +5,10 @@ import micromatch from 'micromatch';
|
|
|
5
5
|
*/
|
|
6
6
|
export const createServicePathMatch = (servicesGlob) => {
|
|
7
7
|
const servicePathGlobs = servicesGlob.reduce((acc, glob) => {
|
|
8
|
-
glob.startsWith('!')
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
if (glob.startsWith('!'))
|
|
9
|
+
acc.ignore.push(glob.slice(1));
|
|
10
|
+
else
|
|
11
|
+
acc.match.push(glob);
|
|
11
12
|
return acc;
|
|
12
13
|
}, {
|
|
13
14
|
match: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServicePathMatch.js","sourceRoot":"","sources":["../../src/lib/createServicePathMatch.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,YAAsB,EAAE,EAAE;IAC/D,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAG1C,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACZ,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"createServicePathMatch.js","sourceRoot":"","sources":["../../src/lib/createServicePathMatch.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,YAAsB,EAAE,EAAE;IAC/D,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAG1C,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACZ,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;;YACpD,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,OAAO,GAAG,CAAC;IACb,CAAC,EACD;QACE,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;KACX,CACF,CAAC;IAEF,OAAO,SAAS,mBAAmB,CAAC,IAAY;QAC9C,OAAO,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,gBAAgB,CAAC,KAAK,EAAE;YACtD,MAAM,EAAE,gBAAgB,CAAC,MAAM;SAChC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const packageVersion = "2.0
|
|
1
|
+
export declare const packageVersion = "2.1.0";
|
|
2
2
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-qraft/plugin",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"packageManager": "yarn@4.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"@openapi-qraft/test-fixtures": "1.0.0",
|
|
38
38
|
"@types/micromatch": "^4.0.9",
|
|
39
39
|
"@types/node": "^20.16.5",
|
|
40
|
-
"@vitest/coverage-v8": "^
|
|
40
|
+
"@vitest/coverage-v8": "^3.0.5",
|
|
41
41
|
"commander": "^11.1.0",
|
|
42
|
-
"eslint": "^9.
|
|
42
|
+
"eslint": "^9.20.1",
|
|
43
43
|
"rimraf": "^5.0.10",
|
|
44
44
|
"typescript": "^5.6.2",
|
|
45
|
-
"vitest": "^
|
|
45
|
+
"vitest": "^3.0.5"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"commander": "^11.1.0"
|
|
@@ -9,9 +9,8 @@ export const createServicePathMatch = (servicesGlob: string[]) => {
|
|
|
9
9
|
Record<'match' | 'ignore', string[]>
|
|
10
10
|
>(
|
|
11
11
|
(acc, glob) => {
|
|
12
|
-
glob.startsWith('!')
|
|
13
|
-
|
|
14
|
-
: acc.match.push(glob);
|
|
12
|
+
if (glob.startsWith('!')) acc.ignore.push(glob.slice(1));
|
|
13
|
+
else acc.match.push(glob);
|
|
15
14
|
return acc;
|
|
16
15
|
},
|
|
17
16
|
{
|
package/src/packageVersion.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file was generated automatically
|
|
2
|
-
export const packageVersion = '2.0
|
|
2
|
+
export const packageVersion = '2.1.0';
|