vslides 1.0.21 → 1.0.22

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 (2) hide show
  1. package/dist/cli.js +4 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -3160,7 +3160,10 @@ async function request(path, options = {}) {
3160
3160
  continue;
3161
3161
  }
3162
3162
  if (response.status === 401 && !skipAuthCheck) {
3163
- clearCLIAuth();
3163
+ const usedCLIAuth = headers["X-CLI-Auth-Token"] !== void 0;
3164
+ if (usedCLIAuth) {
3165
+ clearCLIAuth();
3166
+ }
3164
3167
  throw new AuthExpiredError();
3165
3168
  }
3166
3169
  let data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vslides",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "CLI for Vercel Slides API",
5
5
  "license": "MIT",
6
6
  "author": "Vercel",