Socket
Socket
Sign inDemoInstall

@outreach/extensibility-sdk

Package Overview
Dependencies
Maintainers
209
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@outreach/extensibility-sdk - npm Package Compare versions

Comparing version 0.4.94 to 0.4.96

38

dist/legacy/ManifestTranslator.js

@@ -28,3 +28,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

ManifestTranslator.getAddonManifest = function (app, ext) {
var _b;
var _a;
var manifestType = null;

@@ -74,3 +74,2 @@ switch (ext.type) {

}
var appExt = ext.type === ShellExtensionType_1.ShellExtensionType.APPLICATION;
var tabExt = ext.type === TabExtensionType_1.TabExtensionType.ACCOUNT ||

@@ -81,3 +80,3 @@ ext.type === TabExtensionType_1.TabExtensionType.PROSPECT ||

author: app.store.author,
categories: ((_b = app.store.categories) === null || _b === void 0 ? void 0 : _b.map(function (p) { return p.toString(); })) || [],
categories: ((_a = app.store.categories) === null || _a === void 0 ? void 0 : _a.map(function (p) { return p.toString(); })) || [],
configuration: app.configuration || [],

@@ -89,7 +88,11 @@ context: ext.context.map(function (c) { return c.toString(); }),

url: ext.host.url,
notificationsUrl: appExt ? ext.host.notificationsUrl || '' : '',
notificationsUrl: ext.host instanceof ShellExtensionHost_1.ShellExtensionHost
? ext.host.notificationsUrl || ''
: '',
type: manifestType,
environment: {
fullWidth: tabExt,
decoration: appExt ? ext.host.decoration : 'none',
decoration: ext.host instanceof ShellExtensionHost_1.ShellExtensionHost
? ext.host.decoration
: 'none',
},

@@ -103,3 +106,3 @@ },

medias: app.store.medias,
notUsingSdk: app.notUsingSdk,
disableTimeoutMonitoring: app.notUsingSdk || app.disableTimeoutMonitoring,
};

@@ -129,3 +132,4 @@ return manifestV1;

var app = new Application_1.Application();
app.notUsingSdk = firstExt.notUsingSdk;
app.disableTimeoutMonitoring =
firstExt.notUsingSdk || firstExt.disableTimeoutMonitoring;
app.store = new ManifestStore_1.ManifestStore();

@@ -183,6 +187,4 @@ app.store.author = new ManifestAuthor_1.ManifestAuthor();

};
var _a;
_a = ManifestTranslator;
ManifestTranslator.processTabExtensions = function (ext) {
var _b;
var _a;
var extension;

@@ -210,21 +212,21 @@ switch (ext.host.type) {

extension.description = ext.description;
extension.fullWidth = ((_b = ext.host.environment) === null || _b === void 0 ? void 0 : _b.fullWidth) || false;
extension.fullWidth = ((_a = ext.host.environment) === null || _a === void 0 ? void 0 : _a.fullWidth) || false;
extension.context = ext.context.map(function (ctx) {
var accountKey = _a.getEnumKeyByEnumValue(AccountContextKeys_1.AccountContextKeys, ctx);
var accountKey = ManifestTranslator.getEnumKeyByEnumValue(AccountContextKeys_1.AccountContextKeys, ctx);
if (accountKey) {
return AccountContextKeys_1.AccountContextKeys[accountKey];
}
var prospectKey = _a.getEnumKeyByEnumValue(ProspectContextKeys_1.ProspectContextKeys, ctx);
var prospectKey = ManifestTranslator.getEnumKeyByEnumValue(ProspectContextKeys_1.ProspectContextKeys, ctx);
if (prospectKey) {
return ProspectContextKeys_1.ProspectContextKeys[prospectKey];
}
var opportunityKey = _a.getEnumKeyByEnumValue(OpportunityContextKeys_1.OpportunityContextKeys, ctx);
var opportunityKey = ManifestTranslator.getEnumKeyByEnumValue(OpportunityContextKeys_1.OpportunityContextKeys, ctx);
if (opportunityKey) {
return OpportunityContextKeys_1.OpportunityContextKeys[opportunityKey];
}
var userKey = _a.getEnumKeyByEnumValue(UserContextKeys_1.UserContextKeys, ctx);
var userKey = ManifestTranslator.getEnumKeyByEnumValue(UserContextKeys_1.UserContextKeys, ctx);
if (userKey) {
return UserContextKeys_1.UserContextKeys[userKey];
}
var clientKey = _a.getEnumKeyByEnumValue(ClientContextKeys_1.ClientContextKeys, ctx);
var clientKey = ManifestTranslator.getEnumKeyByEnumValue(ClientContextKeys_1.ClientContextKeys, ctx);
if (clientKey) {

@@ -272,7 +274,7 @@ return ClientContextKeys_1.ClientContextKeys[clientKey];

extension.context = ext.context.map(function (ctx) {
var userKey = _a.getEnumKeyByEnumValue(UserContextKeys_1.UserContextKeys, ctx);
var userKey = ManifestTranslator.getEnumKeyByEnumValue(UserContextKeys_1.UserContextKeys, ctx);
if (userKey) {
return UserContextKeys_1.UserContextKeys[userKey];
}
var clientKey = _a.getEnumKeyByEnumValue(ClientContextKeys_1.ClientContextKeys, ctx);
var clientKey = ManifestTranslator.getEnumKeyByEnumValue(ClientContextKeys_1.ClientContextKeys, ctx);
if (clientKey) {

@@ -279,0 +281,0 @@ return ClientContextKeys_1.ClientContextKeys[clientKey];

{
"name": "@outreach/extensibility-sdk",
"license": "MIT",
"version": "0.4.94",
"version": "0.4.96",
"private": false,

@@ -6,0 +6,0 @@ "contributors": [

Sorry, the diff of this file is too big to display

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