khoros-aurora-sdk 24.9.1 → 24.9.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/build-hash.txt +1 -1
- package/package.json +1 -1
- package/scripts/generateCli.js +17 -25
- package/scripts/pluginLoggerCli.js +17 -25
- package/scripts/pluginPreviewCli.js +17 -25
package/build-hash.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9bb300d
|
package/package.json
CHANGED
package/scripts/generateCli.js
CHANGED
|
@@ -145,47 +145,39 @@ async function getCommunitySdkVersion(client) {
|
|
|
145
145
|
async function versionCheck(argv) {
|
|
146
146
|
const { liaUrl, sdkKey } = argv;
|
|
147
147
|
if (!isLocalLia_default(liaUrl)) {
|
|
148
|
-
const
|
|
149
|
-
log2.info("The current SDK version: %s",
|
|
148
|
+
const sdkVersion = process.env.npm_package_version;
|
|
149
|
+
log2.info("The current SDK version: %s", sdkVersion);
|
|
150
150
|
const graphQLClient = graphqlClientHelper_default(liaUrl, sdkKey);
|
|
151
151
|
const communitySDKVersion = await getCommunitySdkVersion(graphQLClient);
|
|
152
152
|
if (communitySDKVersion) {
|
|
153
|
-
const
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
const minorServerVersion = Number.parseInt(communitySdkVersionArray[1]);
|
|
157
|
-
const patchServerVersion = Number.parseInt(communitySdkVersionArray[2]);
|
|
158
|
-
const installedMajorVersion = Number.parseInt(installedSdkVersionArray[0]);
|
|
159
|
-
const installedMinorVersion = Number.parseInt(installedSdkVersionArray[1]);
|
|
160
|
-
const installedPatchVersion = Number.parseInt(installedSdkVersionArray[2]);
|
|
161
|
-
if (majorServerVersion > installedMajorVersion) {
|
|
153
|
+
const [communityMajorVersion, communityMinorVersion, communityPatchVersion] = communitySDKVersion.split(".").map((version) => Number.parseInt(version));
|
|
154
|
+
const [sdkMajorVersion, sdkMinorVersion, sdkPatchVersion] = sdkVersion.split(".").map((version) => Number.parseInt(version));
|
|
155
|
+
if (communityMajorVersion > sdkMajorVersion) {
|
|
162
156
|
throw new Error(
|
|
163
|
-
"This SDK version is not compatible. Please upgrade to version: " + [
|
|
157
|
+
"This SDK version is not compatible. Please upgrade to version: " + [communityMajorVersion, communityMinorVersion].join(".")
|
|
164
158
|
);
|
|
165
|
-
} else if (
|
|
159
|
+
} else if (communityMajorVersion < sdkMajorVersion) {
|
|
166
160
|
throw new Error(
|
|
167
161
|
"This version is not yet released for the community. Please use a compatible version."
|
|
168
162
|
);
|
|
169
|
-
} else if (
|
|
163
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion < sdkMinorVersion) {
|
|
170
164
|
throw new Error(
|
|
171
165
|
"This version is not yet released for the community. Please use a compatible version."
|
|
172
166
|
);
|
|
173
|
-
} else if (
|
|
174
|
-
log2.info(
|
|
175
|
-
"A new version minor is available. You can upgrade to version: %s",
|
|
176
|
-
[majorServerVersion, minorServerVersion].join(".")
|
|
177
|
-
);
|
|
178
|
-
} else if (majorServerVersion === installedMajorVersion && minorServerVersion >= installedMinorVersion && patchServerVersion < installedPatchVersion) {
|
|
179
|
-
throw new Error("version not yet released");
|
|
180
|
-
} else if (majorServerVersion === installedMajorVersion && minorServerVersion > installedMinorVersion && patchServerVersion > installedPatchVersion) {
|
|
167
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion > sdkMinorVersion && communityPatchVersion > sdkPatchVersion) {
|
|
181
168
|
log2.info(
|
|
182
169
|
"A new minor and patch version is available. You can upgrade to version: %s",
|
|
183
|
-
[
|
|
170
|
+
[communityMajorVersion, communityMinorVersion, communityPatchVersion].join(".")
|
|
184
171
|
);
|
|
185
|
-
} else if (
|
|
172
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion === sdkMinorVersion && communityPatchVersion > sdkPatchVersion) {
|
|
186
173
|
log2.info(
|
|
187
174
|
"A new patch version is available. You can upgrade to version: %s",
|
|
188
|
-
[
|
|
175
|
+
[communityMajorVersion, communityMinorVersion, communityPatchVersion].join(".")
|
|
176
|
+
);
|
|
177
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion > sdkMinorVersion) {
|
|
178
|
+
log2.info(
|
|
179
|
+
"A new minor version is available. You can upgrade to version: %s",
|
|
180
|
+
[communityMajorVersion, communityMinorVersion].join(".")
|
|
189
181
|
);
|
|
190
182
|
}
|
|
191
183
|
} else {
|
|
@@ -4120,47 +4120,39 @@ async function getCommunitySdkVersion(client) {
|
|
|
4120
4120
|
async function versionCheck(argv) {
|
|
4121
4121
|
const { liaUrl, sdkKey } = argv;
|
|
4122
4122
|
if (!isLocalLia_default(liaUrl)) {
|
|
4123
|
-
const
|
|
4124
|
-
log4.info("The current SDK version: %s",
|
|
4123
|
+
const sdkVersion = process.env.npm_package_version;
|
|
4124
|
+
log4.info("The current SDK version: %s", sdkVersion);
|
|
4125
4125
|
const graphQLClient = graphqlClientHelper_default(liaUrl, sdkKey);
|
|
4126
4126
|
const communitySDKVersion = await getCommunitySdkVersion(graphQLClient);
|
|
4127
4127
|
if (communitySDKVersion) {
|
|
4128
|
-
const
|
|
4129
|
-
const
|
|
4130
|
-
|
|
4131
|
-
const minorServerVersion = Number.parseInt(communitySdkVersionArray[1]);
|
|
4132
|
-
const patchServerVersion = Number.parseInt(communitySdkVersionArray[2]);
|
|
4133
|
-
const installedMajorVersion = Number.parseInt(installedSdkVersionArray[0]);
|
|
4134
|
-
const installedMinorVersion = Number.parseInt(installedSdkVersionArray[1]);
|
|
4135
|
-
const installedPatchVersion = Number.parseInt(installedSdkVersionArray[2]);
|
|
4136
|
-
if (majorServerVersion > installedMajorVersion) {
|
|
4128
|
+
const [communityMajorVersion, communityMinorVersion, communityPatchVersion] = communitySDKVersion.split(".").map((version) => Number.parseInt(version));
|
|
4129
|
+
const [sdkMajorVersion, sdkMinorVersion, sdkPatchVersion] = sdkVersion.split(".").map((version) => Number.parseInt(version));
|
|
4130
|
+
if (communityMajorVersion > sdkMajorVersion) {
|
|
4137
4131
|
throw new Error(
|
|
4138
|
-
"This SDK version is not compatible. Please upgrade to version: " + [
|
|
4132
|
+
"This SDK version is not compatible. Please upgrade to version: " + [communityMajorVersion, communityMinorVersion].join(".")
|
|
4139
4133
|
);
|
|
4140
|
-
} else if (
|
|
4134
|
+
} else if (communityMajorVersion < sdkMajorVersion) {
|
|
4141
4135
|
throw new Error(
|
|
4142
4136
|
"This version is not yet released for the community. Please use a compatible version."
|
|
4143
4137
|
);
|
|
4144
|
-
} else if (
|
|
4138
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion < sdkMinorVersion) {
|
|
4145
4139
|
throw new Error(
|
|
4146
4140
|
"This version is not yet released for the community. Please use a compatible version."
|
|
4147
4141
|
);
|
|
4148
|
-
} else if (
|
|
4149
|
-
log4.info(
|
|
4150
|
-
"A new version minor is available. You can upgrade to version: %s",
|
|
4151
|
-
[majorServerVersion, minorServerVersion].join(".")
|
|
4152
|
-
);
|
|
4153
|
-
} else if (majorServerVersion === installedMajorVersion && minorServerVersion >= installedMinorVersion && patchServerVersion < installedPatchVersion) {
|
|
4154
|
-
throw new Error("version not yet released");
|
|
4155
|
-
} else if (majorServerVersion === installedMajorVersion && minorServerVersion > installedMinorVersion && patchServerVersion > installedPatchVersion) {
|
|
4142
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion > sdkMinorVersion && communityPatchVersion > sdkPatchVersion) {
|
|
4156
4143
|
log4.info(
|
|
4157
4144
|
"A new minor and patch version is available. You can upgrade to version: %s",
|
|
4158
|
-
[
|
|
4145
|
+
[communityMajorVersion, communityMinorVersion, communityPatchVersion].join(".")
|
|
4159
4146
|
);
|
|
4160
|
-
} else if (
|
|
4147
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion === sdkMinorVersion && communityPatchVersion > sdkPatchVersion) {
|
|
4161
4148
|
log4.info(
|
|
4162
4149
|
"A new patch version is available. You can upgrade to version: %s",
|
|
4163
|
-
[
|
|
4150
|
+
[communityMajorVersion, communityMinorVersion, communityPatchVersion].join(".")
|
|
4151
|
+
);
|
|
4152
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion > sdkMinorVersion) {
|
|
4153
|
+
log4.info(
|
|
4154
|
+
"A new minor version is available. You can upgrade to version: %s",
|
|
4155
|
+
[communityMajorVersion, communityMinorVersion].join(".")
|
|
4164
4156
|
);
|
|
4165
4157
|
}
|
|
4166
4158
|
} else {
|
|
@@ -2617,47 +2617,39 @@ async function getCommunitySdkVersion(client) {
|
|
|
2617
2617
|
async function versionCheck(argv) {
|
|
2618
2618
|
const { liaUrl, sdkKey } = argv;
|
|
2619
2619
|
if (!isLocalLia_default(liaUrl)) {
|
|
2620
|
-
const
|
|
2621
|
-
log25.info("The current SDK version: %s",
|
|
2620
|
+
const sdkVersion = process.env.npm_package_version;
|
|
2621
|
+
log25.info("The current SDK version: %s", sdkVersion);
|
|
2622
2622
|
const graphQLClient = graphqlClientHelper_default(liaUrl, sdkKey);
|
|
2623
2623
|
const communitySDKVersion = await getCommunitySdkVersion(graphQLClient);
|
|
2624
2624
|
if (communitySDKVersion) {
|
|
2625
|
-
const
|
|
2626
|
-
const
|
|
2627
|
-
|
|
2628
|
-
const minorServerVersion = Number.parseInt(communitySdkVersionArray[1]);
|
|
2629
|
-
const patchServerVersion = Number.parseInt(communitySdkVersionArray[2]);
|
|
2630
|
-
const installedMajorVersion = Number.parseInt(installedSdkVersionArray[0]);
|
|
2631
|
-
const installedMinorVersion = Number.parseInt(installedSdkVersionArray[1]);
|
|
2632
|
-
const installedPatchVersion = Number.parseInt(installedSdkVersionArray[2]);
|
|
2633
|
-
if (majorServerVersion > installedMajorVersion) {
|
|
2625
|
+
const [communityMajorVersion, communityMinorVersion, communityPatchVersion] = communitySDKVersion.split(".").map((version) => Number.parseInt(version));
|
|
2626
|
+
const [sdkMajorVersion, sdkMinorVersion, sdkPatchVersion] = sdkVersion.split(".").map((version) => Number.parseInt(version));
|
|
2627
|
+
if (communityMajorVersion > sdkMajorVersion) {
|
|
2634
2628
|
throw new Error(
|
|
2635
|
-
"This SDK version is not compatible. Please upgrade to version: " + [
|
|
2629
|
+
"This SDK version is not compatible. Please upgrade to version: " + [communityMajorVersion, communityMinorVersion].join(".")
|
|
2636
2630
|
);
|
|
2637
|
-
} else if (
|
|
2631
|
+
} else if (communityMajorVersion < sdkMajorVersion) {
|
|
2638
2632
|
throw new Error(
|
|
2639
2633
|
"This version is not yet released for the community. Please use a compatible version."
|
|
2640
2634
|
);
|
|
2641
|
-
} else if (
|
|
2635
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion < sdkMinorVersion) {
|
|
2642
2636
|
throw new Error(
|
|
2643
2637
|
"This version is not yet released for the community. Please use a compatible version."
|
|
2644
2638
|
);
|
|
2645
|
-
} else if (
|
|
2646
|
-
log25.info(
|
|
2647
|
-
"A new version minor is available. You can upgrade to version: %s",
|
|
2648
|
-
[majorServerVersion, minorServerVersion].join(".")
|
|
2649
|
-
);
|
|
2650
|
-
} else if (majorServerVersion === installedMajorVersion && minorServerVersion >= installedMinorVersion && patchServerVersion < installedPatchVersion) {
|
|
2651
|
-
throw new Error("version not yet released");
|
|
2652
|
-
} else if (majorServerVersion === installedMajorVersion && minorServerVersion > installedMinorVersion && patchServerVersion > installedPatchVersion) {
|
|
2639
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion > sdkMinorVersion && communityPatchVersion > sdkPatchVersion) {
|
|
2653
2640
|
log25.info(
|
|
2654
2641
|
"A new minor and patch version is available. You can upgrade to version: %s",
|
|
2655
|
-
[
|
|
2642
|
+
[communityMajorVersion, communityMinorVersion, communityPatchVersion].join(".")
|
|
2656
2643
|
);
|
|
2657
|
-
} else if (
|
|
2644
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion === sdkMinorVersion && communityPatchVersion > sdkPatchVersion) {
|
|
2658
2645
|
log25.info(
|
|
2659
2646
|
"A new patch version is available. You can upgrade to version: %s",
|
|
2660
|
-
[
|
|
2647
|
+
[communityMajorVersion, communityMinorVersion, communityPatchVersion].join(".")
|
|
2648
|
+
);
|
|
2649
|
+
} else if (communityMajorVersion === sdkMajorVersion && communityMinorVersion > sdkMinorVersion) {
|
|
2650
|
+
log25.info(
|
|
2651
|
+
"A new minor version is available. You can upgrade to version: %s",
|
|
2652
|
+
[communityMajorVersion, communityMinorVersion].join(".")
|
|
2661
2653
|
);
|
|
2662
2654
|
}
|
|
2663
2655
|
} else {
|