Skip to content

Commit

Permalink
feat: Change to mutant-ws/m, mutant-ws/pluginus
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidmt committed Mar 24, 2020
1 parent fe2f611 commit e93cfbd
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/req-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/middleware/req-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/req-cors.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/req-jwt.js
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/middleware/res-goodbye.js
Original file line number Diff line number Diff line change
@@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/res-helmet.js
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/query-parser.js
Original file line number Diff line number Diff line change
@@ -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: () => {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/ping.route.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/http.lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit e93cfbd

Please sign in to comment.