web-manager 3.2.73 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.js +8 -13
  3. package/package.json +1 -1
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
- emailSupport: '',
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
- initChecks: {
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: {
@@ -1299,7 +1295,7 @@ function refreshNewVersion(self) {
1299
1295
  }
1300
1296
 
1301
1297
  // Make request to get the build time (live)
1302
- fetch('/@output/build/build.json?cb=' + new Date().getTime())
1298
+ fetch('/build.json?cb=' + new Date().getTime())
1303
1299
  .then(function (res) {
1304
1300
  if (res.ok) {
1305
1301
  return res.json();
@@ -1309,7 +1305,7 @@ function refreshNewVersion(self) {
1309
1305
  })
1310
1306
  .then(function (data) {
1311
1307
  var buildTimeCurrent = self.properties.global.buildTime;
1312
- var buildTimeLive = new Date(data['npm-build'].timestamp);
1308
+ var buildTimeLive = new Date(data.timestamp);
1313
1309
 
1314
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
1315
1311
  buildTimeCurrent.setHours(buildTimeCurrent.getHours() + 1);
@@ -1679,12 +1675,12 @@ Manager.prototype.log = function() {
1679
1675
 
1680
1676
  function init_loadPolyfills(self, configuration, cb) {
1681
1677
  // https://github.com/jquintozamora/polyfill-io-feature-detection/blob/master/index.js
1682
- var featuresDefault = (
1678
+ var featuresPass = (
1683
1679
  typeof Symbol !== 'undefined'
1684
- )
1685
- var featuresCustom = true;
1680
+ );
1686
1681
 
1687
- if (featuresDefault && featuresCustom) {
1682
+ // Process
1683
+ if (featuresPass) {
1688
1684
  cb();
1689
1685
  } else {
1690
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'})
@@ -1692,7 +1688,6 @@ function init_loadPolyfills(self, configuration, cb) {
1692
1688
  cb();
1693
1689
  })
1694
1690
  }
1695
-
1696
1691
  }
1697
1692
 
1698
1693
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.73",
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": {