diff --git a/.eslintrc b/.eslintrc index ae110db..afff21f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,7 +2,7 @@ "parser": "babel-eslint", "root": true, "extends": [ - "@mutantlove/eslint-config/targets/node" + "@mutant-ws/eslint-config/targets/node" ], "settings": { "import/resolver": "node", diff --git a/src/index.js b/src/index.js index 962ac4e..9e38b04 100644 --- a/src/index.js +++ b/src/index.js @@ -2,8 +2,8 @@ const debug = require("debug")("Blocks:Main") import connect from "connect" import path from "path" -import { pluginus } from "@mutantlove/pluginus" -import { is, forEach, reduce } from "@mutantlove/m" +import { pluginus } from "@mutant-ws/pluginus" +import { is, forEach, reduce } from "@mutant-ws/m" import { BaseError } from "./errors/base" import { NotFoundError } from "./errors/not-found" diff --git a/src/middleware/req-body.js b/src/middleware/req-body.js index 538e4ff..7409842 100644 --- a/src/middleware/req-body.js +++ b/src/middleware/req-body.js @@ -4,7 +4,7 @@ import cuid from "cuid" import Busboy from "busboy" import slugify from "@sindresorhus/slugify" import { tmpdir } from "os" -import { pipe, isEmpty } from "@mutantlove/m" +import { pipe, isEmpty } from "@mutant-ws/m" import { createWriteStream } from "fs" import { extname, basename, join } from "path" diff --git a/src/middleware/req-bootstrap.js b/src/middleware/req-bootstrap.js index 1c63aea..9c8814d 100644 --- a/src/middleware/req-bootstrap.js +++ b/src/middleware/req-bootstrap.js @@ -2,7 +2,7 @@ const debug = require("debug")("Blocks:BootstrapMiddleware") import cuid from "cuid" import contentType from "content-type" -import { pick } from "@mutantlove/m" +import { pick } from "@mutant-ws/m" module.exports = () => (req, res, next) => { req.ctx = { diff --git a/src/middleware/req-cors.js b/src/middleware/req-cors.js index 83541bb..2eb6fa4 100644 --- a/src/middleware/req-cors.js +++ b/src/middleware/req-cors.js @@ -1,7 +1,7 @@ const debug = require("debug")("Blocks:CORSMiddleware") import cors from "cors" -import { is, isEmpty } from "@mutantlove/m" +import { is, isEmpty } from "@mutant-ws/m" module.exports = () => { const ORIGIN = process.env.CORS_ORIGIN diff --git a/src/middleware/req-jwt.js b/src/middleware/req-jwt.js index 280cda4..3f93298 100644 --- a/src/middleware/req-jwt.js +++ b/src/middleware/req-jwt.js @@ -1,7 +1,7 @@ const debug = require("debug")("blocks:JWTDecodeMiddleware") import jwt from "jsonwebtoken" -import { is, isEmpty } from "@mutantlove/m" +import { is, isEmpty } from "@mutant-ws/m" import { InputValidationError } from "../errors/input" diff --git a/src/middleware/res-goodbye.js b/src/middleware/res-goodbye.js index a97611c..0200b6b 100644 --- a/src/middleware/res-goodbye.js +++ b/src/middleware/res-goodbye.js @@ -1,6 +1,6 @@ const debug = require("debug")("Blocks:GoodbyeMiddleware") -import { get, is } from "@mutantlove/m" +import { get, is } from "@mutant-ws/m" import accepts from "accepts" const toNowInMs = start => { diff --git a/src/middleware/res-helmet.js b/src/middleware/res-helmet.js index d003f86..b6ffcaa 100644 --- a/src/middleware/res-helmet.js +++ b/src/middleware/res-helmet.js @@ -1,7 +1,7 @@ const debug = require("debug")("Blocks:HelmetMiddleware") import helmet from "helmet" -import { get, when, same, pipe, is } from "@mutantlove/m" +import { get, when, same, pipe, is } from "@mutant-ws/m" const toBool = source => (is(source) ? source === "true" : null) diff --git a/src/plugins/query-parser.js b/src/plugins/query-parser.js index 8e3f381..ad8c499 100644 --- a/src/plugins/query-parser.js +++ b/src/plugins/query-parser.js @@ -1,7 +1,7 @@ const debug = require("debug")("Blocks:QueryParserPlugin") import qs from "qs" -import { is } from "@mutantlove/m" +import { is } from "@mutant-ws/m" export default { create: () => { diff --git a/src/plugins/router.js b/src/plugins/router.js index 06ab481..665ff02 100644 --- a/src/plugins/router.js +++ b/src/plugins/router.js @@ -10,7 +10,7 @@ import { pick, is, isEmpty, -} from "@mutantlove/m" +} from "@mutant-ws/m" import { InputValidationError } from "../errors/input" import { AuthorizationError } from "../errors/authorization" diff --git a/src/routes/ping.route.js b/src/routes/ping.route.js index 0c5a4f0..edd4819 100644 --- a/src/routes/ping.route.js +++ b/src/routes/ping.route.js @@ -1,6 +1,6 @@ const debug = require("debug")("Blocks:PingRoute") -import { elapsedTime, is } from "@mutantlove/m" +import { elapsedTime, is } from "@mutant-ws/m" module.exports = { method: "GET", diff --git a/tests/http.lib.js b/tests/http.lib.js index 2ed18d9..a5a2178 100644 --- a/tests/http.lib.js +++ b/tests/http.lib.js @@ -2,7 +2,7 @@ import FormData from "form-data" import fetch from "node-fetch" -import { pipe, reduce } from "@mutantlove/m" +import { pipe, reduce } from "@mutant-ws/m" const REQ = (url, { method, query, headers, body }) => { return fetch(url, {