@aloma.io/integration-sdk 3.4.14 → 3.5.1
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/build/internal/index.mjs
    CHANGED
    
    | @@ -500,12 +500,13 @@ ${text} | |
| 500 500 | 
             
                                    if (!(this._oauth.noPeriodicTokenRefresh === false)) {
         | 
| 501 501 | 
             
                                        this._refreshOAuthToken = setInterval(async () => {
         | 
| 502 502 | 
             
                                            try {
         | 
| 503 | 
            +
                                                console.log('refreshing oauth token');
         | 
| 503 504 | 
             
                                                await theOAuth.periodicRefresh();
         | 
| 504 505 | 
             
                                            }
         | 
| 505 506 | 
             
                                            catch (e) {
         | 
| 506 507 | 
             
                                                console.log("periodic refresh", e);
         | 
| 507 508 | 
             
                                            }
         | 
| 508 | 
            -
                                        }, 4 * 60 * 60 * 15000);
         | 
| 509 | 
            +
                                        }, this._oauth.tokenRefreshPeriod || (4 * 60 * 60 * 15000));
         | 
| 509 510 | 
             
                                    }
         | 
| 510 511 | 
             
                                }
         | 
| 511 512 | 
             
                                const getBlob = (id) => {
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "@aloma.io/integration-sdk",
         | 
| 3 | 
            -
              "version": "3. | 
| 3 | 
            +
              "version": "3.5.1",
         | 
| 4 4 | 
             
              "description": "",
         | 
| 5 5 | 
             
              "author": "aloma.io",
         | 
| 6 6 | 
             
              "license": "Apache-2.0",
         | 
| @@ -28,11 +28,10 @@ | |
| 28 28 | 
             
                "@paralleldrive/cuid2": "^2",
         | 
| 29 29 | 
             
                "@ts-ast-parser/core": "^0.5",
         | 
| 30 30 | 
             
                "@types/node": "^18",
         | 
| 31 | 
            -
                "commander": "^ | 
| 31 | 
            +
                "commander": "^12",
         | 
| 32 32 | 
             
                "dotenv": "*",
         | 
| 33 33 | 
             
                "express": "^4",
         | 
| 34 34 | 
             
                "jose": "^5",
         | 
| 35 | 
            -
                "node-fetch": "^3",
         | 
| 36 35 | 
             
                "prom-client": "^15",
         | 
| 37 36 | 
             
                "typescript": "^5",
         | 
| 38 37 | 
             
                "ws": "^8",
         | 
    
        package/src/internal/index.mjs
    CHANGED
    
    | @@ -626,12 +626,13 @@ ${text} | |
| 626 626 | 
             
                          this._refreshOAuthToken = setInterval(
         | 
| 627 627 | 
             
                            async () => {
         | 
| 628 628 | 
             
                              try {
         | 
| 629 | 
            +
                                console.log('refreshing oauth token')
         | 
| 629 630 | 
             
                                await theOAuth.periodicRefresh();
         | 
| 630 631 | 
             
                              } catch (e) {
         | 
| 631 632 | 
             
                                console.log("periodic refresh", e);
         | 
| 632 633 | 
             
                              }
         | 
| 633 634 | 
             
                            },
         | 
| 634 | 
            -
                            4 * 60 * 60 * 15000,
         | 
| 635 | 
            +
                            this._oauth.tokenRefreshPeriod || (4 * 60 * 60 * 15000),
         | 
| 635 636 | 
             
                          );
         | 
| 636 637 | 
             
                        }
         | 
| 637 638 | 
             
                      }
         |