New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlassian/clientside-extensions-registry

Package Overview
Dependencies
Maintainers
29
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlassian/clientside-extensions-registry - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-75882b0

4

dist/registry.d.ts

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

import { PluginAttributesProvider, PluginDescriptor } from './types';
import { PluginDescriptor, PluginAttributesProvider } from './types';
/**

@@ -22,3 +22,3 @@ * Registry of Client-side Extensions and Client Locations

getLocation(locationName: string): import("@atlassian/clientside-extensions-base").Observable<{
descriptors: PluginDescriptor[];
descriptors: PluginDescriptor<import("./types").PluginAttributes>[];
loadingState: boolean;

@@ -25,0 +25,0 @@ }>;

@@ -1,9 +0,1 @@

export interface BasePluginDescriptor {
key: string;
location: string;
weight: number;
params?: {
[key: string]: unknown;
};
}
export declare type Context<T extends object> = {

@@ -18,2 +10,11 @@ [K in keyof T]: T[K];

}
interface BasePluginDescriptor<T> {
key: string;
location: string;
weight: number;
attributes: T;
params?: {
[key: string]: unknown;
};
}
declare type AttributeUpdatePayload = PluginAttributes | ((previousAttributes: PluginAttributes) => PluginAttributes);

@@ -26,5 +27,4 @@ export declare type PluginCleanupCallback = () => void;

export declare type PluginAttributesProvider = (api: PluginAPI, context: Context<{}>) => PluginAttributes;
export interface PluginDescriptor extends BasePluginDescriptor {
export interface PluginDescriptor<T = PluginAttributes> extends BasePluginDescriptor<T> {
attributesProvider?: PluginAttributesProvider;
attributes?: PluginAttributes;
}

@@ -31,0 +31,0 @@ /**

@@ -46,4 +46,4 @@ import { onDebug } from '@atlassian/clientside-extensions-debug';

const testDescriptors: PluginDescriptor[] = [
{ key: 'test-plugin-1', location: 'test-location', weight: 10 },
{ key: 'test-plugin-2', location: 'test-location', weight: 10 },
{ key: 'test-plugin-1', location: 'test-location', weight: 10, attributes: {} },
{ key: 'test-plugin-2', location: 'test-location', weight: 10, attributes: {} },
];

@@ -195,4 +195,4 @@ let registry: ClientPluginsRegistry;

const testDescriptors: PluginDescriptor[] = [
{ key: 'test-plugin-1', location: 'test-location', weight: 10 },
{ key: 'test-plugin-2', location: 'test-location', weight: 10 },
{ key: 'test-plugin-1', location: 'test-location', weight: 10, attributes: {} },
{ key: 'test-plugin-2', location: 'test-location', weight: 10, attributes: {} },
];

@@ -199,0 +199,0 @@ let registry: ClientPluginsRegistry;

import { onDebug } from '@atlassian/clientside-extensions-debug';
// eslint-disable-next-line import/no-extraneous-dependencies
import { PluginAttributesProvider, PluginDescriptor } from './types';
import { PluginDescriptor, PluginAttributesProvider } from './types';

@@ -5,0 +5,0 @@ import LocationsSubject from './LocationSubject';

@@ -1,10 +0,1 @@

export interface BasePluginDescriptor {
key: string;
location: string;
weight: number;
params?: {
[key: string]: unknown;
};
}
export type Context<T extends object> = {

@@ -22,2 +13,12 @@ [K in keyof T]: T[K];

interface BasePluginDescriptor<T> {
key: string;
location: string;
weight: number;
attributes: T;
params?: {
[key: string]: unknown;
};
}
type AttributeUpdatePayload = PluginAttributes | ((previousAttributes: PluginAttributes) => PluginAttributes);

@@ -32,5 +33,4 @@ export type PluginCleanupCallback = () => void;

export interface PluginDescriptor extends BasePluginDescriptor {
export interface PluginDescriptor<T = PluginAttributes> extends BasePluginDescriptor<T> {
attributesProvider?: PluginAttributesProvider;
attributes?: PluginAttributes;
}

@@ -37,0 +37,0 @@

{
"name": "@atlassian/clientside-extensions-registry",
"version": "1.0.0",
"version": "1.0.1-75882b0",
"description": "Implements the browser runtime for the client-side extensions.",

@@ -59,4 +59,4 @@ "license": "BSD-3-Clause",

"dependencies": {
"@atlassian/clientside-extensions-base": "^1.0.0",
"@atlassian/clientside-extensions-debug": "^1.0.0"
"@atlassian/clientside-extensions-base": "^1.0.1-75882b0",
"@atlassian/clientside-extensions-debug": "^1.0.1-75882b0"
},

@@ -69,3 +69,3 @@ "devDependencies": {

},
"gitHead": "f692b5c1afaf9fa9fc6925c80f1ce25c0a713514"
"gitHead": "75882b064de63037aa248dc7a64a2c5d893499ba"
}

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