auth-vir 2.7.0 → 2.7.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/dist/log.d.ts CHANGED
@@ -9,4 +9,4 @@ export declare function authLog(...params: any[]): void;
9
9
  *
10
10
  * @category Internal
11
11
  */
12
- export declare let shouldLogAuth: boolean;
12
+ export declare function setShouldLogAuth(value: boolean): void;
package/dist/log.js CHANGED
@@ -9,9 +9,12 @@ export function authLog(...params) {
9
9
  }
10
10
  console.info(...params);
11
11
  }
12
+ let shouldLogAuth = true;
12
13
  /**
13
14
  * Set to `false` to disable logging.
14
15
  *
15
16
  * @category Internal
16
17
  */
17
- export let shouldLogAuth = true;
18
+ export function setShouldLogAuth(value) {
19
+ shouldLogAuth = value;
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth-vir",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Auth made easy and secure via JWT cookies, CSRF tokens, and password hashing helpers.",
5
5
  "keywords": [
6
6
  "auth",
package/src/log.ts CHANGED
@@ -10,9 +10,13 @@ export function authLog(...params: any[]) {
10
10
  console.info(...params);
11
11
  }
12
12
 
13
+ let shouldLogAuth = true;
14
+
13
15
  /**
14
16
  * Set to `false` to disable logging.
15
17
  *
16
18
  * @category Internal
17
19
  */
18
- export let shouldLogAuth = true;
20
+ export function setShouldLogAuth(value: boolean) {
21
+ shouldLogAuth = value;
22
+ }