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

@softarc/native-federation

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@softarc/native-federation - npm Package Compare versions

Comparing version 1.0.0-beta.2 to 1.0.0-beta.3

4

package.json
{
"name": "@softarc/native-federation",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"type": "commonjs",

@@ -8,3 +8,3 @@ "dependencies": {

"npmlog": "^6.0.2",
"@softarc/native-federation-runtime": "1.0.0-beta.2"
"@softarc/native-federation-runtime": "1.0.0-beta.3"
},

@@ -11,0 +11,0 @@ "main": "./src/index.js",

@@ -12,13 +12,13 @@ "use strict";

skipExposed: false,
skipMappings: false
skipMappings: false,
};
function buildForFederation(config, fedOptions, externals, buildParams = exports.defaultBuildParams) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const exposedInfo = buildParams.skipExposed ?
(0, bundle_exposed_1.describeExposed)(config, fedOptions) :
yield (0, bundle_exposed_1.bundleExposed)(config, fedOptions, externals);
const exposedInfo = buildParams.skipExposed
? (0, bundle_exposed_1.describeExposed)(config, fedOptions)
: yield (0, bundle_exposed_1.bundleExposed)(config, fedOptions, externals);
const sharedPackageInfo = yield (0, bundle_shared_1.bundleShared)(config, fedOptions, externals);
const sharedMappingInfo = buildParams.skipMappings ?
(0, bundle_shared_mappings_1.describeSharedMappings)(config, fedOptions) :
yield (0, bundle_shared_mappings_1.bundleSharedMappings)(config, fedOptions, externals);
const sharedMappingInfo = buildParams.skipMappings
? (0, bundle_shared_mappings_1.describeSharedMappings)(config, fedOptions)
: yield (0, bundle_shared_mappings_1.bundleSharedMappings)(config, fedOptions, externals);
const sharedInfo = [...sharedPackageInfo, ...sharedMappingInfo];

@@ -25,0 +25,0 @@ const federationInfo = {

@@ -26,2 +26,3 @@ "use strict";

const hash = (0, hash_file_1.hashFile)(federationConfigPath);
let first = true;
for (const pi of packageInfos) {

@@ -36,2 +37,8 @@ // logger.info('Bundling shared package ' + pi.packageName);

if (!fs.existsSync(cachedFile)) {
if (first) {
logger_1.logger.notice('Preparing shared npm packages');
logger_1.logger.notice('This only needs to be done once');
logger_1.logger.notice("Skip packages you don't want to share in your federation config");
}
first = false;
logger_1.logger.info('Preparing shared package ' + pi.packageName);

@@ -38,0 +45,0 @@ try {

import { NormalizedFederationConfig } from '../config/federation-config';
import { BuildAdapter } from './build-adapter';
import { BuildParams } from './build-for-federation';
import { FederationOptions } from './federation-options';

@@ -10,3 +9,3 @@ export interface BuildHelperParams {

declare function init(params: BuildHelperParams): Promise<void>;
declare function build(buildParams?: BuildParams): Promise<void>;
declare function build(buildParams?: import("./build-for-federation").BuildParams): Promise<void>;
export declare const federationBuilder: {

@@ -13,0 +12,0 @@ init: typeof init;

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

return tslib_1.__awaiter(this, void 0, void 0, function* () {
(0, build_for_federation_1.buildForFederation)(config, fedOptions, externals, buildParams);
yield (0, build_for_federation_1.buildForFederation)(config, fedOptions, externals, buildParams);
});

@@ -25,0 +25,0 @@ }

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