@substrate-system/debug 0.7.5 → 0.7.7

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/README.md CHANGED
@@ -156,7 +156,7 @@ NODE_ENV=development node ./my-script.js
156
156
  ```
157
157
 
158
158
  ##### Configure the environment value
159
- Configure what `NODE_ENV` value will trigger logging by overriding the `shoudlLog` function:
159
+ Configure what `NODE_ENV` value will trigger logging by overriding the `shouldLog` function:
160
160
  ```js
161
161
  // in node only
162
162
  import Debug from '@substrate-system/debug'
package/dist/browser.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  interface Debugger {
2
- (env: string): void;
2
+ (env?: string): void;
3
3
  shouldLog?: (env: string) => boolean;
4
4
  }
5
5
  declare let createDebug: Debugger;
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAyFA,UAAU,QAAQ;IACd,CAAC,GAAG,EAAC,MAAM,GAAE,IAAI,CAAC;IAClB,SAAS,CAAC,EAAC,CAAC,GAAG,EAAC,MAAM,KAAG,OAAO,CAAC;CACpC;AAGD,QAAA,IAAI,WAAW,EAAC,QAAgD,CAAA;AA4ChE,OAAO,EAAE,WAAW,EAAE,CAAA;AACtB,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAyFA,UAAU,QAAQ;IACd,CAAC,GAAG,CAAC,EAAC,MAAM,GAAE,IAAI,CAAC;IACnB,SAAS,CAAC,EAAC,CAAC,GAAG,EAAC,MAAM,KAAG,OAAO,CAAC;CACpC;AAGD,QAAA,IAAI,WAAW,EAAC,QAAgD,CAAA;AA4ChE,OAAO,EAAE,WAAW,EAAE,CAAA;AACtB,eAAe,WAAW,CAAA"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@substrate-system/debug",
3
3
  "description": "Debug utility",
4
4
  "type": "module",
5
- "version": "0.7.5",
5
+ "version": "0.7.7",
6
6
  "main": "./dist/node.js",
7
7
  "files": [
8
8
  "./dist/*"