@sprucelabs/spruce-heartwood-utils 16.17.22 → 17.0.0

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.
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.HeartwoodDevice = void 0;
7
- /* eslint-disable no-undef */
8
7
  const events_1 = __importDefault(require("events"));
9
8
  const schema_1 = require("@sprucelabs/schema");
10
9
  class HeartwoodDevice extends events_1.default {
@@ -1,5 +1,5 @@
1
1
  import AbstractSpruceError from '@sprucelabs/error';
2
- import ErrorOptions from "./../.spruce/errors/options.types";
2
+ import ErrorOptions from './../.spruce/errors/options.types';
3
3
  export default class SpruceError extends AbstractSpruceError<ErrorOptions> {
4
4
  friendlyMessage(): string;
5
5
  }
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-undef */
2
1
  import EventEmitter from 'events';
3
2
  import { assertOptions } from '@sprucelabs/schema';
4
3
  export class HeartwoodDevice extends EventEmitter {
@@ -1,5 +1,5 @@
1
1
  import AbstractSpruceError from '@sprucelabs/error';
2
- import ErrorOptions from "./../.spruce/errors/options.types";
2
+ import ErrorOptions from './../.spruce/errors/options.types';
3
3
  export default class SpruceError extends AbstractSpruceError<ErrorOptions> {
4
4
  friendlyMessage(): string;
5
5
  }
@@ -55,7 +55,9 @@ export default class CardRegistrar {
55
55
  cards.push(this.ErrorCardVc(err));
56
56
  return;
57
57
  }
58
- const vcIds = payload ? this.vcIdsTransformer(payload) : [];
58
+ const vcIds = payload
59
+ ? this.vcIdsTransformer(payload)
60
+ : [];
59
61
  if (!Array.isArray(vcIds)) {
60
62
  throw 'Your vcIdsTransform MUST return an array!';
61
63
  }
@@ -50,7 +50,9 @@ class CardRegistrar {
50
50
  cards.push(this.ErrorCardVc(err));
51
51
  return;
52
52
  }
53
- const vcIds = payload ? this.vcIdsTransformer(payload) : [];
53
+ const vcIds = payload
54
+ ? this.vcIdsTransformer(payload)
55
+ : [];
54
56
  if (!Array.isArray(vcIds)) {
55
57
  throw 'Your vcIdsTransform MUST return an array!';
56
58
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "16.17.22",
4
+ "version": "17.0.0",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },