sr-npm 1.7.1333 → 1.7.1334

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1333",
3
+ "version": "1.7.1334",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -133,8 +133,12 @@ try{
133
133
  count = _$w(GLOBAL_SECTIONS_SELECTORS.JOBS_DATASET).getTotalCount();
134
134
  }
135
135
  catch (error) {
136
- if(error.message!="Cannot read properties of undefined (reading 'total')")
136
+ if(error.message==="Cannot read properties of undefined (reading 'total')")
137
137
  {
138
+ console.warn('failed to get total count due to known error, using 0')
139
+
140
+ }
141
+ else{
138
142
  console.error('Failed to get total count:', error);
139
143
  }
140
144
  }
@@ -153,7 +157,12 @@ catch (error) {
153
157
  count = _$w(GLOBAL_SECTIONS_SELECTORS.JOBS_DATASET).getTotalCount();
154
158
  }
155
159
  catch (error) {
156
- if(error.message!=="Cannot read properties of undefined (reading 'total')")
160
+ if(error.message==="Cannot read properties of undefined (reading 'total')")
161
+ {
162
+ console.warn('failed to get total count due to known error, using 0')
163
+
164
+ }
165
+ else
157
166
  {
158
167
  console.error('Failed to get total count:', error);
159
168
  }