Socket
Socket
Sign inDemoInstall

@agile-ts/logger

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.7

21

CHANGELOG.md
# @agile-ts/logger
## 0.0.7
### Patch Changes
- 2f2724f: #### :bug: Bug Fix
- `core`
- [#176](https://github.com/agile-ts/agile/pull/176) Fix persisting dynamically added items ([@bennodev19](https://github.com/bennodev19))
#### :nail_care: Polish
- `api`, `core`, `event`, `logger`, `multieditor`, `react`, `utils`
- [#177](https://github.com/agile-ts/agile/pull/177) Optimize default configurations ([@bennodev19](https://github.com/bennodev19))
#### Committers: 1
- BennoDev ([@bennodev19](https://github.com/bennodev19))
- Updated dependencies [2f2724f]
- @agile-ts/utils@0.0.7
## 0.0.6

@@ -4,0 +25,0 @@

5

dist/index.js

@@ -10,3 +10,3 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -16,2 +16,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

const logger_1 = require("./logger");
const utils_1 = require("@agile-ts/utils");
const defaultLogConfig = {

@@ -27,3 +28,3 @@ prefix: 'Agile',

function assignSharedAgileLoggerConfig(config = {}) {
config = Object.assign(Object.assign({}, defaultLogConfig), config);
config = utils_1.defineConfig(config, defaultLogConfig);
exports.sharedAgileLogger = sharedAgileLogger = new logger_1.Logger(config);

@@ -30,0 +31,0 @@ return sharedAgileLogger;

13

dist/logger.js

@@ -11,3 +11,10 @@ "use strict";

let _config = typeof config === 'function' ? config(this) : config;
_config = Object.assign({ prefix: '', allowedTags: [], canUseCustomStyles: true, active: true, level: 0, timestamp: false }, _config);
_config = utils_1.defineConfig(_config, {
prefix: '',
allowedTags: [],
canUseCustomStyles: true,
active: true,
level: 0,
timestamp: false,
});
this.isActive = _config.active;

@@ -211,3 +218,5 @@ this.allowedTags = _config.allowedTags;

}
_config = Object.assign({ level: 0 }, _config);
_config = utils_1.defineConfig(_config, {
level: 0,
});
if (!utils_1.isFunction(_config.callback)) {

@@ -214,0 +223,0 @@ console.error('Agile: A Watcher Callback Function has to be an function!');

{
"name": "@agile-ts/logger",
"version": "0.0.6",
"version": "0.0.7",
"author": "BennoDev",

@@ -33,3 +33,3 @@ "license": "MIT",

"dependencies": {
"@agile-ts/utils": "^0.0.6"
"@agile-ts/utils": "^0.0.7"
},

@@ -36,0 +36,0 @@ "publishConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc