web-manager 4.0.23 → 4.0.25
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/TODO.md +28 -0
- package/dist/index.js +7 -1
- package/dist/modules/sentry.js +9 -5
- package/firebase-debug.log +84 -0
- package/package.json +2 -1
package/TODO.md
CHANGED
|
@@ -12,3 +12,31 @@ UTM management
|
|
|
12
12
|
LOCALSTORAGE
|
|
13
13
|
|
|
14
14
|
WRAPPERS FOR COMMON FUNCITONS LIKE FIRESTORE DOC READ and QUERY AND WRITE
|
|
15
|
+
|
|
16
|
+
// Chrome extension Sentry integration
|
|
17
|
+
// Extract only the functions we need (enables tree-shaking)
|
|
18
|
+
// This is REQUIRED for browser extensions to avoid bundling the entire Sentry SDK
|
|
19
|
+
// https://github.com/getsentry/sentry-javascript/issues/14010
|
|
20
|
+
const {
|
|
21
|
+
init,
|
|
22
|
+
captureException,
|
|
23
|
+
browserTracingIntegration,
|
|
24
|
+
replayIntegration,
|
|
25
|
+
browserApiErrorsIntegration,
|
|
26
|
+
breadcrumbsIntegration,
|
|
27
|
+
globalHandlersIntegration,
|
|
28
|
+
} = module;
|
|
29
|
+
|
|
30
|
+
// Store references
|
|
31
|
+
this.Sentry = {
|
|
32
|
+
init,
|
|
33
|
+
captureException,
|
|
34
|
+
browserTracingIntegration,
|
|
35
|
+
replayIntegration,
|
|
36
|
+
browserApiErrorsIntegration,
|
|
37
|
+
breadcrumbsIntegration,
|
|
38
|
+
globalHandlersIntegration,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Expose limited API globally (only what's needed)
|
|
42
|
+
window.Sentry = this.Sentry;
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import Firestore from './modules/firestore.js';
|
|
|
7
7
|
import Notifications from './modules/notifications.js';
|
|
8
8
|
import ServiceWorker from './modules/service-worker.js';
|
|
9
9
|
import Sentry from './modules/sentry.js';
|
|
10
|
+
|
|
10
11
|
class Manager {
|
|
11
12
|
constructor() {
|
|
12
13
|
// Configuration from init()
|
|
@@ -381,7 +382,12 @@ class Manager {
|
|
|
381
382
|
}
|
|
382
383
|
|
|
383
384
|
getApiUrl(environment, url) {
|
|
384
|
-
|
|
385
|
+
// Precedence: passed environment > query string > config.environment
|
|
386
|
+
const searchParams = new URLSearchParams(window.location.search);
|
|
387
|
+
const queryEnv = searchParams.get('_dev_apiEnvironment');
|
|
388
|
+
const env = environment
|
|
389
|
+
|| queryEnv
|
|
390
|
+
|| this.config.environment;
|
|
385
391
|
|
|
386
392
|
if (env === 'development') {
|
|
387
393
|
return 'http://localhost:5002';
|
package/dist/modules/sentry.js
CHANGED
|
@@ -15,7 +15,7 @@ function isAutomatedBrowser() {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
class
|
|
18
|
+
class mod {
|
|
19
19
|
constructor(manager) {
|
|
20
20
|
this.manager = manager;
|
|
21
21
|
this.initialized = false;
|
|
@@ -32,10 +32,14 @@ class SentryModule {
|
|
|
32
32
|
return new Promise((resolve, reject) => {
|
|
33
33
|
// Dynamically import Sentry to reduce initial bundle size
|
|
34
34
|
import('@sentry/browser')
|
|
35
|
-
.then((
|
|
35
|
+
.then((mod) => {
|
|
36
36
|
// Store reference and expose globally
|
|
37
|
-
this.Sentry =
|
|
38
|
-
|
|
37
|
+
this.Sentry = mod;
|
|
38
|
+
|
|
39
|
+
// Add to window if window is defined
|
|
40
|
+
if (typeof window !== 'undefined') {
|
|
41
|
+
window.Sentry = mod;
|
|
42
|
+
}
|
|
39
43
|
|
|
40
44
|
// Build configuration with our defaults
|
|
41
45
|
this.config = this._buildConfig(config);
|
|
@@ -192,4 +196,4 @@ class SentryModule {
|
|
|
192
196
|
// }
|
|
193
197
|
}
|
|
194
198
|
|
|
195
|
-
export default
|
|
199
|
+
export default mod;
|
package/firebase-debug.log
CHANGED
|
@@ -14,3 +14,87 @@
|
|
|
14
14
|
[debug] [2025-10-20T11:33:46.239Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
15
15
|
[debug] [2025-10-20T11:33:46.240Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
16
16
|
[debug] [2025-10-20T11:33:46.240Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
17
|
+
[debug] [2025-11-17T02:29:17.386Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
18
|
+
[debug] [2025-11-17T02:29:17.389Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
19
|
+
[debug] [2025-11-17T02:29:17.389Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
20
|
+
[debug] [2025-11-17T02:29:17.389Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
21
|
+
[debug] [2025-11-17T02:29:17.389Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
22
|
+
[debug] [2025-11-17T02:29:17.398Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
23
|
+
[debug] [2025-11-17T02:29:17.398Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
24
|
+
[debug] [2025-11-17T02:29:17.390Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
25
|
+
[debug] [2025-11-17T02:29:17.391Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
26
|
+
[debug] [2025-11-17T02:29:17.391Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
27
|
+
[debug] [2025-11-17T02:29:17.403Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
28
|
+
[debug] [2025-11-17T02:29:17.403Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
29
|
+
[debug] [2025-11-17T02:29:17.415Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
30
|
+
[debug] [2025-11-17T02:29:17.415Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
31
|
+
[debug] [2025-11-17T02:29:17.415Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
32
|
+
[debug] [2025-11-17T02:29:17.416Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
33
|
+
[debug] [2025-11-17T02:29:17.417Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
34
|
+
[debug] [2025-11-17T02:29:17.417Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
35
|
+
[debug] [2025-11-17T02:29:17.418Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
36
|
+
[debug] [2025-11-17T02:29:17.418Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
37
|
+
[debug] [2025-11-17T02:29:17.418Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
38
|
+
[debug] [2025-11-17T02:29:17.419Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
39
|
+
[debug] [2025-11-17T02:29:17.419Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
40
|
+
[debug] [2025-11-17T02:29:17.420Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
41
|
+
[debug] [2025-11-17T02:29:17.421Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
42
|
+
[debug] [2025-11-17T02:29:17.421Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
43
|
+
[debug] [2025-11-17T02:29:17.422Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
44
|
+
[debug] [2025-11-17T02:29:17.422Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
45
|
+
[debug] [2025-11-19T03:03:22.457Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
46
|
+
[debug] [2025-11-19T03:03:22.465Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
47
|
+
[debug] [2025-11-19T03:03:22.459Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
48
|
+
[debug] [2025-11-19T03:03:22.477Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
49
|
+
[debug] [2025-11-19T03:03:22.477Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
50
|
+
[debug] [2025-11-19T03:03:22.477Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
51
|
+
[debug] [2025-11-19T03:03:22.477Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
52
|
+
[debug] [2025-11-19T03:03:22.467Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
53
|
+
[debug] [2025-11-19T03:03:22.468Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
54
|
+
[debug] [2025-11-19T03:03:22.468Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
55
|
+
[debug] [2025-11-19T03:03:22.479Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
56
|
+
[debug] [2025-11-19T03:03:22.480Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
57
|
+
[debug] [2025-11-19T03:03:22.495Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
58
|
+
[debug] [2025-11-19T03:03:22.495Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
59
|
+
[debug] [2025-11-19T03:03:22.495Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
60
|
+
[debug] [2025-11-19T03:03:22.496Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
61
|
+
[debug] [2025-11-19T03:03:22.496Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
62
|
+
[debug] [2025-11-19T03:03:22.497Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
63
|
+
[debug] [2025-11-19T03:03:22.497Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
64
|
+
[debug] [2025-11-19T03:03:22.498Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
65
|
+
[debug] [2025-11-19T03:03:22.498Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
66
|
+
[debug] [2025-11-19T03:03:22.495Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
67
|
+
[debug] [2025-11-19T03:03:22.496Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
68
|
+
[debug] [2025-11-19T03:03:22.496Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
69
|
+
[debug] [2025-11-19T03:03:22.498Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
70
|
+
[debug] [2025-11-19T03:03:22.498Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
71
|
+
[debug] [2025-11-19T03:03:22.498Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
72
|
+
[debug] [2025-11-19T03:03:22.498Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
73
|
+
[debug] [2025-11-19T03:04:21.495Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
74
|
+
[debug] [2025-11-19T03:04:21.497Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
75
|
+
[debug] [2025-11-19T03:04:21.507Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
76
|
+
[debug] [2025-11-19T03:04:21.507Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
77
|
+
[debug] [2025-11-19T03:04:21.507Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
78
|
+
[debug] [2025-11-19T03:04:21.508Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
79
|
+
[debug] [2025-11-19T03:04:21.523Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
80
|
+
[debug] [2025-11-19T03:04:21.523Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
81
|
+
[debug] [2025-11-19T03:04:21.524Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
82
|
+
[debug] [2025-11-19T03:04:21.524Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
83
|
+
[debug] [2025-11-19T03:04:21.526Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
84
|
+
[debug] [2025-11-19T03:04:21.526Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
85
|
+
[debug] [2025-11-19T03:04:21.526Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
86
|
+
[debug] [2025-11-19T03:04:21.526Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
87
|
+
[debug] [2025-11-19T03:04:21.551Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
88
|
+
[debug] [2025-11-19T03:04:21.553Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
89
|
+
[debug] [2025-11-19T03:04:21.553Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
90
|
+
[debug] [2025-11-19T03:04:21.553Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
91
|
+
[debug] [2025-11-19T03:04:21.561Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
92
|
+
[debug] [2025-11-19T03:04:21.561Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
93
|
+
[debug] [2025-11-19T03:04:21.577Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
94
|
+
[debug] [2025-11-19T03:04:21.577Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
95
|
+
[debug] [2025-11-19T03:04:21.577Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
96
|
+
[debug] [2025-11-19T03:04:21.578Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
97
|
+
[debug] [2025-11-19T03:04:21.579Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
98
|
+
[debug] [2025-11-19T03:04:21.579Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
99
|
+
[debug] [2025-11-19T03:04:21.579Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
100
|
+
[debug] [2025-11-19T03:04:21.579Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-manager",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.25",
|
|
4
4
|
"description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
7
7
|
"scripts": {
|
|
8
|
+
"start": "npm run prepare:watch",
|
|
8
9
|
"test": "./node_modules/mocha/bin/mocha test/ --recursive --timeout=10000",
|
|
9
10
|
"test_": "npm run prepare && ./node_modules/mocha/bin/mocha test/ --recursive --timeout=10000",
|
|
10
11
|
"prepare_": "node -e 'require(`prepare-package`)()'",
|