@atlassian/clientside-extensions-debug
Advanced tools
Comparing version
@@ -86,3 +86,3 @@ "use strict"; | ||
Object.defineProperty(window, '____c_p_d', { | ||
configurable: true, | ||
configurable: true, // needed for testing :( | ||
get() { | ||
@@ -89,0 +89,0 @@ return debugGlobal; |
@@ -13,5 +13,5 @@ "use strict"; | ||
LogLevel["info"] = "INFO"; | ||
})(LogLevel = exports.LogLevel || (exports.LogLevel = {})); | ||
})(LogLevel || (exports.LogLevel = LogLevel = {})); | ||
const loggerSubject = (0, debug_subjects_1.registerDebugSubject)("logger" /* DebugSubjects.Logger */, () => new clientside_extensions_base_1.ReplaySubject(20)); | ||
exports._loggerSubject = loggerSubject; | ||
//# sourceMappingURL=logger.js.map |
@@ -83,3 +83,3 @@ /* eslint-disable no-underscore-dangle */ | ||
Object.defineProperty(window, '____c_p_d', { | ||
configurable: true, | ||
configurable: true, // needed for testing :( | ||
get() { | ||
@@ -86,0 +86,0 @@ return debugGlobal; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="jest" /> | ||
declare const observeStateChange: jest.Mock<any, any>; | ||
@@ -3,0 +2,0 @@ declare const isDebugEnabled: jest.Mock<any, any>; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="jest" /> | ||
declare const observeDebugSubject: jest.Mock<any, any>; | ||
@@ -3,0 +2,0 @@ declare const registerDebugSubject: jest.Mock<any, any>; |
import { ReplaySubject } from '@atlassian/clientside-extensions-base'; | ||
export declare enum LogLevel { | ||
debug = "DEBUG", | ||
debug = "DEBUG",// Logs all the things | ||
error = "ERROR", | ||
@@ -5,0 +5,0 @@ warn = "WARN", |
@@ -1,2 +0,2 @@ | ||
import { mocked } from 'ts-jest/utils'; | ||
import { mocked } from 'jest-mock'; | ||
import { getLogLevel, isDebugEnabled, isLoggingEnabled } from './debug-state'; | ||
@@ -3,0 +3,0 @@ import { onDebug } from './debug'; |
@@ -1,2 +0,2 @@ | ||
import { mocked } from 'ts-jest/utils'; | ||
import { mocked } from 'jest-mock'; | ||
import type { LoggerPayload } from './logger'; | ||
@@ -3,0 +3,0 @@ import { LogLevel } from './logger'; |
{ | ||
"name": "@atlassian/clientside-extensions-debug", | ||
"version": "5.1.0-d321dsa-casds-85953339-mdrbr3j4", | ||
"version": "5.1.0", | ||
"description": "Implements debug capabilities for client-side extensions.", | ||
@@ -71,6 +71,7 @@ "license": "BSD-3-Clause", | ||
"jest-in-case": "1.0.2", | ||
"ts-jest": "27.0.7" | ||
"jest-mock": "30.0.5", | ||
"ts-jest": "29.4.1" | ||
}, | ||
"dependencies": { | ||
"@atlassian/clientside-extensions-base": "^5.1.0-d321dsa-casds-85953339-mdrbr3j4", | ||
"@atlassian/clientside-extensions-base": "^5.1.0", | ||
"tslib": "^2.2.0" | ||
@@ -81,3 +82,3 @@ }, | ||
}, | ||
"gitHead": "8595333980e80161c309d412d7aea53c3dafcd15" | ||
"gitHead": "9864e5937d68e51d7a26eece1238be16589135b5" | ||
} |
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
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
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
136092
0.35%0
-100%0
-100%5
25%1732
-0.12%