@genesislcap/foundation-fdc3 14.192.2-fdc3-enhancements.9 → 14.192.2-fdc3-enhancements.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"fdc3.d.ts","sourceRoot":"","sources":["../../src/fdc3.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,SAAS,EACT,OAAO,EACP,OAAO,EACP,cAAc,EAOd,OAAO,EACP,gBAAgB,EAKjB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,UAAU,EAAiB,MAAM,MAAM,CAAC;AAIjD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,SAAS;CAAG;AAEnD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;CAAG;AAEjE;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO;CAAG;AAE/C;;;GAGG;AACH,MAAM,WAAW,IAAI;IACnB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,aAAa,EAAE,MAAM,OAAO,CAAC;IAE7B;;;;OAIG;IACH,iBAAiB,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAE3C;;;;OAIG;IACH,kBAAkB,CAAC,SAAS,EAAE,GAAG,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAE1E;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAE/E;;;;;OAKG;IACH,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAErE;;;;;;OAMG;I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,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYnD,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAKrD,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAKlF,yBAAyB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOrE,8BAA8B,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAC1D,GAAG;IAOT,kBAAkB,CAC7B,OAAO,EAAE,WAAW,GAAG,OAAO,EAC9B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAMZ,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIlD,OAAO,CAAC,yBAAyB;CAUlC;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,4DAA4D,CAAC"}
package/dist/esm/fdc3.js CHANGED
@@ -67,15 +67,20 @@ export class DefaultFDC3 {
67
67
  return findIntentsByContext(context);
68
68
  }
69
69
  raiseIntent(context, intent) {
70
- if (getInfo && versionIsAtLeast(getInfo(), '1.2')) {
71
- logger.debug(`fdc3 raiseIntentForContext '${context}'`);
72
- return raiseIntentForContext(context);
73
- }
74
- if (intent) {
75
- logger.debug(`fdc3 raiseIntent '${intent}' '${context}'`);
76
- return raiseIntent(intent, context);
77
- }
78
- logger.error(`fdc3 unable to raiseIntent using context '${context}' and intent '${intent}'.`);
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ if (getInfo) {
72
+ const fdc3Metadata = yield Promise.resolve(getInfo());
73
+ if (fdc3Metadata && versionIsAtLeast(fdc3Metadata, '1.2')) {
74
+ logger.debug(`fdc3 raiseIntentForContext '${context}'`);
75
+ return raiseIntentForContext(context);
76
+ }
77
+ }
78
+ if (intent) {
79
+ logger.debug(`fdc3 raiseIntent '${intent}' '${context}'`);
80
+ return raiseIntent(intent, context);
81
+ }
82
+ logger.error(`fdc3 unable to raiseIntent using context '${context}' and intent '${intent}'.`);
83
+ });
79
84
  }
80
85
  joinChannel(channelId) {
81
86
  var _a;
@@ -104,7 +109,9 @@ export class DefaultFDC3 {
104
109
  broadcastOnCurrentChannel(payload, type) {
105
110
  return __awaiter(this, void 0, void 0, function* () {
106
111
  const channel = yield getCurrentChannel();
107
- this.broadcastMessageOnChannel(channel, payload, type);
112
+ if (channel) {
113
+ this.broadcastMessageOnChannel(channel, payload, type);
114
+ }
108
115
  });
109
116
  }
110
117
  broadcastOnChannelEventHandler(channelName, type) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-fdc3",
3
3
  "description": "Genesis Foundation FDC3",
4
- "version": "14.192.2-fdc3-enhancements.9",
4
+ "version": "14.192.2-fdc3-enhancements.10",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -59,22 +59,22 @@
59
59
  }
60
60
  },
61
61
  "devDependencies": {
62
- "@genesislcap/foundation-testing": "14.192.2-fdc3-enhancements.9",
63
- "@genesislcap/genx": "14.192.2-fdc3-enhancements.9",
64
- "@genesislcap/rollup-builder": "14.192.2-fdc3-enhancements.9",
65
- "@genesislcap/ts-builder": "14.192.2-fdc3-enhancements.9",
66
- "@genesislcap/uvu-playwright-builder": "14.192.2-fdc3-enhancements.9",
67
- "@genesislcap/vite-builder": "14.192.2-fdc3-enhancements.9",
68
- "@genesislcap/webpack-builder": "14.192.2-fdc3-enhancements.9",
62
+ "@genesislcap/foundation-testing": "14.192.2-fdc3-enhancements.10",
63
+ "@genesislcap/genx": "14.192.2-fdc3-enhancements.10",
64
+ "@genesislcap/rollup-builder": "14.192.2-fdc3-enhancements.10",
65
+ "@genesislcap/ts-builder": "14.192.2-fdc3-enhancements.10",
66
+ "@genesislcap/uvu-playwright-builder": "14.192.2-fdc3-enhancements.10",
67
+ "@genesislcap/vite-builder": "14.192.2-fdc3-enhancements.10",
68
+ "@genesislcap/webpack-builder": "14.192.2-fdc3-enhancements.10",
69
69
  "rimraf": "^5.0.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "@finos/fdc3": "^1.2.0",
73
- "@genesislcap/foundation-logger": "14.192.2-fdc3-enhancements.9",
74
- "@genesislcap/foundation-notifications": "14.192.2-fdc3-enhancements.9",
75
- "@genesislcap/foundation-ui": "14.192.2-fdc3-enhancements.9",
76
- "@genesislcap/foundation-utils": "14.192.2-fdc3-enhancements.9",
77
- "@genesislcap/web-core": "14.192.2-fdc3-enhancements.9",
73
+ "@genesislcap/foundation-logger": "14.192.2-fdc3-enhancements.10",
74
+ "@genesislcap/foundation-notifications": "14.192.2-fdc3-enhancements.10",
75
+ "@genesislcap/foundation-ui": "14.192.2-fdc3-enhancements.10",
76
+ "@genesislcap/foundation-utils": "14.192.2-fdc3-enhancements.10",
77
+ "@genesislcap/web-core": "14.192.2-fdc3-enhancements.10",
78
78
  "@interopio/desktop": "^6.3.1",
79
79
  "@microsoft/fast-element": "^1.12.0",
80
80
  "@microsoft/fast-foundation": "^2.49.4",
@@ -89,5 +89,5 @@
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "7a5b010b3245fcdb843590c2eafecc5ae3d311e2"
92
+ "gitHead": "f3a6cc6bd8887e787cd291a2dd6771f781523bf6"
93
93
  }