@contrail/flexplm 2.0.0-alpha.df05bb5 → 2.0.0-alpha.fe82e73

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.
@@ -1,5 +1,5 @@
1
1
  export interface FCConfig {
2
- apiKey?: string;
2
+ apiKey?(): string;
3
3
  orgSlug?: string;
4
4
  action?: string;
5
5
  configFile?: string;
@@ -49,6 +49,10 @@ class BaseProcessPublishAssortment {
49
49
  const eventStatus = (message.includes(BaseProcessPublishAssortment.ASSORTMENT_NOT_PUBLISHABLE)) ? event_short_message_status_1.EventShortMessageStatus.NOT_PUBLISHABLE :
50
50
  (message.startsWith(BaseProcessPublishAssortment.ASSORTMENT_NO_FED_INFO)) ? event_short_message_status_1.EventShortMessageStatus.NO_FEDERATION_INFO :
51
51
  event_short_message_status_1.EventShortMessageStatus.FAILURE;
52
+ if (eventStatus === event_short_message_status_1.EventShortMessageStatus.FAILURE) {
53
+ span.recordException(e);
54
+ span.setStatus({ code: api_1.SpanStatusCode.ERROR, message });
55
+ }
52
56
  this.recordPublishStatus({
53
57
  status: eventStatus,
54
58
  assortmentId,
@@ -43,8 +43,10 @@ class ConfigDefaults {
43
43
  const outputConfig = util_1.ObjectUtil.mergeDeep({}, ...configArr);
44
44
  const uName = outputConfig.userName;
45
45
  const pass = outputConfig.password;
46
+ const key = outputConfig.apiKey;
46
47
  outputConfig.userName = () => uName;
47
48
  outputConfig.password = () => pass;
49
+ outputConfig.apiKey = () => key;
48
50
  // Don't allow overwriting this.
49
51
  outputConfig['OOBvibeEventEndpoint'] = '/rfa/vibeiq/vibeEvents';
50
52
  type_defaults_1.TypeDefaults.applyConfig(outputConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "2.0.0-alpha.df05bb5",
3
+ "version": "2.0.0-alpha.fe82e73",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",