@pandacss/logger 0.5.0 → 0.6.0

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/dist/index.d.mts CHANGED
@@ -17,6 +17,7 @@ declare const logger: {
17
17
  info: (msg: string) => () => void;
18
18
  debug: (msg: string) => () => void;
19
19
  };
20
+ isDebug: boolean;
20
21
  };
21
22
 
22
23
  export { createLogScope, logger, quote };
package/dist/index.d.ts CHANGED
@@ -17,6 +17,7 @@ declare const logger: {
17
17
  info: (msg: string) => () => void;
18
18
  debug: (msg: string) => () => void;
19
19
  };
20
+ isDebug: boolean;
20
21
  };
21
22
 
22
23
  export { createLogScope, logger, quote };
package/dist/index.js CHANGED
@@ -237,7 +237,8 @@ var createLogger = (conf = {}) => {
237
237
  time: {
238
238
  info: timing("info"),
239
239
  debug: timing("debug")
240
- }
240
+ },
241
+ isDebug: Boolean(conf.isDebug)
241
242
  };
242
243
  };
243
244
 
@@ -250,8 +251,10 @@ var createLogScope = (scope) => {
250
251
 
251
252
  // src/index.ts
252
253
  var quote = (...str) => import_kleur4.default.cyan(`\`${str.join("")}\``);
254
+ var debug = process.env.PANDA_DEBUG;
253
255
  var logger = createLogger({
254
- filter: typeof process !== "undefined" ? process.env.PANDA_DEBUG : void 0
256
+ filter: typeof process !== "undefined" ? debug : void 0,
257
+ isDebug: Boolean(debug)
255
258
  });
256
259
  // Annotate the CommonJS export names for ESM import in node:
257
260
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -200,7 +200,8 @@ var createLogger = (conf = {}) => {
200
200
  time: {
201
201
  info: timing("info"),
202
202
  debug: timing("debug")
203
- }
203
+ },
204
+ isDebug: Boolean(conf.isDebug)
204
205
  };
205
206
  };
206
207
 
@@ -213,8 +214,10 @@ var createLogScope = (scope) => {
213
214
 
214
215
  // src/index.ts
215
216
  var quote = (...str) => colors4.cyan(`\`${str.join("")}\``);
217
+ var debug = process.env.PANDA_DEBUG;
216
218
  var logger = createLogger({
217
- filter: typeof process !== "undefined" ? process.env.PANDA_DEBUG : void 0
219
+ filter: typeof process !== "undefined" ? debug : void 0,
220
+ isDebug: Boolean(debug)
218
221
  });
219
222
  export {
220
223
  colors4 as colors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/logger",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",