UNPKG

@puppedo/atoms-mock-server

Version:
56 lines (51 loc) 1.82 kB
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ 62: /***/ ((module) => { module.exports = async function atomRun() { const axios = require('axios'); const port = this.options.port || process.env.PPD_MOCK_SERVER_PORT || '9009'; await axios.delete(`http://localhost:${port}/ppd-mock-server-stop`); await this.log({ text: `Stop Mock Server on port: ${port}`, level: 'info' }); }; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__(62); /******/ module.exports = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=mockServerStop.js.map