From 2f9e09889911e097fcbde999203a9201784808a2 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Wed, 26 Apr 2017 10:49:26 +0200 Subject: [PATCH] chore: change DEBUG namespace to loopback:mixin:readonly --- README.md | 2 +- lib/read-only.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd76937..cd9dc39 100644 --- a/README.md +++ b/README.md @@ -138,5 +138,5 @@ Run the tests in `test.js` Run with debugging output on: ```bash - DEBUG='loopback-ds-readonly-mixin' npm test + DEBUG='loopback:mixin:readonly' npm test ``` diff --git a/lib/read-only.js b/lib/read-only.js index c483e40..69bf7d2 100644 --- a/lib/read-only.js +++ b/lib/read-only.js @@ -1,4 +1,4 @@ -const debug = require('debug')('loopback-ds-readonly-mixin') +const debug = require('debug')('loopback:mixin:readonly') module.exports = Model => { 'use strict' diff --git a/package.json b/package.json index 6972ab8..c8a8a96 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "test" ], "scripts": { - "dev": "DEBUG=*:ping NODE_ENV=development nodemon test/fixtures/simple-app/server/server.js --watch ./lib --watch ./test --ignore db.json --ext js,json", + "dev": "DEBUG=loopback:mixin:readonly NODE_ENV=development nodemon test/fixtures/simple-app/server/server.js --watch ./lib --watch ./test --ignore db.json --ext js,json", "lint": "eslint .", "pretest": "npm run lint", "test": "NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js",