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

@feature-hub/core

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feature-hub/core - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0-alpha.0

8

lib/cjs/feature-app-manager.d.ts

@@ -26,2 +26,6 @@ import { AsyncValue } from './async-value';

readonly idSpecifier: string | undefined;
/**
* The absolute or relative base URL of the Feature App's assets and/or BFF.
*/
readonly baseUrl: string | undefined;
}

@@ -42,2 +46,6 @@ export interface FeatureAppDefinition<TFeatureApp, TConfig = unknown, TInstanceConfig = unknown, TFeatureServices extends FeatureServices = FeatureServices> extends FeatureServiceConsumerDefinition {

/**
* The absolute or relative base URL of the Feature App's assets and/or BFF.
*/
readonly baseUrl?: string;
/**
* A specifier to distinguish the Feature App instances from others created

@@ -44,0 +52,0 @@ * from the same definition.

9

lib/cjs/feature-app-manager.js

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

getFeatureAppScope(featureAppDefinition, options = {}) {
const { idSpecifier, instanceConfig } = options;
const { baseUrl, idSpecifier, instanceConfig } = options;
const { id: featureAppId } = featureAppDefinition;

@@ -71,4 +71,3 @@ const featureAppUid = create_uid_1.createUid(featureAppId, idSpecifier);

this.registerOwnFeatureServices(featureAppDefinition);
const deleteFeatureAppScope = () => this.featureAppScopes.delete(featureAppUid);
featureAppScope = this.createFeatureAppScope(featureAppDefinition, idSpecifier, instanceConfig, deleteFeatureAppScope);
featureAppScope = this.createFeatureAppScope(featureAppDefinition, () => this.featureAppScopes.delete(featureAppUid), { baseUrl, idSpecifier, instanceConfig });
this.featureAppScopes.set(featureAppUid, featureAppScope);

@@ -113,4 +112,5 @@ }

}
createFeatureAppScope(featureAppDefinition, idSpecifier, instanceConfig, deleteFeatureAppScope) {
createFeatureAppScope(featureAppDefinition, deleteFeatureAppScope, options) {
this.validateExternals(featureAppDefinition);
const { baseUrl, idSpecifier, instanceConfig } = options;
const { configs } = this.options;

@@ -121,2 +121,3 @@ const config = configs && configs[featureAppDefinition.id];

const featureApp = featureAppDefinition.create({
baseUrl,
config,

@@ -123,0 +124,0 @@ instanceConfig,

{
"name": "@feature-hub/core",
"version": "1.4.0",
"version": "1.5.0-alpha.0",
"description": "Create scalable web applications using micro frontends.",

@@ -42,3 +42,3 @@ "keywords": [

},
"gitHead": "22322272fb6a02f87f526ff42c9bd31799e5d120"
"gitHead": "eda06e05efa2a73459f3007eecc2f3f83c365e62"
}

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