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

@equinor/fusion-framework-module

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.1.0 to 0.1.1

8

CHANGELOG.md

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

## 0.1.1 (2022-02-09)
**Note:** Version bump only for package @equinor/fusion-framework-module
# 0.1.0 (2022-02-07)

@@ -8,0 +16,0 @@

2

dist/types/initialize-modules.d.ts
import type { AnyModule, ModulesConfigurator, ModulesInstanceType } from './types';
export declare const initializeModules: <TModules extends AnyModule[], TInstance extends unknown = any>(configure: ModulesConfigurator<TModules, TInstance>, modules: TModules, ref?: TInstance | undefined) => Promise<ModulesInstanceType<TModules>>;
export declare const initializeModules: <TModules extends AnyModule[], TInstance = any>(configure: ModulesConfigurator<TModules, TInstance>, modules: TModules, ref?: TInstance | undefined) => Promise<ModulesInstanceType<TModules>>;
export default initializeModules;

@@ -18,3 +18,3 @@ export interface Module<TKey extends string, TType, TConfig, TDeps extends Array<AnyModule> = []> {

} : never;
export interface ModulesConfigurator<TModules extends Array<AnyModule>, TRef extends any = ModuleInstance> {
export interface ModulesConfigurator<TModules extends Array<AnyModule>, TRef = ModuleInstance> {
(config: ModulesConfig<ModulesType<TModules>>, ref?: TRef): void | Promise<void>;

@@ -21,0 +21,0 @@ }

{
"name": "@equinor/fusion-framework-module",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

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

},
"gitHead": "bbd0502b7d5277534489dab284c3586c67b746a2"
"gitHead": "ca79b01fcc32c2c4e4aeea2f7c251fe9d91a2d04"
}

@@ -17,6 +17,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

*/
export const initializeModules = async <
TModules extends Array<AnyModule>,
TInstance extends any = any
>(
export const initializeModules = async <TModules extends Array<AnyModule>, TInstance = any>(
configure: ModulesConfigurator<TModules, TInstance>,

@@ -23,0 +20,0 @@ modules: TModules,

@@ -36,6 +36,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

export interface ModulesConfigurator<
TModules extends Array<AnyModule>,
TRef extends any = ModuleInstance
> {
export interface ModulesConfigurator<TModules extends Array<AnyModule>, TRef = ModuleInstance> {
(config: ModulesConfig<ModulesType<TModules>>, ref?: TRef): void | Promise<void>;

@@ -42,0 +39,0 @@ }

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