@module-federation/managers
Advanced tools
Comparing version
@@ -105,7 +105,7 @@ 'use strict'; | ||
} | ||
function getBuildVersion() { | ||
function getBuildVersion(root) { | ||
if (process.env['MF_BUILD_VERSION']) { | ||
return process.env['MF_BUILD_VERSION']; | ||
} | ||
const pkg = new PKGJsonManager().readPKGJson(); | ||
const pkg = new PKGJsonManager().readPKGJson(root); | ||
if ((pkg == null ? void 0 : pkg['version']) && typeof pkg['version'] === 'string') { | ||
@@ -121,6 +121,6 @@ return pkg['version']; | ||
var utils = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
getBuildName: getBuildName, | ||
getBuildVersion: getBuildVersion, | ||
parseOptions: parseOptions | ||
__proto__: null, | ||
getBuildName: getBuildName, | ||
getBuildVersion: getBuildVersion, | ||
parseOptions: parseOptions | ||
}); | ||
@@ -374,4 +374,5 @@ | ||
} | ||
constructor(...args){ | ||
super(...args), this.normalizedOptions = {}; | ||
constructor(){ | ||
super(...arguments); | ||
this.normalizedOptions = {}; | ||
} | ||
@@ -475,4 +476,5 @@ }; | ||
} | ||
constructor(...args){ | ||
super(...args), this.normalizedOptions = {}; | ||
constructor(){ | ||
super(...arguments); | ||
this.normalizedOptions = {}; | ||
} | ||
@@ -482,3 +484,3 @@ }; | ||
var types = /*#__PURE__*/Object.freeze({ | ||
__proto__: null | ||
__proto__: null | ||
}); | ||
@@ -485,0 +487,0 @@ |
@@ -103,7 +103,7 @@ import path from 'path'; | ||
} | ||
function getBuildVersion() { | ||
function getBuildVersion(root) { | ||
if (process.env['MF_BUILD_VERSION']) { | ||
return process.env['MF_BUILD_VERSION']; | ||
} | ||
const pkg = new PKGJsonManager().readPKGJson(); | ||
const pkg = new PKGJsonManager().readPKGJson(root); | ||
if ((pkg == null ? void 0 : pkg['version']) && typeof pkg['version'] === 'string') { | ||
@@ -119,6 +119,6 @@ return pkg['version']; | ||
var utils = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
getBuildName: getBuildName, | ||
getBuildVersion: getBuildVersion, | ||
parseOptions: parseOptions | ||
__proto__: null, | ||
getBuildName: getBuildName, | ||
getBuildVersion: getBuildVersion, | ||
parseOptions: parseOptions | ||
}); | ||
@@ -372,4 +372,5 @@ | ||
} | ||
constructor(...args){ | ||
super(...args), this.normalizedOptions = {}; | ||
constructor(){ | ||
super(...arguments); | ||
this.normalizedOptions = {}; | ||
} | ||
@@ -473,4 +474,5 @@ }; | ||
} | ||
constructor(...args){ | ||
super(...args), this.normalizedOptions = {}; | ||
constructor(){ | ||
super(...arguments); | ||
this.normalizedOptions = {}; | ||
} | ||
@@ -480,5 +482,5 @@ }; | ||
var types = /*#__PURE__*/Object.freeze({ | ||
__proto__: null | ||
__proto__: null | ||
}); | ||
export { BasicPluginOptionsManager, ContainerManager, PKGJsonManager, RemoteManager, SharedManager, types, utils }; |
import { ContainerOptionsFormat, NormalizeSimple, NormalizeOptions, ParsedContainerOptions } from './types'; | ||
export declare function parseOptions<T, R>(options: ContainerOptionsFormat<T>, normalizeSimple: NormalizeSimple<R>, normalizeOptions: NormalizeOptions<T, R>): ParsedContainerOptions<R>; | ||
export declare function getBuildVersion(): string; | ||
export declare function getBuildVersion(root?: string): string; | ||
export declare function getBuildName(): string | undefined; |
{ | ||
"name": "@module-federation/managers", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"license": "MIT", | ||
@@ -25,7 +25,7 @@ "description": "Provide managers for helping handle mf data .", | ||
"module": "./dist/index.esm.js", | ||
"types": "./dist/index.cjs.d.ts", | ||
"types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"find-pkg": "2.0.0", | ||
"fs-extra": "9.1.0", | ||
"@module-federation/sdk": "0.17.0" | ||
"@module-federation/sdk": "0.17.1" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
".": { | ||
"types": "./dist/index.cjs.d.ts", | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.esm.js", | ||
@@ -46,3 +46,3 @@ "require": "./dist/index.cjs.js" | ||
".": [ | ||
"./dist/index.cjs.d.ts" | ||
"./dist/index.d.ts" | ||
] | ||
@@ -49,0 +49,0 @@ } |
42229
0.08%1049
0.29%5
25%16
-5.88%+ Added
- Removed