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

vanilla-native-federation

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilla-native-federation - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

esm2022/lib/native-federation.error.mjs

4

lib/cache/cache.contract.d.ts

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

import type { RemoteInfo } from "../remote-info/remote-info.contract";
import type { TRemoteInfo } from "../remote-entry/remote-info.contract";
declare const NAMESPACE = "__NATIVE_FEDERATION__";

@@ -21,3 +21,3 @@ /**

externals: Record<string, string>;
remoteNamesToRemote: Record<string, RemoteInfo>;
remoteNamesToRemote: Record<string, TRemoteInfo>;
baseUrlToRemoteNames: Record<string, string>;

@@ -24,0 +24,0 @@ };

import type { CacheEntryCreator, CacheEntryValue, CacheOf } from "./cache.contract";
interface TCacheHandler<TCache extends CacheOf<Record<keyof TCache, any>>> {
type TCacheHandler<TCache extends CacheOf<Record<keyof TCache, any>>> = {
fetch: <K extends keyof TCache>(key: K) => CacheEntryValue<TCache[K]>;

@@ -7,5 +7,5 @@ entry: <K extends keyof TCache>(key: K) => TCache[K];

mutate: <K extends keyof TCache>(key: K, mutateFn: (v: CacheEntryValue<TCache[K]>) => CacheEntryValue<TCache[K]>) => TCacheHandler<TCache>;
}
};
declare function cacheHandlerFactory<TCache extends CacheOf<Record<keyof TCache, any>>>(_cache: TCache): TCacheHandler<TCache>;
declare const toCache: <Tprops extends Record<string, any>>(props: Tprops, cacheEntryCreator: CacheEntryCreator) => CacheOf<Tprops>;
export { toCache, cacheHandlerFactory, TCacheHandler };
import { createEmptyImportMap } from "./create-empty-import-map";
import type { ImportMap } from "./import-map.contract";
import type { TDependencyHandler } from "../dependency/dependency.handler";
import type { RemoteInfo } from "../remote-info/remote-info.contract";
import type { TRemoteInfo } from "../remote-entry/remote-info.contract";
import type { TSharedInfoHandler } from "../remote-entry/shared-info.handler";
type TImportMapHandler = {
toImportMap: (remoteInfo: RemoteInfo, remoteName?: string) => ImportMap;
toImportMap: (remoteInfo: TRemoteInfo, remoteName?: string) => ImportMap;
};
declare const importMapHandlerFactory: (dependencyHandler: TDependencyHandler) => {
toImportMap: (remoteInfo: RemoteInfo, remoteName?: string) => ImportMap;
};
declare const importMapHandlerFactory: (sharedInfoHandler: TSharedInfoHandler) => TImportMapHandler;
export { createEmptyImportMap, importMapHandlerFactory, TImportMapHandler };

@@ -5,3 +5,3 @@ import type { NativeFederationCache } from './cache/cache.contract';

import { type TLoadRemoteModule } from './load-remote-module';
import type { TRemoteInfoHandler } from './remote-info/remote-info.handler';
import type { TRemoteInfoHandler } from './remote-entry/remote-info.handler';
type TInitFederation = (remotesOrManifestUrl: string | Record<string, string>) => Promise<{

@@ -8,0 +8,0 @@ load: TLoadRemoteModule;

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

import type { TRemoteInfoHandler } from "./remote-info/remote-info.handler";
import type { TRemoteInfoHandler } from "./remote-entry/remote-info.handler";
type RemoteModule = {

@@ -3,0 +3,0 @@ remoteName?: string;

import type { NativeFederationCache } from "./cache/cache.contract";
import { type TCacheHandler } from "./cache/cache.handler";
declare const resolveNativeFedationHandlers: (cacheHandler: TCacheHandler<NativeFederationCache>) => {
dependencyHandler: import("./dependency/dependency.handler").TDependencyHandler;
remoteInfoHandler: import("./remote-info/remote-info.handler").TRemoteInfoHandler;
importMapHandler: {
toImportMap: (remoteInfo: import("./remote-info/remote-info.contract").RemoteInfo, remoteName?: string) => import("./import-map/import-map.contract").ImportMap;
};
sharedInfoHandler: import("./remote-entry/shared-info.handler").TSharedInfoHandler;
remoteInfoHandler: import("./remote-entry/remote-info.handler").TRemoteInfoHandler;
importMapHandler: import("./import-map/import-map.handler").TImportMapHandler;
};
declare const resolver: (cache: NativeFederationCache) => {
dependencyHandler: import("./dependency/dependency.handler").TDependencyHandler;
remoteInfoHandler: import("./remote-info/remote-info.handler").TRemoteInfoHandler;
importMapHandler: {
toImportMap: (remoteInfo: import("./remote-info/remote-info.contract").RemoteInfo, remoteName?: string) => import("./import-map/import-map.contract").ImportMap;
};
sharedInfoHandler: import("./remote-entry/shared-info.handler").TSharedInfoHandler;
remoteInfoHandler: import("./remote-entry/remote-info.handler").TRemoteInfoHandler;
importMapHandler: import("./import-map/import-map.handler").TImportMapHandler;
cacheHandler: TCacheHandler<import("./cache/cache.contract").CacheOf<import("./cache/cache.contract").NativeFederationProps>>;
};
export { resolver, resolveNativeFedationHandlers };
{
"version": "0.2.0",
"version": "0.2.1",
"name": "vanilla-native-federation",

@@ -8,2 +8,6 @@ "author": "aukevanoost",

],
"repository": {
"type": "git",
"url": "https://github.com/Aukevanoost/vanilla-native-federation.git"
},
"sideEffects": false,

@@ -10,0 +14,0 @@ "exports": {

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

import { NativeFederationError } from "../../lib/native-federation-error";
import { NativeFederationError } from "../../lib/native-federation.error";
declare class NFDiscoveryError extends NativeFederationError {

@@ -3,0 +3,0 @@ constructor(message: string);

import type { DiscoveryCache } from "./discovery.contract";
import type { NativeFederationCache } from "../../lib/cache/cache.contract";
declare const resolver: (cache: DiscoveryCache & NativeFederationCache) => {
dependencyHandler: import("../../lib/dependency/dependency.handler").TDependencyHandler;
remoteInfoHandler: import("../../lib/remote-info/remote-info.handler").TRemoteInfoHandler;
importMapHandler: {
toImportMap: (remoteInfo: import("../../lib/remote-info/remote-info.contract").RemoteInfo, remoteName?: string) => import("../../lib/import-map/import-map.contract").ImportMap;
};
sharedInfoHandler: import("../../lib/remote-entry/shared-info.handler").TSharedInfoHandler;
remoteInfoHandler: import("../../lib/remote-entry/remote-info.handler").TRemoteInfoHandler;
importMapHandler: import("../../lib/import-map/import-map.handler").TImportMapHandler;
cacheHandler: import("../../lib/cache/cache.handler").TCacheHandler<import("../../lib/cache/cache.contract").CacheOf<import("./discovery.contract").DiscoveryProps> & import("../../lib/cache/cache.contract").CacheOf<import("../../lib/cache/cache.contract").NativeFederationProps>>;

@@ -10,0 +8,0 @@ discoveryHandler: import("./discovery.handler").TDiscoveryHandler;

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

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

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