web-manager 4.0.24 → 4.0.26
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 +37 -0
- package/dist/index.js +6 -1
- package/dist/modules/bindings.js +11 -1
- package/firebase-debug.log +84 -0
- package/package.json +1 -1
package/TODO.md
CHANGED
|
@@ -12,3 +12,40 @@ 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;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
what if in web-manager we put a special thing like
|
|
46
|
+
|
|
47
|
+
// Precedence: passed environment > query string > config.environment
|
|
48
|
+
const searchParams = new URLSearchParams(window.location.search);
|
|
49
|
+
const queryEnv = searchParams.get('_dev_loudLogs');
|
|
50
|
+
|
|
51
|
+
and this will set a property of webManager to true that enables copious logs
|
package/dist/index.js
CHANGED
|
@@ -382,7 +382,12 @@ class Manager {
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
getApiUrl(environment, url) {
|
|
385
|
-
|
|
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;
|
|
386
391
|
|
|
387
392
|
if (env === 'development') {
|
|
388
393
|
return 'http://localhost:5002';
|
package/dist/modules/bindings.js
CHANGED
|
@@ -35,6 +35,13 @@ class Bindings {
|
|
|
35
35
|
// Find all elements with data-wm-bind attribute
|
|
36
36
|
const bindElements = document.querySelectorAll('[data-wm-bind]');
|
|
37
37
|
|
|
38
|
+
/* @dev-only:start */
|
|
39
|
+
{
|
|
40
|
+
console.log('[Bindings] Updating bindings', context, updatedKeys);
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
/* @dev-only:end */
|
|
44
|
+
|
|
38
45
|
bindElements.forEach(element => {
|
|
39
46
|
const bindValue = element.getAttribute('data-wm-bind');
|
|
40
47
|
|
|
@@ -202,8 +209,11 @@ class Bindings {
|
|
|
202
209
|
return true;
|
|
203
210
|
}
|
|
204
211
|
|
|
212
|
+
// Strip negation operator if present before extracting root key
|
|
213
|
+
const cleanPath = path.trim().replace(/^!/, '');
|
|
214
|
+
|
|
205
215
|
// Extract the root key from the path
|
|
206
|
-
const rootKey =
|
|
216
|
+
const rootKey = cleanPath.split('.')[0];
|
|
207
217
|
|
|
208
218
|
// Only update if the root key is in updatedKeys
|
|
209
219
|
return updatedKeys.includes(rootKey);
|
package/firebase-debug.log
CHANGED
|
@@ -42,3 +42,87 @@
|
|
|
42
42
|
[debug] [2025-11-17T02:29:17.421Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
43
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
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)
|
|
101
|
+
[debug] [2025-11-19T20:05:55.095Z] > 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"]
|
|
102
|
+
[debug] [2025-11-19T20:05:55.095Z] > 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"]
|
|
103
|
+
[debug] [2025-11-19T20:05:55.099Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
104
|
+
[debug] [2025-11-19T20:05:55.099Z] > 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"]
|
|
105
|
+
[debug] [2025-11-19T20:05:55.099Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
106
|
+
[debug] [2025-11-19T20:05:55.108Z] > 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"]
|
|
107
|
+
[debug] [2025-11-19T20:05:55.109Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
108
|
+
[debug] [2025-11-19T20:05:55.099Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
109
|
+
[debug] [2025-11-19T20:05:55.099Z] > 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"]
|
|
110
|
+
[debug] [2025-11-19T20:05:55.099Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
111
|
+
[debug] [2025-11-19T20:05:55.109Z] > 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"]
|
|
112
|
+
[debug] [2025-11-19T20:05:55.109Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
113
|
+
[debug] [2025-11-19T20:05:55.135Z] > 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"]
|
|
114
|
+
[debug] [2025-11-19T20:05:55.136Z] > 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"]
|
|
115
|
+
[debug] [2025-11-19T20:05:55.135Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
116
|
+
[debug] [2025-11-19T20:05:55.136Z] > 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"]
|
|
117
|
+
[debug] [2025-11-19T20:05:55.136Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
118
|
+
[debug] [2025-11-19T20:05:55.139Z] > 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"]
|
|
119
|
+
[debug] [2025-11-19T20:05:55.139Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
120
|
+
[debug] [2025-11-19T20:05:55.139Z] > 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"]
|
|
121
|
+
[debug] [2025-11-19T20:05:55.139Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
122
|
+
[debug] [2025-11-19T20:05:55.136Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
123
|
+
[debug] [2025-11-19T20:05:55.137Z] > 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"]
|
|
124
|
+
[debug] [2025-11-19T20:05:55.138Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
125
|
+
[debug] [2025-11-19T20:05:55.139Z] > 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"]
|
|
126
|
+
[debug] [2025-11-19T20:05:55.139Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
127
|
+
[debug] [2025-11-19T20:05:55.140Z] > 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"]
|
|
128
|
+
[debug] [2025-11-19T20:05:55.140Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
package/package.json
CHANGED