label-printer 0.5.2 → 0.5.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/dist/index.js CHANGED
@@ -1637,7 +1637,8 @@ var Label = class extends Printable {
1637
1637
  }
1638
1638
  commandForLanguage(language, config) {
1639
1639
  return __async(this, null, function* () {
1640
- const commandList = yield Promise.all(this.fields.map((field) => field.commandForLanguage(language, config)));
1640
+ const configuration = config != null ? config : this.printConfig;
1641
+ const commandList = yield Promise.all(this.fields.map((field) => field.commandForLanguage(language, configuration)));
1641
1642
  return this.commandGeneratorFor(language).commandGroup(commandList);
1642
1643
  });
1643
1644
  }