@node-core/utils 7.0.2 → 7.0.3

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/lib/auth.js CHANGED
@@ -7,7 +7,7 @@ import { clearCachedConfig, encryptValue, getMergedConfig, getNcurcPath } from '
7
7
 
8
8
  export default lazy(auth);
9
9
 
10
- function check(username, token, format = /^[A-Za-z0-9_]+$/) {
10
+ function check(username, token, format = /^[A-Za-z0-9\-_.]+$/) {
11
11
  if (typeof username !== 'string') {
12
12
  throw new Error(`username must be a string, received ${typeof username}`);
13
13
  }
package/lib/reviews.js CHANGED
@@ -83,7 +83,7 @@ export class ReviewAnalyzer {
83
83
  switch (r.state) {
84
84
  case APPROVED:
85
85
  case CHANGES_REQUESTED:
86
- // Overwrite previous reviews, whether initalized or not
86
+ // Overwrite previous reviews, whether initialized or not
87
87
  map.set(
88
88
  login,
89
89
  new Review(r.state, r.publishedAt, r.url, FROM_REVIEW)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-core/utils",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "description": "Utilities for Node.js core collaborators",
5
5
  "type": "module",
6
6
  "engines": {