@r35007/mock-server
Advanced tools
Changelog
v10.2.0
mock-server --help
in terminal for helpconfig.rootPath
to config.root
.config.staticDir
to config.static
.ignoreMiddlewareWrappers
to directUse
.config.quiet
to suppress console logs. The error logs will still show.Changelog
v10.1.0
--quite
to prevent from printing messages through the console.--sample
.Changelog
v10.0.0
reduced - Build size.
removed - createSampleFiles
from utils.
renamed - config.root
to config.rootPath
.
added - bootstrap
package for HomePage ui.
renamed - /_reset/db/:id?
to /_reset/:id?
.
added - /_routes
in HomePage - Gives list of routes used by Mock Server.
updated - Following type in utility methods
requireFile(
directoryPath: string,
{ exclude, recursive, isList, onlyIndex }?: { exclude?: string[]; recursive?: boolean; isList?: boolean; onlyIndex?: boolean; }
);
getFilesList(
directoryPath: string,
{ exclude, recursive, onlyIndex }?: { exclude?: string[]; recursive?: boolean; onlyIndex?: boolean;}
):PathDetails[];
requireData(
data?: any,
{ rootPath, isList, onlyIndex, recursive, exclude, }?: { exclude?: string[]; rootPath?: string; isList?: boolean; onlyIndex?: boolean; recursive?: boolean;}
);
Changelog
v9.2.0
log
in options - If true it logs the details.mockServer
in options from launchServer
, resources
and all Setters.Fixed
prefixed
method in utils. Helps to add route prefix for all the all the routes in the given Db.