web-manager 3.2.22 → 3.2.24
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/account.js +12 -0
- package/package.json +2 -2
package/lib/account.js
CHANGED
@@ -369,6 +369,18 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
|
|
369
369
|
account.api.clientId = account.api.clientId || 'unknown';
|
370
370
|
account.api.privateKey = account.api.privateKey || 'unknown';
|
371
371
|
|
372
|
+
// Usage
|
373
|
+
account.usage = account.usage || {};
|
374
|
+
|
375
|
+
account.usage.requests = account.usage.requests || {};
|
376
|
+
account.usage.requests.total = account.usage.requests.total || 0;
|
377
|
+
account.usage.requests.period = account.usage.requests.period || 0;
|
378
|
+
|
379
|
+
account.usage.requests.last = account.usage.requests.last || {};
|
380
|
+
account.usage.requests.last.id = account.usage.requests.last.id || '';
|
381
|
+
account.usage.requests.last.timestamp = account.usage.requests.last.timestamp || '1970-01-01T00:00:00.000Z';
|
382
|
+
account.usage.requests.last.timestampUNIX = account.usage.requests.last.timestampUNIX || 0;
|
383
|
+
|
372
384
|
// Personal
|
373
385
|
account.personal = account.personal || {};
|
374
386
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-manager",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.24",
|
4
4
|
"description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -31,7 +31,7 @@
|
|
31
31
|
}
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@sentry/browser": "^7.
|
34
|
+
"@sentry/browser": "^7.85.0",
|
35
35
|
"cookieconsent": "^3.1.1",
|
36
36
|
"firebase": "^9.23.0",
|
37
37
|
"lazysizes": "^5.3.2"
|