web-manager 3.2.72 → 3.2.74
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/CHANGELOG.md +4 -0
- package/index.js +11 -13
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -15,6 +15,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
16
16
|
|
17
17
|
---
|
18
|
+
## [3.2.74] - 2025-07-17
|
19
|
+
### Added
|
20
|
+
- Now looks for `build.json` in the `/@output/build/` directory to ensure it works with Vite's output structure.
|
21
|
+
|
18
22
|
## [1.0.0] - 2024-06-19
|
19
23
|
### Added
|
20
24
|
- Initial release of the project 🚀
|
package/index.js
CHANGED
@@ -95,8 +95,7 @@ function Manager() {
|
|
95
95
|
name: 'default'
|
96
96
|
},
|
97
97
|
contact: {
|
98
|
-
|
99
|
-
emailBusiness: '',
|
98
|
+
email: '',
|
100
99
|
},
|
101
100
|
download: {
|
102
101
|
windows: '',
|
@@ -457,7 +456,6 @@ Manager.prototype.init = function(configuration, callback) {
|
|
457
456
|
!status.ready
|
458
457
|
&& !status.initilizing
|
459
458
|
) {
|
460
|
-
|
461
459
|
// Performance
|
462
460
|
self.performance().mark('manager_init');
|
463
461
|
|
@@ -487,9 +485,7 @@ Manager.prototype.init = function(configuration, callback) {
|
|
487
485
|
serviceWorker: {
|
488
486
|
path: '',
|
489
487
|
},
|
490
|
-
|
491
|
-
features: [], // an array of javascript and dom features to check for (NIY)
|
492
|
-
},
|
488
|
+
// polyFill: false,
|
493
489
|
auth: {
|
494
490
|
state: 'default', // required, prohibited, default
|
495
491
|
sends: {
|
@@ -1209,6 +1205,9 @@ function subscriptionManager(self, options_user) {
|
|
1209
1205
|
// Display notification
|
1210
1206
|
new Notification(notification.title, notification)
|
1211
1207
|
.onclick = function(event) {
|
1208
|
+
// Log
|
1209
|
+
console.log('Notification clicked', clickAction);
|
1210
|
+
|
1212
1211
|
// Quit if there is no click action
|
1213
1212
|
if (!clickAction) {
|
1214
1213
|
return;
|
@@ -1296,7 +1295,7 @@ function refreshNewVersion(self) {
|
|
1296
1295
|
}
|
1297
1296
|
|
1298
1297
|
// Make request to get the build time (live)
|
1299
|
-
fetch('
|
1298
|
+
fetch('/build.json?cb=' + new Date().getTime())
|
1300
1299
|
.then(function (res) {
|
1301
1300
|
if (res.ok) {
|
1302
1301
|
return res.json();
|
@@ -1306,7 +1305,7 @@ function refreshNewVersion(self) {
|
|
1306
1305
|
})
|
1307
1306
|
.then(function (data) {
|
1308
1307
|
var buildTimeCurrent = self.properties.global.buildTime;
|
1309
|
-
var buildTimeLive = new Date(data
|
1308
|
+
var buildTimeLive = new Date(data.timestamp);
|
1310
1309
|
|
1311
1310
|
// Set buildTimeCurrent to 1 hour ahead to account for the npm-build time which will ALWAYS be set to later since it happens later
|
1312
1311
|
buildTimeCurrent.setHours(buildTimeCurrent.getHours() + 1);
|
@@ -1676,12 +1675,12 @@ Manager.prototype.log = function() {
|
|
1676
1675
|
|
1677
1676
|
function init_loadPolyfills(self, configuration, cb) {
|
1678
1677
|
// https://github.com/jquintozamora/polyfill-io-feature-detection/blob/master/index.js
|
1679
|
-
var
|
1678
|
+
var featuresPass = (
|
1680
1679
|
typeof Symbol !== 'undefined'
|
1681
|
-
)
|
1682
|
-
var featuresCustom = true;
|
1680
|
+
);
|
1683
1681
|
|
1684
|
-
|
1682
|
+
// Process
|
1683
|
+
if (featuresPass) {
|
1685
1684
|
cb();
|
1686
1685
|
} else {
|
1687
1686
|
loadScript({src: 'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?flags=always%2Cgated&features=default%2Ces5%2Ces6%2Ces7%2CPromise.prototype.finally%2C%7Ehtml5-elements%2ClocalStorage%2Cfetch%2CURLSearchParams'})
|
@@ -1689,7 +1688,6 @@ function init_loadPolyfills(self, configuration, cb) {
|
|
1689
1688
|
cb();
|
1690
1689
|
})
|
1691
1690
|
}
|
1692
|
-
|
1693
1691
|
}
|
1694
1692
|
|
1695
1693
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-manager",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.74",
|
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": {
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"replace": {}
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
|
-
"@sentry/browser": "^8.
|
43
|
+
"@sentry/browser": "^8.54.0",
|
44
44
|
"cookieconsent": "^3.1.1",
|
45
45
|
"firebase": "^9.23.0",
|
46
46
|
"itwcw-package-analytics": "^1.0.6",
|