Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@integration-app/sdk

Package Overview
Dependencies
Maintainers
4
Versions
444
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@integration-app/sdk - npm Package Compare versions

Comparing version 0.16.40 to 0.16.41

1

connections/index.d.ts

@@ -13,2 +13,3 @@ import { User } from '../users';

isDefunct?: boolean;
error?: string;
integrationId: string;

@@ -15,0 +16,0 @@ integration?: Integration;

2

data-schema/index.js

@@ -259,3 +259,3 @@ "use strict";

const fieldSchema = (0, locators_1.getSchemaByLocator)(schema, field);
if (!(fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.title)) {
if (fieldSchema && !fieldSchema.title) {
fieldSchema.title = (0, locators_1.getNameForLocator)(schema, field);

@@ -262,0 +262,0 @@ (0, locators_1.setSchemaAtLocator)(schema, field, fieldSchema);

@@ -8,7 +8,7 @@ export declare const POPUP_ELEMENT_ID = "__integration-app-popup";

}
export interface OpenIframeOptions extends OpenConfigurationOptions {
export declare type OpenIframeOptions = OpenConfigurationOptions & {
[key: string]: (...args: any[]) => void;
}
};
export declare function showIframeLoader(): void;
export declare function openIframe(uri: string, callbacks?: OpenIframeOptions): Promise<void>;
export declare function init(): void;
{
"name": "@integration-app/sdk",
"version": "0.16.40",
"version": "0.16.41",
"description": "JavaScript SDK for Integration.app",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -27,2 +27,7 @@ import { User } from '../users'

/**
* Error message for defunct connection
*/
error?: string
/**
* Id of an integration the connection is created with

@@ -29,0 +34,0 @@ */

@@ -397,3 +397,4 @@ import {

const fieldSchema = getSchemaByLocator(schema, field)
if (!fieldSchema?.title) {
if (fieldSchema && !fieldSchema.title) {
fieldSchema.title = getNameForLocator(schema, field)

@@ -400,0 +401,0 @@ setSchemaAtLocator(schema, field, fieldSchema)

@@ -23,3 +23,3 @@ import { connectToChild } from 'penpal'

export interface OpenIframeOptions extends OpenConfigurationOptions {
export type OpenIframeOptions = OpenConfigurationOptions & {
[key: string]: (...args: any[]) => void

@@ -26,0 +26,0 @@ }

@@ -69,3 +69,3 @@ import { ConnectionDataSpec } from '../connections'

if (!udm) {
return spec.root
return spec.rootLocation ?? spec.root
}

@@ -79,3 +79,6 @@

if (spec[udm]) {
if (spec?.udm?.[udm]) {
return spec.udm[udm].rootLocation
} else if (spec[udm]) {
// Backward compat
return spec[udm]

@@ -85,3 +88,6 @@ }

for (const fallback of udmSpec.udmFallbacks ?? []) {
if (spec[fallback.udm]) {
if (spec?.udm?.[fallback.udm]) {
return spec.udm[fallback.udm].rootLocation
} else if (spec[fallback.udm]) {
// Backward compat
return spec[fallback.udm]

@@ -91,3 +97,3 @@ }

return spec.root
return spec.rootLocation ?? spec.root
}

@@ -94,0 +100,0 @@

@@ -31,2 +31,4 @@ import { User } from '../users'

updatedAt: Date
isOnboardingComplete?: boolean
}

@@ -33,0 +35,0 @@

@@ -51,3 +51,3 @@ "use strict";

function findUdmRootLocation(spec, udm) {
var _a;
var _a, _b, _c, _d, _e;
if (!spec) {

@@ -57,3 +57,3 @@ return undefined;

if (!udm) {
return spec.root;
return (_a = spec.rootLocation) !== null && _a !== void 0 ? _a : spec.root;
}

@@ -64,11 +64,17 @@ const udmSpec = exports.UNIFIED_DATA_MODELS[udm];

}
if (spec[udm]) {
if ((_b = spec === null || spec === void 0 ? void 0 : spec.udm) === null || _b === void 0 ? void 0 : _b[udm]) {
return spec.udm[udm].rootLocation;
}
else if (spec[udm]) {
return spec[udm];
}
for (const fallback of (_a = udmSpec.udmFallbacks) !== null && _a !== void 0 ? _a : []) {
if (spec[fallback.udm]) {
for (const fallback of (_c = udmSpec.udmFallbacks) !== null && _c !== void 0 ? _c : []) {
if ((_d = spec === null || spec === void 0 ? void 0 : spec.udm) === null || _d === void 0 ? void 0 : _d[fallback.udm]) {
return spec.udm[fallback.udm].rootLocation;
}
else if (spec[fallback.udm]) {
return spec[fallback.udm];
}
}
return spec.root;
return (_e = spec.rootLocation) !== null && _e !== void 0 ? _e : spec.root;
}

@@ -75,0 +81,0 @@ exports.findUdmRootLocation = findUdmRootLocation;

@@ -19,2 +19,3 @@ import { User } from '../users';

updatedAt: Date;
isOnboardingComplete?: boolean;
}

@@ -21,0 +22,0 @@ export interface WorkspaceUser {

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