diff --git a/src/Shared/PostmanEnvironment.ts b/src/Shared/PostmanEnvironment.ts index c92caa9..698bf86 100644 --- a/src/Shared/PostmanEnvironment.ts +++ b/src/Shared/PostmanEnvironment.ts @@ -39,7 +39,7 @@ interface PostmanEnvironmentJSON { * */ -function isPostmanEnvironmentJSON ( +export function isPostmanEnvironmentJSON ( obj: unknown ): obj is PostmanEnvironmentJSON { return ( diff --git a/src/Shared/index.ts b/src/Shared/index.ts index 66a2f13..0f8ee7a 100644 --- a/src/Shared/index.ts +++ b/src/Shared/index.ts @@ -26,6 +26,7 @@ import MorningstarAPI from './MorningstarAPI'; import MorningstarError from './MorningstarError'; import MorningstarAccess from './MorningstarAccess'; import MorningstarRegion from './MorningstarRegion'; +import { isPostmanEnvironmentJSON } from './PostmanEnvironment'; /* * @@ -39,6 +40,8 @@ export * from './MorningstarAPI'; export * from './MorningstarError'; export * from './MorningstarAccess'; export * from './MorningstarOptions'; +export * from './MorningstarRegion'; +export { isPostmanEnvironmentJSON } from './PostmanEnvironment'; /* * @@ -52,5 +55,6 @@ export default { MorningstarAPI, MorningstarError, MorningstarAccess, - MorningstarRegion + MorningstarRegion, + isPostmanEnvironmentJSON }; diff --git a/webpack.config.ts b/webpack.config.ts index 378bd7e..c1cf947 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -92,9 +92,9 @@ const webpacks: Array = [ globalObject: 'this', library: { name: { - amd: `${amd}/morningstar-standalone`, + amd: 'morningstar-standalone', commonjs, - root: [root, 'MorningstarConnectors'] + root: 'MorningstarConnectors' }, type: 'umd', umdNamedDefine: true