@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.
|
@@ -211,7 +211,8 @@ class VersionHelpers {
|
|
|
211
211
|
if (nextMinor !== currentMinor || nextMajor !== currentMajor) {
|
|
212
212
|
nextVersion += `-${nextPrereleaseId}.0`;
|
|
213
213
|
} else {
|
|
214
|
-
|
|
214
|
+
if (currentPrerelease.length)
|
|
215
|
+
nextVersion += `-${currentPrerelease.join(".")}`;
|
|
215
216
|
nextVersion = semver.inc(nextVersion, "prerelease", void 0, nextPrereleaseId);
|
|
216
217
|
}
|
|
217
218
|
}
|
|
@@ -617,7 +618,9 @@ class ParserUtils {
|
|
|
617
618
|
${content}`;
|
|
618
619
|
};
|
|
619
620
|
static sortPathParamsByPath = (pathParams, path2) => {
|
|
620
|
-
|
|
621
|
+
const params = path2.match(/{\w*}/g) || [];
|
|
622
|
+
const cleanParams = params.map((param) => param.replace("{", "").replace("}", ""));
|
|
623
|
+
return pathParams.sort((a, b) => cleanParams.indexOf(a.name) - cleanParams.indexOf(b.name));
|
|
621
624
|
};
|
|
622
625
|
}
|
|
623
626
|
const mappedMethod = (httpMethod, isForm) => {
|