@hiyve/cli 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiyve/cli",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Hiyve SDK CLI - Configure npm for private @hiyve packages",
5
5
  "type": "module",
6
6
  "bin": {
package/src/config.js CHANGED
@@ -28,10 +28,10 @@ export function getApiUrl() {
28
28
 
29
29
  /**
30
30
  * Get the registry URL for ~/.npmrc (where npm fetches tarballs).
31
- * Always prod there is one S3 bucket, both APIs point to the same packages.
31
+ * Must match the API URL since tarballs are served through the API.
32
32
  */
33
33
  export function getRegistryUrl() {
34
- return PROD_API_URL;
34
+ return _devMode ? DEV_API_URL : PROD_API_URL;
35
35
  }
36
36
 
37
37
  // Backwards-compatible named export
@@ -22,11 +22,11 @@ describe('config', () => {
22
22
  setDevMode(false);
23
23
  });
24
24
 
25
- it('getRegistryUrl always returns prod URL regardless of dev mode', () => {
25
+ it('getRegistryUrl switches with dev mode', () => {
26
26
  setDevMode(false);
27
27
  expect(getRegistryUrl()).toBe('https://api.hiyve.dev/registry/');
28
28
  setDevMode(true);
29
- expect(getRegistryUrl()).toBe('https://api.hiyve.dev/registry/');
29
+ expect(getRegistryUrl()).toBe('https://api.muziemedia.com/registry/');
30
30
  setDevMode(false);
31
31
  });
32
32
  });