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

@equinor/fusion-framework-module-app

Package Overview
Dependencies
Maintainers
3
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-framework-module-app - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

dist/esm/AppConfigBuilder.js

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## 2.3.0 (2022-12-12)
### Features
- **module-app:** add config builder ([0fe107c](https://github.com/equinor/fusion-framework/commit/0fe107c87a129c6e63044e6298914cdfc4e0d626))
## [2.2.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-app@2.1.6...@equinor/fusion-framework-module-app@2.2.0) (2022-12-12)

@@ -8,0 +14,0 @@

6

dist/esm/AppModuleProvider.js

@@ -37,5 +37,5 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

__classPrivateFieldSet(this, _AppModuleProvider_current$, new BehaviorSubject(undefined), "f");
this.appClient = new Query(config.getAppManifest);
__classPrivateFieldSet(this, _AppModuleProvider_appsClient, new Query(config.getAppManifests), "f");
__classPrivateFieldSet(this, _AppModuleProvider_configClient, new Query(config.getAppConfig), "f");
this.appClient = new Query(config.client.getAppManifest);
__classPrivateFieldSet(this, _AppModuleProvider_appsClient, new Query(config.client.getAppManifests), "f");
__classPrivateFieldSet(this, _AppModuleProvider_configClient, new Query(config.client.getAppConfig), "f");
__classPrivateFieldGet(this, _AppModuleProvider_subscription, "f").add(() => this.appClient.complete());

@@ -42,0 +42,0 @@ __classPrivateFieldGet(this, _AppModuleProvider_subscription, "f").add(() => __classPrivateFieldGet(this, _AppModuleProvider_appsClient, "f").complete());

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

export { AppConfigurator, } from './configurator';
export { AppConfigurator, } from './AppConfigurator';
export { AppModuleProvider } from './AppModuleProvider';

@@ -3,0 +3,0 @@ export { App } from './app/App';

@@ -10,3 +10,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
import { AppConfigurator } from './configurator';
import { AppConfigurator } from './AppConfigurator';
import { AppModuleProvider } from './AppModuleProvider';

@@ -13,0 +13,0 @@ export const moduleKey = 'app';

@@ -7,3 +7,3 @@ import { Observable } from 'rxjs';

import { App } from './app/App';
import { AppModuleConfig } from './configurator';
import { AppModuleConfig } from './AppConfigurator';
export declare class AppModuleProvider {

@@ -10,0 +10,0 @@ #private;

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

export { AppConfigurator, IAppConfigurator, AppModuleConfig as IAppModuleConfig, } from './configurator';
export { AppModuleConfig, AppConfigurator, IAppConfigurator, AppModuleConfig as IAppModuleConfig, } from './AppConfigurator';
export { AppModuleProvider } from './AppModuleProvider';

@@ -3,0 +3,0 @@ export { App } from './app/App';

import { IModulesConfigurator, Module } from '@equinor/fusion-framework-module';
import { ModuleDeps } from './types';
import { IAppConfigurator } from './configurator';
import { IAppConfigurator } from './AppConfigurator';
import { AppModuleProvider } from './AppModuleProvider';
export declare const moduleKey = "app";
export type AppModule = Module<typeof moduleKey, AppModuleProvider, IAppConfigurator<ModuleDeps>, ModuleDeps>;
export type AppModule = Module<typeof moduleKey, AppModuleProvider, IAppConfigurator, ModuleDeps>;
export declare const module: AppModule;

@@ -8,0 +8,0 @@ export declare const enableAppModule: (configurator: IModulesConfigurator) => void;

{
"name": "@equinor/fusion-framework-module-app",
"version": "2.2.0",
"version": "2.3.0",
"description": "",

@@ -44,3 +44,3 @@ "main": "dist/esm/index.js",

},
"gitHead": "acfc1533fae1e5a95f8463cc2d6e3a2ad94c252e"
"gitHead": "4bc7a862d19921fc8801e5238d7013b8ece12917"
}

@@ -21,3 +21,3 @@ import {

import { App, filterEmpty } from './app/App';
import { AppModuleConfig } from './configurator';
import { AppModuleConfig } from './AppConfigurator';
import { HttpResponseError } from '@equinor/fusion-framework-module-http';

@@ -61,5 +61,5 @@ import { AppConfigError, AppManifestError } from './errors';

this.appClient = new Query(config.getAppManifest);
this.#appsClient = new Query(config.getAppManifests);
this.#configClient = new Query(config.getAppConfig);
this.appClient = new Query(config.client.getAppManifest);
this.#appsClient = new Query(config.client.getAppManifests);
this.#configClient = new Query(config.client.getAppConfig);

@@ -66,0 +66,0 @@ this.#subscription.add(() => this.appClient.complete());

export {
AppModuleConfig,
AppConfigurator,
IAppConfigurator,
AppModuleConfig as IAppModuleConfig,
} from './configurator';
} from './AppConfigurator';
export { AppModuleProvider } from './AppModuleProvider';

@@ -7,0 +8,0 @@

import { IModulesConfigurator, Module } from '@equinor/fusion-framework-module';
import { ModuleDeps } from './types';
import { IAppConfigurator, AppConfigurator } from './configurator';
import { IAppConfigurator, AppConfigurator } from './AppConfigurator';
import { AppModuleProvider } from './AppModuleProvider';

@@ -9,8 +9,3 @@

export type AppModule = Module<
typeof moduleKey,
AppModuleProvider,
IAppConfigurator<ModuleDeps>,
ModuleDeps
>;
export type AppModule = Module<typeof moduleKey, AppModuleProvider, IAppConfigurator, ModuleDeps>;

@@ -21,3 +16,3 @@ export const module: AppModule = {

initialize: async (args) => {
const config = await args.config.createConfig(args);
const config = await (args.config as AppConfigurator).createConfig(args);
const event = await args.requireInstance('event').catch(() => undefined);

@@ -24,0 +19,0 @@ return new AppModuleProvider({ config, event });

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

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