@interopio/fdc3 2.1.2 → 2.1.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/fdc3.electron.es.js +6 -6
- package/dist/fdc3.electron.umd.js +6 -6
- package/dist/fdc3.es.js +6 -6
- package/dist/fdc3.umd.js +6 -6
- package/package.json +2 -2
package/dist/fdc3.electron.es.js
CHANGED
|
@@ -1218,7 +1218,7 @@ class GlueController {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
channelsSubscribe(callback, contextType) {
|
|
1220
1220
|
const didReplay = { replayed: false };
|
|
1221
|
-
return this.glue.channels.subscribe((_, contextData, updaterId) =>
|
|
1221
|
+
return this.glue.channels.subscribe((_, contextData, updaterId) => {
|
|
1222
1222
|
if (this.isUpdateFromMe(updaterId) || !contextData || !contextData.latest_fdc3_type) {
|
|
1223
1223
|
return;
|
|
1224
1224
|
}
|
|
@@ -1227,7 +1227,7 @@ class GlueController {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
this.invokePreviouslyBroadcastedData({ callback, contextData, metadata: this.getContextMetadata(updaterId), contextType });
|
|
1229
1229
|
didReplay.replayed = true;
|
|
1230
|
-
})
|
|
1230
|
+
});
|
|
1231
1231
|
}
|
|
1232
1232
|
contextsSubscribe(contextName, callback) {
|
|
1233
1233
|
const didReplay = { replayed: false };
|
|
@@ -1289,7 +1289,7 @@ class GlueController {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
getLatestBroadcastedDataByContextType(contextData, contextType) {
|
|
1291
1291
|
let foundData;
|
|
1292
|
-
Object.entries(contextData.data).
|
|
1292
|
+
Object.entries(contextData.data).forEach(([key, value]) => {
|
|
1293
1293
|
if (!this.channelsParser.isFdc3DataKey(key)) {
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
@@ -1989,7 +1989,7 @@ class IntentsController {
|
|
|
1989
1989
|
return result;
|
|
1990
1990
|
}
|
|
1991
1991
|
if (result.fdc3intentContext) {
|
|
1992
|
-
return result.fdc3intentContext;
|
|
1992
|
+
return result.fdc3intentContext.payload;
|
|
1993
1993
|
}
|
|
1994
1994
|
const { fdc3intentChannel } = result;
|
|
1995
1995
|
if (fdc3intentChannel.type === "user") {
|
|
@@ -2062,7 +2062,7 @@ class IntentsController {
|
|
|
2062
2062
|
const handlerResultType = this.getResultType(handlerResult);
|
|
2063
2063
|
return handlerResultType === IntentHandlerResultTypes.Channel
|
|
2064
2064
|
? { fdc3intentChannel: extractChannelMetadata(handlerResult) }
|
|
2065
|
-
: { fdc3intentContext: handlerResult };
|
|
2065
|
+
: { fdc3intentContext: { contextType: handlerResult.type, payload: handlerResult } };
|
|
2066
2066
|
});
|
|
2067
2067
|
return wrappedHandler;
|
|
2068
2068
|
}
|
|
@@ -2109,7 +2109,7 @@ class IntentsController {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
}
|
|
2111
2111
|
|
|
2112
|
-
var version = "2.1.
|
|
2112
|
+
var version = "2.1.3";
|
|
2113
2113
|
|
|
2114
2114
|
class ApplicationsController {
|
|
2115
2115
|
constructor(glueController, appsStateStore, glueEventsController) {
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
}
|
|
1225
1225
|
channelsSubscribe(callback, contextType) {
|
|
1226
1226
|
const didReplay = { replayed: false };
|
|
1227
|
-
return this.glue.channels.subscribe((_, contextData, updaterId) =>
|
|
1227
|
+
return this.glue.channels.subscribe((_, contextData, updaterId) => {
|
|
1228
1228
|
if (this.isUpdateFromMe(updaterId) || !contextData || !contextData.latest_fdc3_type) {
|
|
1229
1229
|
return;
|
|
1230
1230
|
}
|
|
@@ -1233,7 +1233,7 @@
|
|
|
1233
1233
|
}
|
|
1234
1234
|
this.invokePreviouslyBroadcastedData({ callback, contextData, metadata: this.getContextMetadata(updaterId), contextType });
|
|
1235
1235
|
didReplay.replayed = true;
|
|
1236
|
-
})
|
|
1236
|
+
});
|
|
1237
1237
|
}
|
|
1238
1238
|
contextsSubscribe(contextName, callback) {
|
|
1239
1239
|
const didReplay = { replayed: false };
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
}
|
|
1296
1296
|
getLatestBroadcastedDataByContextType(contextData, contextType) {
|
|
1297
1297
|
let foundData;
|
|
1298
|
-
Object.entries(contextData.data).
|
|
1298
|
+
Object.entries(contextData.data).forEach(([key, value]) => {
|
|
1299
1299
|
if (!this.channelsParser.isFdc3DataKey(key)) {
|
|
1300
1300
|
return;
|
|
1301
1301
|
}
|
|
@@ -1995,7 +1995,7 @@
|
|
|
1995
1995
|
return result;
|
|
1996
1996
|
}
|
|
1997
1997
|
if (result.fdc3intentContext) {
|
|
1998
|
-
return result.fdc3intentContext;
|
|
1998
|
+
return result.fdc3intentContext.payload;
|
|
1999
1999
|
}
|
|
2000
2000
|
const { fdc3intentChannel } = result;
|
|
2001
2001
|
if (fdc3intentChannel.type === "user") {
|
|
@@ -2068,7 +2068,7 @@
|
|
|
2068
2068
|
const handlerResultType = this.getResultType(handlerResult);
|
|
2069
2069
|
return handlerResultType === IntentHandlerResultTypes.Channel
|
|
2070
2070
|
? { fdc3intentChannel: extractChannelMetadata(handlerResult) }
|
|
2071
|
-
: { fdc3intentContext: handlerResult };
|
|
2071
|
+
: { fdc3intentContext: { contextType: handlerResult.type, payload: handlerResult } };
|
|
2072
2072
|
});
|
|
2073
2073
|
return wrappedHandler;
|
|
2074
2074
|
}
|
|
@@ -2115,7 +2115,7 @@
|
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
2117
|
|
|
2118
|
-
var version = "2.1.
|
|
2118
|
+
var version = "2.1.3";
|
|
2119
2119
|
|
|
2120
2120
|
class ApplicationsController {
|
|
2121
2121
|
constructor(glueController, appsStateStore, glueEventsController) {
|
package/dist/fdc3.es.js
CHANGED
|
@@ -1207,7 +1207,7 @@ class GlueController {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
channelsSubscribe(callback, contextType) {
|
|
1209
1209
|
const didReplay = { replayed: false };
|
|
1210
|
-
return this.glue.channels.subscribe((_, contextData, updaterId) =>
|
|
1210
|
+
return this.glue.channels.subscribe((_, contextData, updaterId) => {
|
|
1211
1211
|
if (this.isUpdateFromMe(updaterId) || !contextData || !contextData.latest_fdc3_type) {
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
@@ -1216,7 +1216,7 @@ class GlueController {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
this.invokePreviouslyBroadcastedData({ callback, contextData, metadata: this.getContextMetadata(updaterId), contextType });
|
|
1218
1218
|
didReplay.replayed = true;
|
|
1219
|
-
})
|
|
1219
|
+
});
|
|
1220
1220
|
}
|
|
1221
1221
|
contextsSubscribe(contextName, callback) {
|
|
1222
1222
|
const didReplay = { replayed: false };
|
|
@@ -1278,7 +1278,7 @@ class GlueController {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
getLatestBroadcastedDataByContextType(contextData, contextType) {
|
|
1280
1280
|
let foundData;
|
|
1281
|
-
Object.entries(contextData.data).
|
|
1281
|
+
Object.entries(contextData.data).forEach(([key, value]) => {
|
|
1282
1282
|
if (!this.channelsParser.isFdc3DataKey(key)) {
|
|
1283
1283
|
return;
|
|
1284
1284
|
}
|
|
@@ -1978,7 +1978,7 @@ class IntentsController {
|
|
|
1978
1978
|
return result;
|
|
1979
1979
|
}
|
|
1980
1980
|
if (result.fdc3intentContext) {
|
|
1981
|
-
return result.fdc3intentContext;
|
|
1981
|
+
return result.fdc3intentContext.payload;
|
|
1982
1982
|
}
|
|
1983
1983
|
const { fdc3intentChannel } = result;
|
|
1984
1984
|
if (fdc3intentChannel.type === "user") {
|
|
@@ -2051,7 +2051,7 @@ class IntentsController {
|
|
|
2051
2051
|
const handlerResultType = this.getResultType(handlerResult);
|
|
2052
2052
|
return handlerResultType === IntentHandlerResultTypes.Channel
|
|
2053
2053
|
? { fdc3intentChannel: extractChannelMetadata(handlerResult) }
|
|
2054
|
-
: { fdc3intentContext: handlerResult };
|
|
2054
|
+
: { fdc3intentContext: { contextType: handlerResult.type, payload: handlerResult } };
|
|
2055
2055
|
});
|
|
2056
2056
|
return wrappedHandler;
|
|
2057
2057
|
}
|
|
@@ -2098,7 +2098,7 @@ class IntentsController {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
|
-
var version = "2.1.
|
|
2101
|
+
var version = "2.1.3";
|
|
2102
2102
|
|
|
2103
2103
|
class ApplicationsController {
|
|
2104
2104
|
constructor(glueController, appsStateStore, glueEventsController) {
|
package/dist/fdc3.umd.js
CHANGED
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
}
|
|
1214
1214
|
channelsSubscribe(callback, contextType) {
|
|
1215
1215
|
const didReplay = { replayed: false };
|
|
1216
|
-
return this.glue.channels.subscribe((_, contextData, updaterId) =>
|
|
1216
|
+
return this.glue.channels.subscribe((_, contextData, updaterId) => {
|
|
1217
1217
|
if (this.isUpdateFromMe(updaterId) || !contextData || !contextData.latest_fdc3_type) {
|
|
1218
1218
|
return;
|
|
1219
1219
|
}
|
|
@@ -1222,7 +1222,7 @@
|
|
|
1222
1222
|
}
|
|
1223
1223
|
this.invokePreviouslyBroadcastedData({ callback, contextData, metadata: this.getContextMetadata(updaterId), contextType });
|
|
1224
1224
|
didReplay.replayed = true;
|
|
1225
|
-
})
|
|
1225
|
+
});
|
|
1226
1226
|
}
|
|
1227
1227
|
contextsSubscribe(contextName, callback) {
|
|
1228
1228
|
const didReplay = { replayed: false };
|
|
@@ -1284,7 +1284,7 @@
|
|
|
1284
1284
|
}
|
|
1285
1285
|
getLatestBroadcastedDataByContextType(contextData, contextType) {
|
|
1286
1286
|
let foundData;
|
|
1287
|
-
Object.entries(contextData.data).
|
|
1287
|
+
Object.entries(contextData.data).forEach(([key, value]) => {
|
|
1288
1288
|
if (!this.channelsParser.isFdc3DataKey(key)) {
|
|
1289
1289
|
return;
|
|
1290
1290
|
}
|
|
@@ -1984,7 +1984,7 @@
|
|
|
1984
1984
|
return result;
|
|
1985
1985
|
}
|
|
1986
1986
|
if (result.fdc3intentContext) {
|
|
1987
|
-
return result.fdc3intentContext;
|
|
1987
|
+
return result.fdc3intentContext.payload;
|
|
1988
1988
|
}
|
|
1989
1989
|
const { fdc3intentChannel } = result;
|
|
1990
1990
|
if (fdc3intentChannel.type === "user") {
|
|
@@ -2057,7 +2057,7 @@
|
|
|
2057
2057
|
const handlerResultType = this.getResultType(handlerResult);
|
|
2058
2058
|
return handlerResultType === IntentHandlerResultTypes.Channel
|
|
2059
2059
|
? { fdc3intentChannel: extractChannelMetadata(handlerResult) }
|
|
2060
|
-
: { fdc3intentContext: handlerResult };
|
|
2060
|
+
: { fdc3intentContext: { contextType: handlerResult.type, payload: handlerResult } };
|
|
2061
2061
|
});
|
|
2062
2062
|
return wrappedHandler;
|
|
2063
2063
|
}
|
|
@@ -2104,7 +2104,7 @@
|
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
2107
|
-
var version = "2.1.
|
|
2107
|
+
var version = "2.1.3";
|
|
2108
2108
|
|
|
2109
2109
|
class ApplicationsController {
|
|
2110
2110
|
constructor(glueController, appsStateStore, glueEventsController) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/fdc3",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "IO Connect implementation of the FDC3 standard",
|
|
5
5
|
"main": "dist/fdc3.umd.js",
|
|
6
6
|
"module": "dist/fdc3.es.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"decoder-validate": "^0.0.2",
|
|
51
51
|
"nanoid": "^4.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "abd515916de960fd357dadab2b300c4bbe12f91d"
|
|
54
54
|
}
|