@sapphire/plugin-logger 4.0.1-next.c8ee3e4.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ # [@sapphire/plugin-logger@4.0.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-logger@4.0.1...@sapphire/plugin-logger@4.0.1) - (2023-12-05)
6
+
7
+ ## ↩️ Revert
8
+
9
+ - "refactor(register): cleanup unnecessary side effect imports of index" ([c2af242](https://github.com/sapphiredev/plugins/commit/c2af24269956132237988d94e4d94719b2cd442c))
10
+
5
11
  # [@sapphire/plugin-logger@4.0.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-logger@4.0.0...@sapphire/plugin-logger@4.0.0) - (2023-12-05)
6
12
 
7
13
  ## 🏠 Refactor
@@ -6,7 +6,7 @@ var LoggerStyle_cjs = require('./lib/LoggerStyle.cjs');
6
6
  var LoggerTimestamp_cjs = require('./lib/LoggerTimestamp.cjs');
7
7
 
8
8
  // src/index.ts
9
- var version = "4.0.1-next.c8ee3e4.0";
9
+ var version = "4.0.1";
10
10
 
11
11
  exports.version = version;
12
12
  Object.keys(Logger_cjs).forEach(function (k) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";AAEA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAaP,IAAM,UAAkB","sourcesContent":["import type { LoggerOptions } from './lib/Logger';\n\nexport * from './lib/Logger';\nexport * from './lib/LoggerLevel';\nexport * from './lib/LoggerStyle';\nexport * from './lib/LoggerTimestamp';\n\ndeclare module '@sapphire/framework' {\n\texport interface ClientLoggerOptions extends LoggerOptions {}\n}\n\n/**\n * The [@sapphire/plugin-logger](https://github.com/sapphiredev/plugins/blob/main/packages/logger) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.0.1-next.c8ee3e4.0';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";AAEA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAaP,IAAM,UAAkB","sourcesContent":["import type { LoggerOptions } from './lib/Logger';\n\nexport * from './lib/Logger';\nexport * from './lib/LoggerLevel';\nexport * from './lib/LoggerStyle';\nexport * from './lib/LoggerTimestamp';\n\ndeclare module '@sapphire/framework' {\n\texport interface ClientLoggerOptions extends LoggerOptions {}\n}\n\n/**\n * The [@sapphire/plugin-logger](https://github.com/sapphiredev/plugins/blob/main/packages/logger) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.0.1';\n"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var framework = require('@sapphire/framework');
4
3
  var index_cjs = require('./index.cjs');
4
+ var framework = require('@sapphire/framework');
5
5
 
6
6
  var __defProp = Object.defineProperty;
7
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAAA,SAAS,QAAQ,2BAA2B,sBAAsB;AAElE,SAAS,cAAc;AAKhB,IAAM,gBAAN,MAAM,sBAAqB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxC,QAAe,yBAAyB,EAAwB,SAA8B;AAC7F,YAAQ,WAAW,CAAC;AACpB,YAAQ,OAAO,WAAW,IAAI,OAAO,QAAQ,MAAM;AAAA,EACpD;AACD;AARyC;AAAlC,IAAM,eAAN;AAUP,eAAe,QAAQ,sCAAsC,aAAa,yBAAyB,GAAG,kCAAkC","sourcesContent":["import { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { Logger } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class LoggerPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\toptions.logger ??= {};\n\t\toptions.logger.instance = new Logger(options.logger);\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(LoggerPlugin[preGenericsInitialization], 'Logger-PreGenericsInitialization');\n"]}
1
+ {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAAA,OAAO;AAEP,SAAS,QAAQ,2BAA2B,sBAAsB;AAElE,SAAS,cAAc;AAKhB,IAAM,gBAAN,MAAM,sBAAqB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxC,QAAe,yBAAyB,EAAwB,SAA8B;AAC7F,YAAQ,WAAW,CAAC;AACpB,YAAQ,OAAO,WAAW,IAAI,OAAO,QAAQ,MAAM;AAAA,EACpD;AACD;AARyC;AAAlC,IAAM,eAAN;AAUP,eAAe,QAAQ,sCAAsC,aAAa,yBAAyB,GAAG,kCAAkC","sourcesContent":["import './index';\n\nimport { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { Logger } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class LoggerPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\toptions.logger ??= {};\n\t\toptions.logger.instance = new Logger(options.logger);\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(LoggerPlugin[preGenericsInitialization], 'Logger-PreGenericsInitialization');\n"]}
@@ -1,3 +1,4 @@
1
+ import './index.cjs';
1
2
  import { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';
2
3
  import { ClientOptions } from 'discord.js';
3
4
 
@@ -4,7 +4,7 @@ export * from './lib/LoggerLevel.mjs';
4
4
  export * from './lib/LoggerStyle.mjs';
5
5
  export * from './lib/LoggerTimestamp.mjs';
6
6
 
7
- var version = "4.0.1-next.c8ee3e4.0";
7
+ var version = "4.0.1";
8
8
 
9
9
  export { version };
10
10
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAEA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAaP,IAAM,UAAkB","sourcesContent":["import type { LoggerOptions } from './lib/Logger';\n\nexport * from './lib/Logger';\nexport * from './lib/LoggerLevel';\nexport * from './lib/LoggerStyle';\nexport * from './lib/LoggerTimestamp';\n\ndeclare module '@sapphire/framework' {\n\texport interface ClientLoggerOptions extends LoggerOptions {}\n}\n\n/**\n * The [@sapphire/plugin-logger](https://github.com/sapphiredev/plugins/blob/main/packages/logger) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.0.1-next.c8ee3e4.0';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAEA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAaP,IAAM,UAAkB","sourcesContent":["import type { LoggerOptions } from './lib/Logger';\n\nexport * from './lib/Logger';\nexport * from './lib/LoggerLevel';\nexport * from './lib/LoggerStyle';\nexport * from './lib/LoggerTimestamp';\n\ndeclare module '@sapphire/framework' {\n\texport interface ClientLoggerOptions extends LoggerOptions {}\n}\n\n/**\n * The [@sapphire/plugin-logger](https://github.com/sapphiredev/plugins/blob/main/packages/logger) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.0.1';\n"]}
@@ -1,3 +1,4 @@
1
+ import './index.mjs';
1
2
  import { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';
2
3
  import { ClientOptions } from 'discord.js';
3
4
 
@@ -1,6 +1,6 @@
1
1
  import { __name } from './chunk-6QB3UK4Q.mjs';
2
- import { SapphireClient, preGenericsInitialization, Plugin } from '@sapphire/framework';
3
2
  import { Logger } from './index.mjs';
3
+ import { SapphireClient, preGenericsInitialization, Plugin } from '@sapphire/framework';
4
4
 
5
5
  var _LoggerPlugin = class _LoggerPlugin extends Plugin {
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAAA,SAAS,QAAQ,2BAA2B,sBAAsB;AAElE,SAAS,cAAc;AAKhB,IAAM,gBAAN,MAAM,sBAAqB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxC,QAAe,yBAAyB,EAAwB,SAA8B;AAC7F,YAAQ,WAAW,CAAC;AACpB,YAAQ,OAAO,WAAW,IAAI,OAAO,QAAQ,MAAM;AAAA,EACpD;AACD;AARyC;AAAlC,IAAM,eAAN;AAUP,eAAe,QAAQ,sCAAsC,aAAa,yBAAyB,GAAG,kCAAkC","sourcesContent":["import { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { Logger } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class LoggerPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\toptions.logger ??= {};\n\t\toptions.logger.instance = new Logger(options.logger);\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(LoggerPlugin[preGenericsInitialization], 'Logger-PreGenericsInitialization');\n"]}
1
+ {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAAA,OAAO;AAEP,SAAS,QAAQ,2BAA2B,sBAAsB;AAElE,SAAS,cAAc;AAKhB,IAAM,gBAAN,MAAM,sBAAqB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxC,QAAe,yBAAyB,EAAwB,SAA8B;AAC7F,YAAQ,WAAW,CAAC;AACpB,YAAQ,OAAO,WAAW,IAAI,OAAO,QAAQ,MAAM;AAAA,EACpD;AACD;AARyC;AAAlC,IAAM,eAAN;AAUP,eAAe,QAAQ,sCAAsC,aAAa,yBAAyB,GAAG,kCAAkC","sourcesContent":["import './index';\n\nimport { Plugin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { Logger } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class LoggerPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\toptions.logger ??= {};\n\t\toptions.logger.instance = new Logger(options.logger);\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(LoggerPlugin[preGenericsInitialization], 'Logger-PreGenericsInitialization');\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-logger",
3
- "version": "4.0.1-next.c8ee3e4.0",
3
+ "version": "4.0.1",
4
4
  "description": "Plugin for @sapphire/framework to have pretty console output",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",