Socket
Socket
Sign inDemoInstall

@finos/fdc3

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@finos/fdc3 - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

dist/fdc3.cjs.development.js

@@ -597,3 +597,3 @@ 'use strict';

Intents["StartCall"] = "StartCall";
Intents["StartChart"] = "StartChart";
Intents["StartChat"] = "StartChat";
Intents["ViewChart"] = "ViewChart";

@@ -600,0 +600,0 @@ Intents["ViewContact"] = "ViewContact";

@@ -1,2 +0,2 @@

"use strict";var n,t,o;Object.defineProperty(exports,"__esModule",{value:!0}),(n=exports.OpenError||(exports.OpenError={})).AppNotFound="AppNotFound",n.ErrorOnLaunch="ErrorOnLaunch",n.AppTimeout="AppTimeout",n.ResolverUnavailable="ResolverUnavailable",(t=exports.ResolveError||(exports.ResolveError={})).NoAppsFound="NoAppsFound",t.ResolverUnavailable="ResolverUnavailable",t.ResolverTimeout="ResolverTimeout",(o=exports.ChannelError||(exports.ChannelError={})).NoChannelFound="NoChannelFound",o.AccessDenied="AccessDenied",o.CreationFailed="CreationFailed";var r,e=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),i=function(n){return window.fdc3?n():Promise.reject(e)},s=function(n){if(!window.fdc3)throw e;return n()};(r=exports.ContextTypes||(exports.ContextTypes={})).Contact="fdc3.contact",r.ContactList="fdc3.contactList",r.Country="fdc3.country",r.Instrument="fdc3.instrument",r.Organization="fdc3.organization",r.Portfolio="fdc3.portfolio",r.Position="fdc3.position";var u=function(){function n(){}return n.toContext=function(n){return f(JSON.parse(n),m("Context"))},n.contextToJson=function(n){return JSON.stringify(d(n,m("Context")),null,2)},n.toContact=function(n){return f(JSON.parse(n),m("Contact"))},n.contactToJson=function(n){return JSON.stringify(d(n,m("Contact")),null,2)},n.toContactList=function(n){return f(JSON.parse(n),m("ContactList"))},n.contactListToJson=function(n){return JSON.stringify(d(n,m("ContactList")),null,2)},n.toInstrument=function(n){return f(JSON.parse(n),m("Instrument"))},n.instrumentToJson=function(n){return JSON.stringify(d(n,m("Instrument")),null,2)},n.toInstrumentList=function(n){return f(JSON.parse(n),m("InstrumentList"))},n.instrumentListToJson=function(n){return JSON.stringify(d(n,m("InstrumentList")),null,2)},n.toCountry=function(n){return f(JSON.parse(n),m("Country"))},n.countryToJson=function(n){return JSON.stringify(d(n,m("Country")),null,2)},n.toOrganization=function(n){return f(JSON.parse(n),m("Organization"))},n.organizationToJson=function(n){return JSON.stringify(d(n,m("Organization")),null,2)},n.toPortfolio=function(n){return f(JSON.parse(n),m("Portfolio"))},n.portfolioToJson=function(n){return JSON.stringify(d(n,m("Portfolio")),null,2)},n.toPosition=function(n){return f(JSON.parse(n),m("Position"))},n.positionToJson=function(n){return JSON.stringify(d(n,m("Position")),null,2)},n}();function a(n,t,o){if(void 0===o&&(o=""),o)throw Error('Invalid value for key "'+o+'". Expected type '+JSON.stringify(n)+" but got "+JSON.stringify(t));throw Error("Invalid value "+JSON.stringify(t)+" for type "+JSON.stringify(n))}function p(n){if(void 0===n.jsonToJS){var t={};n.props.forEach((function(n){return t[n.json]={key:n.js,typ:n.typ}})),n.jsonToJS=t}return n.jsonToJS}function c(n){if(void 0===n.jsToJSON){var t={};n.props.forEach((function(n){return t[n.js]={key:n.json,typ:n.typ}})),n.jsToJSON=t}return n.jsToJSON}function y(n,t,o,r){if(void 0===r&&(r=""),"any"===t)return n;if(null===t)return null===n?n:a(t,n);if(!1===t)return a(t,n);for(;"object"==typeof t&&void 0!==t.ref;)t=O[t.ref];return Array.isArray(t)?function(n,t){return-1!==n.indexOf(t)?t:a(n,t)}(t,n):"object"==typeof t?t.hasOwnProperty("unionMembers")?function(n,t){for(var r=n.length,e=0;e<r;e++){var i=n[e];try{return y(t,i,o)}catch(n){}}return a(n,t)}(t.unionMembers,n):t.hasOwnProperty("arrayItems")?function(n,t){return Array.isArray(t)?t.map((function(t){return y(t,n,o)})):a("array",t)}(t.arrayItems,n):t.hasOwnProperty("props")?function(n,t,r){if(null===r||"object"!=typeof r||Array.isArray(r))return a("object",r);var e={};return Object.getOwnPropertyNames(n).forEach((function(t){var i=n[t],s=Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0;e[i.key]=y(s,i.typ,o,i.key)})),Object.getOwnPropertyNames(r).forEach((function(i){Object.prototype.hasOwnProperty.call(n,i)||(e[i]=y(r[i],t,o,i))})),e}(o(t),t.additional,n):a(t,n):t===Date&&"number"!=typeof n?function(n){if(null===n)return null;var t=new Date(n);return isNaN(t.valueOf())?a("Date",n):t}(n):function(n,t){return typeof n==typeof t?t:a(n,t,r)}(t,n)}function f(n,t){return y(n,t,p)}function d(n,t){return y(n,t,c)}function j(n){return{arrayItems:n}}function l(){for(var n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return{unionMembers:t}}function v(n,t){return{props:n,additional:t}}function I(n){return{props:[],additional:n}}function m(n){return{ref:n}}var C,O={Context:v([{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")},{json:"type",js:"type",typ:""}],"any"),ContactList:v([{json:"contacts",js:"contacts",typ:j(m("Contact"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")}],"any"),Contact:v([{json:"id",js:"id",typ:m("ContactID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:l(void 0,"")}],"any"),ContactID:v([{json:"email",js:"email",typ:l(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:l(void 0,"")}],""),InstrumentList:v([{json:"instruments",js:"instruments",typ:j(m("Instrument"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")}],"any"),Instrument:v([{json:"id",js:"id",typ:m("InstrumentID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:l(void 0,"")}],"any"),InstrumentID:v([{json:"BBG",js:"BBG",typ:l(void 0,"")},{json:"CUSIP",js:"CUSIP",typ:l(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:l(void 0,"")},{json:"FIGI",js:"FIGI",typ:l(void 0,"")},{json:"ISIN",js:"ISIN",typ:l(void 0,"")},{json:"PERMID",js:"PERMID",typ:l(void 0,"")},{json:"RIC",js:"RIC",typ:l(void 0,"")},{json:"SEDOL",js:"SEDOL",typ:l(void 0,"")},{json:"ticker",js:"ticker",typ:l(void 0,"")}],""),Country:v([{json:"id",js:"id",typ:m("CountryID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:l(void 0,"")}],"any"),CountryID:v([{json:"ISOALPHA2",js:"ISOALPHA2",typ:l(void 0,"")},{json:"ISOALPHA3",js:"ISOALPHA3",typ:l(void 0,"")}],""),Organization:v([{json:"id",js:"id",typ:m("OrganizationID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:l(void 0,"")}],"any"),OrganizationID:v([{json:"FDS_ID",js:"FDS_ID",typ:l(void 0,"")},{json:"LEI",js:"LEI",typ:l(void 0,"")},{json:"PERMID",js:"PERMID",typ:l(void 0,"")}],""),Portfolio:v([{json:"positions",js:"positions",typ:j(m("Position"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")}],"any"),Position:v([{json:"holding",js:"holding",typ:3.14},{json:"instrument",js:"instrument",typ:m("Instrument")},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")}],"any")};(C=exports.Intents||(exports.Intents={})).StartCall="StartCall",C.StartChart="StartChart",C.ViewChart="ViewChart",C.ViewContact="ViewContact",C.ViewQuote="ViewQuote",C.ViewNews="ViewNews",C.ViewInstrument="ViewInstrument",C.ViewAnalysis="ViewAnalysis",exports.Convert=u,exports.addContextListener=function(n,t){return s("function"!=typeof n?function(){return window.fdc3.addContextListener(n,t)}:function(){return window.fdc3.addContextListener(n)})},exports.addIntentListener=function(n,t){return s((function(){return window.fdc3.addIntentListener(n,t)}))},exports.broadcast=function(n){s((function(){return window.fdc3.broadcast(n)}))},exports.findIntent=function(n,t){return i((function(){return window.fdc3.findIntent(n,t)}))},exports.findIntentsByContext=function(n){return i((function(){return window.fdc3.findIntentsByContext(n)}))},exports.getOrCreateChannel=function(n){return i((function(){return window.fdc3.getOrCreateChannel(n)}))},exports.getSystemChannels=function(){return i((function(){return window.fdc3.getSystemChannels()}))},exports.joinChannel=function(n){return i((function(){return window.fdc3.joinChannel(n)}))},exports.open=function(n,t){return i((function(){return window.fdc3.open(n,t)}))},exports.raiseIntent=function(n,t,o){return i((function(){return window.fdc3.raiseIntent(n,t,o)}))};
"use strict";var n,t,o;Object.defineProperty(exports,"__esModule",{value:!0}),(n=exports.OpenError||(exports.OpenError={})).AppNotFound="AppNotFound",n.ErrorOnLaunch="ErrorOnLaunch",n.AppTimeout="AppTimeout",n.ResolverUnavailable="ResolverUnavailable",(t=exports.ResolveError||(exports.ResolveError={})).NoAppsFound="NoAppsFound",t.ResolverUnavailable="ResolverUnavailable",t.ResolverTimeout="ResolverTimeout",(o=exports.ChannelError||(exports.ChannelError={})).NoChannelFound="NoChannelFound",o.AccessDenied="AccessDenied",o.CreationFailed="CreationFailed";var r,e=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),i=function(n){return window.fdc3?n():Promise.reject(e)},s=function(n){if(!window.fdc3)throw e;return n()};(r=exports.ContextTypes||(exports.ContextTypes={})).Contact="fdc3.contact",r.ContactList="fdc3.contactList",r.Country="fdc3.country",r.Instrument="fdc3.instrument",r.Organization="fdc3.organization",r.Portfolio="fdc3.portfolio",r.Position="fdc3.position";var u=function(){function n(){}return n.toContext=function(n){return f(JSON.parse(n),m("Context"))},n.contextToJson=function(n){return JSON.stringify(d(n,m("Context")),null,2)},n.toContact=function(n){return f(JSON.parse(n),m("Contact"))},n.contactToJson=function(n){return JSON.stringify(d(n,m("Contact")),null,2)},n.toContactList=function(n){return f(JSON.parse(n),m("ContactList"))},n.contactListToJson=function(n){return JSON.stringify(d(n,m("ContactList")),null,2)},n.toInstrument=function(n){return f(JSON.parse(n),m("Instrument"))},n.instrumentToJson=function(n){return JSON.stringify(d(n,m("Instrument")),null,2)},n.toInstrumentList=function(n){return f(JSON.parse(n),m("InstrumentList"))},n.instrumentListToJson=function(n){return JSON.stringify(d(n,m("InstrumentList")),null,2)},n.toCountry=function(n){return f(JSON.parse(n),m("Country"))},n.countryToJson=function(n){return JSON.stringify(d(n,m("Country")),null,2)},n.toOrganization=function(n){return f(JSON.parse(n),m("Organization"))},n.organizationToJson=function(n){return JSON.stringify(d(n,m("Organization")),null,2)},n.toPortfolio=function(n){return f(JSON.parse(n),m("Portfolio"))},n.portfolioToJson=function(n){return JSON.stringify(d(n,m("Portfolio")),null,2)},n.toPosition=function(n){return f(JSON.parse(n),m("Position"))},n.positionToJson=function(n){return JSON.stringify(d(n,m("Position")),null,2)},n}();function a(n,t,o){if(void 0===o&&(o=""),o)throw Error('Invalid value for key "'+o+'". Expected type '+JSON.stringify(n)+" but got "+JSON.stringify(t));throw Error("Invalid value "+JSON.stringify(t)+" for type "+JSON.stringify(n))}function p(n){if(void 0===n.jsonToJS){var t={};n.props.forEach((function(n){return t[n.json]={key:n.js,typ:n.typ}})),n.jsonToJS=t}return n.jsonToJS}function c(n){if(void 0===n.jsToJSON){var t={};n.props.forEach((function(n){return t[n.js]={key:n.json,typ:n.typ}})),n.jsToJSON=t}return n.jsToJSON}function y(n,t,o,r){if(void 0===r&&(r=""),"any"===t)return n;if(null===t)return null===n?n:a(t,n);if(!1===t)return a(t,n);for(;"object"==typeof t&&void 0!==t.ref;)t=O[t.ref];return Array.isArray(t)?function(n,t){return-1!==n.indexOf(t)?t:a(n,t)}(t,n):"object"==typeof t?t.hasOwnProperty("unionMembers")?function(n,t){for(var r=n.length,e=0;e<r;e++){var i=n[e];try{return y(t,i,o)}catch(n){}}return a(n,t)}(t.unionMembers,n):t.hasOwnProperty("arrayItems")?function(n,t){return Array.isArray(t)?t.map((function(t){return y(t,n,o)})):a("array",t)}(t.arrayItems,n):t.hasOwnProperty("props")?function(n,t,r){if(null===r||"object"!=typeof r||Array.isArray(r))return a("object",r);var e={};return Object.getOwnPropertyNames(n).forEach((function(t){var i=n[t],s=Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0;e[i.key]=y(s,i.typ,o,i.key)})),Object.getOwnPropertyNames(r).forEach((function(i){Object.prototype.hasOwnProperty.call(n,i)||(e[i]=y(r[i],t,o,i))})),e}(o(t),t.additional,n):a(t,n):t===Date&&"number"!=typeof n?function(n){if(null===n)return null;var t=new Date(n);return isNaN(t.valueOf())?a("Date",n):t}(n):function(n,t){return typeof n==typeof t?t:a(n,t,r)}(t,n)}function f(n,t){return y(n,t,p)}function d(n,t){return y(n,t,c)}function j(n){return{arrayItems:n}}function l(){for(var n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return{unionMembers:t}}function v(n,t){return{props:n,additional:t}}function I(n){return{props:[],additional:n}}function m(n){return{ref:n}}var C,O={Context:v([{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")},{json:"type",js:"type",typ:""}],"any"),ContactList:v([{json:"contacts",js:"contacts",typ:j(m("Contact"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")}],"any"),Contact:v([{json:"id",js:"id",typ:m("ContactID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:l(void 0,"")}],"any"),ContactID:v([{json:"email",js:"email",typ:l(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:l(void 0,"")}],""),InstrumentList:v([{json:"instruments",js:"instruments",typ:j(m("Instrument"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")}],"any"),Instrument:v([{json:"id",js:"id",typ:m("InstrumentID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:l(void 0,"")}],"any"),InstrumentID:v([{json:"BBG",js:"BBG",typ:l(void 0,"")},{json:"CUSIP",js:"CUSIP",typ:l(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:l(void 0,"")},{json:"FIGI",js:"FIGI",typ:l(void 0,"")},{json:"ISIN",js:"ISIN",typ:l(void 0,"")},{json:"PERMID",js:"PERMID",typ:l(void 0,"")},{json:"RIC",js:"RIC",typ:l(void 0,"")},{json:"SEDOL",js:"SEDOL",typ:l(void 0,"")},{json:"ticker",js:"ticker",typ:l(void 0,"")}],""),Country:v([{json:"id",js:"id",typ:m("CountryID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:l(void 0,"")}],"any"),CountryID:v([{json:"ISOALPHA2",js:"ISOALPHA2",typ:l(void 0,"")},{json:"ISOALPHA3",js:"ISOALPHA3",typ:l(void 0,"")}],""),Organization:v([{json:"id",js:"id",typ:m("OrganizationID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:l(void 0,"")}],"any"),OrganizationID:v([{json:"FDS_ID",js:"FDS_ID",typ:l(void 0,"")},{json:"LEI",js:"LEI",typ:l(void 0,"")},{json:"PERMID",js:"PERMID",typ:l(void 0,"")}],""),Portfolio:v([{json:"positions",js:"positions",typ:j(m("Position"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")}],"any"),Position:v([{json:"holding",js:"holding",typ:3.14},{json:"instrument",js:"instrument",typ:m("Instrument")},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:l(void 0,I(""))},{json:"name",js:"name",typ:l(void 0,"")}],"any")};(C=exports.Intents||(exports.Intents={})).StartCall="StartCall",C.StartChat="StartChat",C.ViewChart="ViewChart",C.ViewContact="ViewContact",C.ViewQuote="ViewQuote",C.ViewNews="ViewNews",C.ViewInstrument="ViewInstrument",C.ViewAnalysis="ViewAnalysis",exports.Convert=u,exports.addContextListener=function(n,t){return s("function"!=typeof n?function(){return window.fdc3.addContextListener(n,t)}:function(){return window.fdc3.addContextListener(n)})},exports.addIntentListener=function(n,t){return s((function(){return window.fdc3.addIntentListener(n,t)}))},exports.broadcast=function(n){s((function(){return window.fdc3.broadcast(n)}))},exports.findIntent=function(n,t){return i((function(){return window.fdc3.findIntent(n,t)}))},exports.findIntentsByContext=function(n){return i((function(){return window.fdc3.findIntentsByContext(n)}))},exports.getOrCreateChannel=function(n){return i((function(){return window.fdc3.getOrCreateChannel(n)}))},exports.getSystemChannels=function(){return i((function(){return window.fdc3.getSystemChannels()}))},exports.joinChannel=function(n){return i((function(){return window.fdc3.joinChannel(n)}))},exports.open=function(n,t){return i((function(){return window.fdc3.open(n,t)}))},exports.raiseIntent=function(n,t,o){return i((function(){return window.fdc3.raiseIntent(n,t,o)}))};
//# sourceMappingURL=fdc3.cjs.production.min.js.map

@@ -602,3 +602,3 @@ /**

Intents["StartCall"] = "StartCall";
Intents["StartChart"] = "StartChart";
Intents["StartChat"] = "StartChat";
Intents["ViewChart"] = "ViewChart";

@@ -605,0 +605,0 @@ Intents["ViewContact"] = "ViewContact";

export declare enum Intents {
StartCall = "StartCall",
StartChart = "StartChart",
StartChat = "StartChat",
ViewChart = "ViewChart",

@@ -5,0 +5,0 @@ ViewContact = "ViewContact",

{
"name": "@finos/fdc3",
"version": "1.1.0",
"version": "1.1.1",
"author": "Fintech Open Source Foundation (FINOS)",

@@ -10,2 +10,5 @@ "homepage": "https://fdc3.finos.org",

},
"publishConfig": {
"tag": "latest"
},
"license": "Apache-2.0",

@@ -12,0 +15,0 @@ "main": "dist/index.js",

export enum Intents {
StartCall = 'StartCall',
StartChart = 'StartChart',
StartChat = 'StartChat',
ViewChart = 'ViewChart',

@@ -5,0 +5,0 @@ ViewContact = 'ViewContact',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc