web-manager 3.1.8 → 3.1.10
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/lib/dom.js +9 -3
- package/package.json +2 -2
    
        package/lib/dom.js
    CHANGED
    
    | @@ -254,9 +254,15 @@ Dom.loadScript = function(options, callback) { | |
| 254 254 | 
             
                options = options || {};
         | 
| 255 255 | 
             
                options.async = typeof options.async === 'undefined' ? false : options.async;
         | 
| 256 256 | 
             
                options.crossorigin = typeof options.crossorigin === 'undefined' ? false : options.crossorigin;
         | 
| 257 | 
            -
                options. | 
| 258 | 
            -
                 | 
| 259 | 
            -
                 | 
| 257 | 
            +
                options.cacheBreaker = typeof options.cacheBreaker === 'undefined' ? true : options.cacheBreaker;
         | 
| 258 | 
            +
                
         | 
| 259 | 
            +
                if (options.cacheBreaker) {
         | 
| 260 | 
            +
                  var src = options.src.split('?');
         | 
| 261 | 
            +
                  var query = new URLSearchParams(src[1])
         | 
| 262 | 
            +
                  query.set('cb', new Date().getTime());
         | 
| 263 | 
            +
             | 
| 264 | 
            +
                  options.src = src[0] + '?' + query.toString();
         | 
| 265 | 
            +
                }
         | 
| 260 266 |  | 
| 261 267 | 
             
                var s = document.createElement('script');
         | 
| 262 268 | 
             
                s.src = options.src;
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "web-manager",
         | 
| 3 | 
            -
              "version": "3.1. | 
| 3 | 
            +
              "version": "3.1.10",
         | 
| 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": {
         | 
| @@ -28,4 +28,4 @@ | |
| 28 28 | 
             
                "firebase": "^8.10.1",
         | 
| 29 29 | 
             
                "lazysizes": "^5.3.2"
         | 
| 30 30 | 
             
              }
         | 
| 31 | 
            -
            }
         | 
| 31 | 
            +
            }
         |