@module-federation/error-codes
Advanced tools
Comparing version 0.8.6 to 0.8.7
@@ -10,3 +10,5 @@ 'use strict'; | ||
const RUNTIME_007 = 'RUNTIME-007'; | ||
const RUNTIME_008 = 'RUNTIME-008'; | ||
const TYPE_001 = 'TYPE-001'; | ||
const BUILD_001 = 'BUILD-001'; | ||
@@ -47,3 +49,4 @@ const getDocsUrl = (errorCode)=>{ | ||
[RUNTIME_006]: 'Invalid loadShareSync function call from runtime', | ||
[RUNTIME_007]: 'Failed to get remote snapshot.' | ||
[RUNTIME_007]: 'Failed to get remote snapshot.', | ||
[RUNTIME_008]: 'Failed to load script resources.' | ||
}; | ||
@@ -53,4 +56,8 @@ const typeDescMap = { | ||
}; | ||
const errorDescMap = _extends({}, runtimeDescMap, typeDescMap); | ||
const buildDescMap = { | ||
[BUILD_001]: 'Failed to find expose module.' | ||
}; | ||
const errorDescMap = _extends({}, runtimeDescMap, typeDescMap, buildDescMap); | ||
exports.BUILD_001 = BUILD_001; | ||
exports.RUNTIME_001 = RUNTIME_001; | ||
@@ -63,3 +70,5 @@ exports.RUNTIME_002 = RUNTIME_002; | ||
exports.RUNTIME_007 = RUNTIME_007; | ||
exports.RUNTIME_008 = RUNTIME_008; | ||
exports.TYPE_001 = TYPE_001; | ||
exports.buildDescMap = buildDescMap; | ||
exports.errorDescMap = errorDescMap; | ||
@@ -66,0 +75,0 @@ exports.getShortErrorMsg = getShortErrorMsg; |
@@ -9,2 +9,3 @@ export declare const runtimeDescMap: { | ||
"RUNTIME-007": string; | ||
"RUNTIME-008": string; | ||
}; | ||
@@ -14,3 +15,7 @@ export declare const typeDescMap: { | ||
}; | ||
export declare const buildDescMap: { | ||
"BUILD-001": string; | ||
}; | ||
export declare const errorDescMap: { | ||
"BUILD-001": string; | ||
"TYPE-001": string; | ||
@@ -24,2 +29,3 @@ "RUNTIME-001": string; | ||
"RUNTIME-007": string; | ||
"RUNTIME-008": string; | ||
}; |
@@ -8,2 +8,4 @@ export declare const RUNTIME_001 = "RUNTIME-001"; | ||
export declare const RUNTIME_007 = "RUNTIME-007"; | ||
export declare const RUNTIME_008 = "RUNTIME-008"; | ||
export declare const TYPE_001 = "TYPE-001"; | ||
export declare const BUILD_001 = "BUILD-001"; |
export * from './error-codes'; | ||
export { getShortErrorMsg } from './getShortErrorMsg'; | ||
export { runtimeDescMap, typeDescMap, errorDescMap } from './desc'; | ||
export { runtimeDescMap, typeDescMap, errorDescMap, buildDescMap, } from './desc'; |
@@ -7,3 +7,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
8367
165