@accelbyte/codegen 2.0.0-beta.6 → 2.0.0-beta.8
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.
|
@@ -188,7 +188,8 @@ class VersionHelpers {
|
|
|
188
188
|
if (nextMinor !== currentMinor || nextMajor !== currentMajor) {
|
|
189
189
|
nextVersion += `-${nextPrereleaseId}.0`;
|
|
190
190
|
} else {
|
|
191
|
-
|
|
191
|
+
if (currentPrerelease.length)
|
|
192
|
+
nextVersion += `-${currentPrerelease.join(".")}`;
|
|
192
193
|
nextVersion = semver.inc(nextVersion, "prerelease", void 0, nextPrereleaseId);
|
|
193
194
|
}
|
|
194
195
|
}
|
|
@@ -594,7 +595,9 @@ class ParserUtils {
|
|
|
594
595
|
${content}`;
|
|
595
596
|
};
|
|
596
597
|
static sortPathParamsByPath = (pathParams, path2) => {
|
|
597
|
-
|
|
598
|
+
const params = path2.match(/{\w*}/g) || [];
|
|
599
|
+
const cleanParams = params.map((param) => param.replace("{", "").replace("}", ""));
|
|
600
|
+
return pathParams.sort((a, b) => cleanParams.indexOf(a.name) - cleanParams.indexOf(b.name));
|
|
598
601
|
};
|
|
599
602
|
}
|
|
600
603
|
const mappedMethod = (httpMethod, isForm) => {
|