@cloud-cli/dx 1.7.0 → 1.7.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/dist/config.js CHANGED
@@ -1,6 +1,8 @@
1
1
  const config = {};
2
2
  export function setConfig(newConfig) {
3
- Object.assign(config, newConfig);
3
+ if (newConfig) {
4
+ Object.assign(config, newConfig);
5
+ }
4
6
  }
5
7
  export function getConfig(name) {
6
8
  return config[name];
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import { init } from '@cloud-cli/cli';
2
2
  import { getRunningContainers, getLogs, startContainer, stopContainer, refreshContainer, startAll } from './containers.js';
3
3
  import { addContainer, removeContainer, listContainers, updateContainer, getContainer } from './store.js';
4
4
  import { pull, prune } from './images.js';
5
- import { Config } from './config';
6
- export { Config } from './config';
5
+ import { Config } from './config.js';
6
+ export type { Config } from './config.js';
7
7
  declare const _default: {
8
8
  pull: typeof pull;
9
9
  prune: typeof prune;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { Container } from './store.js';
4
4
  import { getRunningContainers, getLogs, startContainer, stopContainer, refreshContainer, startAll } from './containers.js';
5
5
  import { addContainer, removeContainer, listContainers, updateContainer, getContainer } from './store.js';
6
6
  import { pull, prune } from './images.js';
7
- import { setConfig } from './config';
7
+ import { setConfig } from './config.js';
8
8
  async function initResource() {
9
9
  Resource.use(new SQLiteDriver());
10
10
  await Resource.create(Container);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/dx",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "Docker container management",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",