@cenk1cenk2/oclif-common 3.5.0 → 3.5.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -640,7 +640,9 @@ __name(merge, "merge");
640
640
  // src/utils/defaults.ts
641
641
  function setCtxDefaults(ctx, ...defaults) {
642
642
  defaults?.forEach((i) => {
643
- Object.assign(ctx, i);
643
+ if (typeof i === "object" && !Array.isArray(i)) {
644
+ Object.assign(ctx, i);
645
+ }
644
646
  });
645
647
  }
646
648
  __name(setCtxDefaults, "setCtxDefaults");
@@ -1030,7 +1032,7 @@ var Command = class extends import_core3.Command {
1030
1032
  async init() {
1031
1033
  let err;
1032
1034
  try {
1033
- const { flags, args } = await this.parse(this.ctor);
1035
+ const { flags, args } = await this.parse();
1034
1036
  this.flags = flags;
1035
1037
  this.args = args;
1036
1038
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "author": {