@dhyasama/totem-models 6.21.6 → 6.21.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.
@@ -1329,7 +1329,7 @@ module.exports = function(mongoose, config) {
1329
1329
  if (pathname) { usernameMatch = usernameRegExp.exec(pathname); }
1330
1330
  else { usernameMatch = usernameRegExp.exec(val); }
1331
1331
 
1332
- if (usernameMatch.length) { username = usernameMatch[0]; }
1332
+ if (!_.isEmpty(usernameMatch)) { username = usernameMatch[0]; }
1333
1333
 
1334
1334
  console.log('Username:', val, '-->', username);
1335
1335
 
package/lib/Person.js CHANGED
@@ -737,7 +737,7 @@ module.exports = function(mongoose, config) {
737
737
  if (pathname) { usernameMatch = usernameRegExp.exec(pathname); }
738
738
  else { usernameMatch = usernameRegExp.exec(val); }
739
739
 
740
- if (usernameMatch.length) { username = usernameMatch[0]; }
740
+ if (!_.isEmpty(usernameMatch)) { username = usernameMatch[0]; }
741
741
 
742
742
  console.log('Username:', val, '-->', username);
743
743
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.21.6",
3
+ "version": "6.21.7",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
package/.npmignore DELETED
@@ -1,14 +0,0 @@
1
- lib-cov
2
- *.seed
3
- *.log
4
- *.csv
5
- *.dat
6
- *.out
7
- *.pid
8
- *.gz
9
-
10
- npm-debug.log
11
- node_modules
12
-
13
- .DS_Store
14
- .idea