@shopware/api-gen 0.0.5 → 0.0.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/README.md +14 -6
- package/dist/cli.d.mts +5 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.mjs +3 -5
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -12,14 +12,22 @@ Documentation specific for this package: [api-gen](https://frontends.shopware.co
|
|
|
12
12
|
|
|
13
13
|
Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/api-gen/CHANGELOG.md)
|
|
14
14
|
|
|
15
|
-
### Latest changes: 0.0.
|
|
15
|
+
### Latest changes: 0.0.7
|
|
16
16
|
|
|
17
17
|
### Patch Changes
|
|
18
18
|
|
|
19
|
-
- [#
|
|
19
|
+
- [#369](https://github.com/shopware/frontends/pull/369) [`bc7a2db2`](https://github.com/shopware/frontends/commit/bc7a2db292d67cc448a901c1b7a9b5cb7dfbcd04) Thanks [@patzick](https://github.com/patzick)! - Dependency changes:
|
|
20
20
|
|
|
21
|
-
-
|
|
21
|
+
- Changed dependency _openapi-typescript_ from **^6.4.0** to **^6.5.2**
|
|
22
|
+
- Changed dependency _prettier_ from **^3.0.0** to **^3.0.2**
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- Changed dependency
|
|
24
|
+
- [#385](https://github.com/shopware/frontends/pull/385) [`5d7e7973`](https://github.com/shopware/frontends/commit/5d7e7973437a4d74d19ec2fa0765c6d927bf8b2a) Thanks [@patzick](https://github.com/patzick)! - Dependency changes:
|
|
25
|
+
|
|
26
|
+
- Changed dependency _ofetch_ from **^1.2.1** to **^1.3.3**
|
|
27
|
+
- Changed dependency _openapi-typescript_ from **^6.5.3** to **^6.5.5**
|
|
28
|
+
- Changed dependency _prettier_ from **^3.0.2** to **^3.0.3**
|
|
29
|
+
|
|
30
|
+
- [#375](https://github.com/shopware/frontends/pull/375) [`bd88d6fa`](https://github.com/shopware/frontends/commit/bd88d6fa95de2b90f8a1e08e34159b46c5932b3b) Thanks [@patzick](https://github.com/patzick)! - Dependency changes:
|
|
31
|
+
|
|
32
|
+
- Changed dependency _ofetch_ from **^1.1.1** to **^1.2.1**
|
|
33
|
+
- Changed dependency _openapi-typescript_ from **^6.5.2** to **^6.5.3**
|
package/dist/cli.d.mts
ADDED
package/dist/cli.d.ts
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -17,10 +17,7 @@ function getAugmentedNamespace(n) {
|
|
|
17
17
|
if (typeof f == "function") {
|
|
18
18
|
var a = function a () {
|
|
19
19
|
if (this instanceof a) {
|
|
20
|
-
|
|
21
|
-
args.push.apply(args, arguments);
|
|
22
|
-
var Ctor = Function.bind.apply(f, args);
|
|
23
|
-
return new Ctor();
|
|
20
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
24
21
|
}
|
|
25
22
|
return f.apply(this, arguments);
|
|
26
23
|
};
|
|
@@ -638,7 +635,7 @@ async function generate() {
|
|
|
638
635
|
encoding: "utf-8"
|
|
639
636
|
});
|
|
640
637
|
let schemaForPatching = JSON.parse(schemaFile);
|
|
641
|
-
const allPatches =
|
|
638
|
+
const allPatches = [];
|
|
642
639
|
const semverVersion = version.slice(2);
|
|
643
640
|
const patchesToApply = allPatches.filter((patch) => {
|
|
644
641
|
return semver.satisfies(semverVersion, patch);
|
|
@@ -672,6 +669,7 @@ async function generate() {
|
|
|
672
669
|
// rawSchema: false,
|
|
673
670
|
additionalProperties: false,
|
|
674
671
|
alphabetize: true,
|
|
672
|
+
supportArrayLength: true,
|
|
675
673
|
/**
|
|
676
674
|
* GenericRecord is used for types like associations
|
|
677
675
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware/api-gen",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Shopware CLI for API client generation.",
|
|
5
5
|
"author": "Shopware",
|
|
6
6
|
"repository": {
|
|
@@ -25,18 +25,19 @@
|
|
|
25
25
|
"api-gen": "bin/api-gen.mjs"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/prettier": "^
|
|
28
|
+
"@types/prettier": "^3.0.0",
|
|
29
29
|
"@types/yargs": "^17.0.24",
|
|
30
30
|
"@vitest/coverage-c8": "^0.33.0",
|
|
31
31
|
"picocolors": "^1.0.0",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
32
|
+
"unbuild": "^2.0.0",
|
|
33
|
+
"vitest": "^0.34.3",
|
|
34
|
+
"eslint-config-shopware": "0.0.6",
|
|
34
35
|
"tsconfig": "0.0.0"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"ofetch": "^1.
|
|
38
|
-
"openapi-typescript": "^6.
|
|
39
|
-
"prettier": "^3.0.
|
|
38
|
+
"ofetch": "^1.3.3",
|
|
39
|
+
"openapi-typescript": "^6.5.5",
|
|
40
|
+
"prettier": "^3.0.3",
|
|
40
41
|
"semver": "^7.5.4",
|
|
41
42
|
"yargs": "^17.7.2"
|
|
42
43
|
},
|