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

hadron-app-registry

Package Overview
Dependencies
Maintainers
28
Versions
524
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hadron-app-registry - npm Package Compare versions

Comparing version 8.7.0 to 8.8.0

dist/actions.d.ts.map

1

dist/actions.d.ts

@@ -16,1 +16,2 @@ export declare const Actions: {

};
//# sourceMappingURL=actions.d.ts.map

15

dist/app-registry.d.ts
/// <reference types="react" />
import { Store as RefluxStore } from 'reflux';
import type { Store as RefluxStore } from 'reflux';
import EventEmitter from 'eventemitter3';

@@ -7,12 +7,12 @@ import { Actions } from './actions';

name: string;
component: React.JSXElementConstructor<unknown>;
component: React.ComponentType<unknown>;
order?: number;
}
interface Store extends RefluxStore {
declare type Store = Partial<RefluxStore & {
onActivated?: (appRegistry: AppRegistry) => void;
}
}>;
export declare class AppRegistry {
_emitter: EventEmitter;
actions: Record<string, unknown>;
components: Record<string, React.JSXElementConstructor<unknown>>;
components: Record<string, React.ComponentType<unknown>>;
stores: Record<string, Store>;

@@ -29,3 +29,3 @@ roles: Record<string, Role[]>;

getAction(name: string): unknown;
getComponent(name: string): React.JSXElementConstructor<unknown> | undefined;
getComponent(name: string): React.ComponentType<unknown> | undefined;
getRole(name: string): Role[] | undefined;

@@ -35,3 +35,3 @@ getStore(name: string): Store;

registerAction(name: string, action: unknown): this;
registerComponent(name: string, component: React.JSXElementConstructor<unknown>): this;
registerComponent(name: string, component: React.ComponentType<unknown>): this;
registerRole(name: string, role: Role): this;

@@ -52,1 +52,2 @@ registerStore(name: string, store: Store): this;

export {};
//# sourceMappingURL=app-registry.d.ts.map
import { AppRegistry } from './app-registry';
export { AppRegistry };
export default AppRegistry;
//# sourceMappingURL=index.d.ts.map

@@ -10,3 +10,3 @@ {

"homepage": "https://github.com/mongodb-js/compass",
"version": "8.7.0",
"version": "8.8.0",
"repository": {

@@ -38,3 +38,3 @@ "type": "git",

"test": "mocha",
"test-cov": "nyc -x \"**/*.spec.*\" npm run test",
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
"test-watch": "npm run test -- --watch",

@@ -50,6 +50,6 @@ "test-ci": "npm run test-cov",

"devDependencies": {
"@mongodb-js/eslint-config-compass": "^0.5.0",
"@mongodb-js/mocha-config-compass": "^0.7.0",
"@mongodb-js/eslint-config-compass": "^0.6.0",
"@mongodb-js/mocha-config-compass": "^0.8.0",
"@mongodb-js/prettier-config-compass": "^0.4.0",
"@mongodb-js/tsconfig-compass": "^0.4.0",
"@mongodb-js/tsconfig-compass": "^0.5.0",
"@types/chai": "^4.2.21",

@@ -66,3 +66,3 @@ "@types/mocha": "^9.0.0",

},
"gitHead": "542e3fa07d48435b1a7acc21c96de20562b843b3"
"gitHead": "6563679c816fa44691a53b7e27fa0cb5539e0854"
}

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

import Reflux, { Store as RefluxStore } from 'reflux';
import type { Store as RefluxStore } from 'reflux';
import Reflux from 'reflux';
import EventEmitter from 'eventemitter3';

@@ -20,9 +21,11 @@ import { Actions } from './actions';

name: string;
component: React.JSXElementConstructor<unknown>;
component: React.ComponentType<unknown>;
order?: number;
}
interface Store extends RefluxStore {
onActivated?: (appRegistry: AppRegistry) => void;
}
type Store = Partial<
RefluxStore & {
onActivated?: (appRegistry: AppRegistry) => void;
}
>;

@@ -36,3 +39,3 @@ /**

actions: Record<string, unknown>;
components: Record<string, React.JSXElementConstructor<unknown>>;
components: Record<string, React.ComponentType<unknown>>;
stores: Record<string, Store>;

@@ -136,3 +139,3 @@ roles: Record<string, Role[]>;

*/
getComponent(name: string): React.JSXElementConstructor<unknown> | undefined {
getComponent(name: string): React.ComponentType<unknown> | undefined {
return this.components[name];

@@ -210,3 +213,3 @@ }

name: string,
component: React.JSXElementConstructor<unknown>
component: React.ComponentType<unknown>
): this {

@@ -213,0 +216,0 @@ const overwrite = Object.prototype.hasOwnProperty.call(

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