Socket
Socket
Sign inDemoInstall

@r35007/mock-server

Package Overview
Dependencies
226
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
78910

2.0.3

Diff

Changelog

Source

v2.0.3,v2.0.4,v2.0.5

  • Bug fix.
r35007
published 2.0.2 •

Changelog

Source

v2.0.1,v2.0.2

  • Readme Update.
r35007
published 2.0.1 •

Changelog

Source

v2.0.1,v2.0.2

  • Readme Update.
r35007
published 2.0.0 •

Changelog

Source

v2.0.0

Welcome to v2.0. There are many major changes and bug fix has been done. Please follow the list below

  • renamed
    • config.proxy to config.pathRewrite
    • middleware params is reset to express middleware params. ex : log = (req, res, next) => {next()};
  • removed
    • initialMock, alternateMock are removed and introduced fetch
    • globals, data, locals params are removed in middleware method.
  • added
    • fetch in routeConfig. Helps to fetch data from Url.
    • mockFirst in routeConfig. If true, it send you the mock data first. If mock not available then try to fetch the data from fetch url. By default its false.
    • res.locals.store.get(key?) and res.locals.store.store(key, value) - Helps to store the and share the values between routes inside a middleware.
    • transformHar method now accepts config of { routesToLoop?: string[], routesToGroup?: string[] } as a second param. It helps to set loop and group mock as per the routes provided.
r35007
published 1.0.3 •

Changelog

Source

v1.0.3

  • bug fix
r35007
published 1.0.2 •

Changelog

Source

v1.0.2

  • added statusCode to entryCallBack in transformHar
r35007
published 1.0.1 •

Changelog

Source

v1.0.1

  • transformHar Bug fix.
  • added finalCallBack to transformHar(harData, entryCallBack, finalCallBack)
r35007
published 1.0.0 •

Changelog

Source

v1.0.0

  • initial release
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc