Comparing version 1.3.1 to 1.4.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.promise = exports.cb = exports.namespaces = exports.getLogger = void 0; | ||
exports.promise = exports.cb = exports.namespaces = exports.getLogger = exports.enable = exports.disable = void 0; | ||
const debug = require("debug"); | ||
@@ -12,3 +12,2 @@ var debug_1 = require("debug"); | ||
const d = debug(`${opts.ns}:${type}`); | ||
d.destroy(); // this is to avoid caching forever in debug.instances | ||
if (opts.context) { | ||
@@ -43,5 +42,2 @@ const handler = { | ||
} | ||
for (let i in out) { | ||
out[i].destroy(); // this is to avoid caching forever in debug.instances | ||
} | ||
return out; | ||
@@ -48,0 +44,0 @@ } |
{ | ||
"name": "debuggo", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "General purpose debug library based on visionmedia/debug", | ||
@@ -17,3 +17,3 @@ "main": "dist/index.js", | ||
"commit": "git-cz", | ||
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 84 --lines 100", | ||
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
@@ -38,25 +38,25 @@ "watch:test": "npm t -- -w", | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@types/chai": "^4.2.11", | ||
"@types/chai-as-promised": "7.1.2", | ||
"@types/chai-spies": "1.0.1", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.11.1", | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"@types/chai": "^4.2.14", | ||
"@types/chai-as-promised": "7.1.3", | ||
"@types/chai-spies": "1.0.2", | ||
"@types/mocha": "^8.0.4", | ||
"@types/node": "^14.14.10", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-spies": "^1.0.0", | ||
"commitizen": "^4.0.4", | ||
"coveralls": "^3.0.11", | ||
"cz-conventional-changelog": "^3.1.0", | ||
"husky": "^4.2.5", | ||
"mocha": "^7.1.1", | ||
"nyc": "^15.0.1", | ||
"commitizen": "^4.2.2", | ||
"coveralls": "^3.1.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"husky": "^4.3.0", | ||
"mocha": "^8.2.1", | ||
"nyc": "^15.1.0", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^17.0.4", | ||
"typescript": "^3.8.3" | ||
"semantic-release": "^17.3.0", | ||
"typescript": "^4.1.2" | ||
}, | ||
"dependencies": { | ||
"@types/debug": "4.1.5", | ||
"debug": "^4.1.1" | ||
"debug": "^4.3.1" | ||
}, | ||
@@ -63,0 +63,0 @@ "config": { |
7445
104
Updateddebug@^4.3.1