@microtronics/studio-cli 0.27.1 → 0.27.3

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 CHANGED
@@ -1,5 +1,14 @@
1
1
 
2
2
 
3
+ ## 0.27.3 (2025-03-26)
4
+
5
+ ## 0.27.2 (2025-03-25)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **studio-cli:** updating the application version does not use semver ([114d305](https://bitbucket.org/microtronics-core/vscode-studio/commits/114d3059c0408ca75237dfa21f8de181d8b0477e))
11
+
3
12
  ## 0.27.1 (2025-03-25)
4
13
 
5
14
  ## 0.27.0 (2025-03-20)
@@ -4630,6 +4630,13 @@ export declare namespace Registry {
4630
4630
  export function publishLibraryVersion(token: AuthToken, publisherId: string, libraryId: string, libraryVersion: string, files: LibraryFiles, env: Globals.ENV): Promise<void>;
4631
4631
  export type ApplicationFileName = components['parameters']['ApplicationFileName'];
4632
4632
  export function updateApplicationFile(token: AuthToken, publisherId: string, applicationId: string, applicationVersion: string, applicationFileName: ApplicationFileName, blob: Uint8Array, env: Globals.ENV): Promise<void>;
4633
+ /**
4634
+ * inject the X-Semver header for application based requests
4635
+ * with this header the semver versioning is required
4636
+ */
4637
+ export function injectSemverHeader(useSemver?: boolean): {
4638
+ 'X-Semver': string;
4639
+ } | {};
4633
4640
  }
4634
4641
 
4635
4642
  declare function uriToMemFsPath(path: URI): string;
@@ -177,7 +177,7 @@ var Registry;
177
177
  }
178
178
  Registry.updateExistingApplication = updateExistingApplication;
179
179
  async function updateExistingApplicationVersion(token, publisherId, applicationId, applicationVersion, updatedApplicationVersion, env) {
180
- const isSemver = !preload_1.default.valid(applicationVersion);
180
+ const isSemver = !!preload_1.default.valid(applicationVersion);
181
181
  try {
182
182
  const { error } = await PUT(`/packages/{publisherId}/applications/{applicationId}/versions/{applicationVersion}`, {
183
183
  ...Registry.getAPIUrl(env),
@@ -311,15 +311,16 @@ var Registry;
311
311
  }
312
312
  }
313
313
  Registry.updateApplicationFile = updateApplicationFile;
314
- })(Registry || (exports.Registry = Registry = {}));
315
- /**
316
- * inject the X-Semver header for application based requests
317
- * with this header the semver versioning is required
318
- */
319
- function injectSemverHeader(useSemver = false) {
320
- if (useSemver) {
321
- return { 'X-Semver': 'true' };
314
+ /**
315
+ * inject the X-Semver header for application based requests
316
+ * with this header the semver versioning is required
317
+ */
318
+ function injectSemverHeader(useSemver = false) {
319
+ if (useSemver) {
320
+ return { 'X-Semver': 'true' };
321
+ }
322
+ return {};
322
323
  }
323
- return {};
324
- }
324
+ Registry.injectSemverHeader = injectSemverHeader;
325
+ })(Registry || (exports.Registry = Registry = {}));
325
326
  //# sourceMappingURL=registryAPI.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microtronics/studio-cli",
3
- "version": "0.27.1",
3
+ "version": "0.27.3",
4
4
  "description": "Microtronics Studio CLI Tool",
5
5
  "main": "./out/api.js",
6
6
  "typings": "./dist/studio-cli.d.ts",