@vxrn/debug
Advanced tools
Comparing version 1.1.371 to 1.1.372
@@ -37,3 +37,3 @@ var __create = Object.create; | ||
function createSingleDebugger(namespacePartial, options = {}) { | ||
const namespace = `vxrn:${namespacePartial}`, log = (0, import_debug.default)(namespace), { onlyWhenFocused } = options; | ||
const namespace = namespacePartial.includes(":") ? namespacePartial : `vxrn:${namespacePartial}`, log = (0, import_debug.default)(namespace), { onlyWhenFocused } = options; | ||
let enabled = log.enabled; | ||
@@ -40,0 +40,0 @@ if (enabled && onlyWhenFocused) { |
@@ -38,3 +38,3 @@ "use strict"; | ||
function createSingleDebugger(namespacePartial) { | ||
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, namespace = `vxrn:${namespacePartial}`, log = (0, import_debug.default)(namespace), { onlyWhenFocused } = options, enabled = log.enabled; | ||
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, namespace = namespacePartial.includes(":") ? namespacePartial : `vxrn:${namespacePartial}`, log = (0, import_debug.default)(namespace), { onlyWhenFocused } = options, enabled = log.enabled; | ||
if (enabled && onlyWhenFocused) { | ||
@@ -41,0 +41,0 @@ var ns = typeof onlyWhenFocused == "string" ? onlyWhenFocused : namespace; |
@@ -10,3 +10,3 @@ import debug from "debug"; | ||
function createSingleDebugger(namespacePartial, options = {}) { | ||
const namespace = `vxrn:${namespacePartial}`, log = debug(namespace), { onlyWhenFocused } = options; | ||
const namespace = namespacePartial.includes(":") ? namespacePartial : `vxrn:${namespacePartial}`, log = debug(namespace), { onlyWhenFocused } = options; | ||
let enabled = log.enabled; | ||
@@ -13,0 +13,0 @@ if (enabled && onlyWhenFocused) { |
@@ -11,3 +11,3 @@ import debug from "debug"; | ||
function createSingleDebugger(namespacePartial) { | ||
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, namespace = `vxrn:${namespacePartial}`, log = debug(namespace), { onlyWhenFocused } = options, enabled = log.enabled; | ||
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, namespace = namespacePartial.includes(":") ? namespacePartial : `vxrn:${namespacePartial}`, log = debug(namespace), { onlyWhenFocused } = options, enabled = log.enabled; | ||
if (enabled && onlyWhenFocused) { | ||
@@ -14,0 +14,0 @@ var ns = typeof onlyWhenFocused == "string" ? onlyWhenFocused : namespace; |
{ | ||
"name": "@vxrn/debug", | ||
"version": "1.1.371", | ||
"version": "1.1.372", | ||
"sideEffects": false, | ||
@@ -35,3 +35,3 @@ "source": "src/index.ts", | ||
"devDependencies": { | ||
"@tamagui/build": "^1.120.2", | ||
"@tamagui/build": "^1.121.2", | ||
"@types/debug": "^4" | ||
@@ -38,0 +38,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20894