prividium 0.6.1 → 0.8.0

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.
@@ -4,7 +4,7 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node
4
4
  import { z } from 'zod';
5
5
  import { log } from '@clack/prompts';
6
6
  import color from 'kleur';
7
- // eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access
7
+ // biome-ignore lint/suspicious/noExplicitAny: CJS/ESM interop
8
8
  const appDirsFn = appDirs.default;
9
9
  const dirs = appDirsFn({ appName: 'prividium-proxy' });
10
10
  const urlConfigSchema = z.object({
@@ -25,6 +25,7 @@
25
25
  fill="none"
26
26
  viewBox="0 0 24 24"
27
27
  >
28
+ <title>Loader</title>
28
29
  <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
29
30
  <path
30
31
  class="opacity-75"
@@ -1,33 +1,37 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
+
3
4
  <head>
4
5
  <meta charset="UTF-8">
5
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
7
  <title>Prividium</title>
7
8
  <script src="https://cdn.tailwindcss.com"></script>
8
9
  </head>
10
+
9
11
  <body class="bg-gray-900 text-white flex items-center justify-center h-screen">
10
- <div class="text-center">
11
- <h1 id="main-title" class="text-2xl font-bold">Redirecting...</h1>
12
- <div class="mt-4">
13
- <svg class="animate-spin h-8 w-8 text-white mx-auto" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
14
- <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
15
- <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
16
- </svg>
12
+ <div class="text-center">
13
+ <h1 id="main-title" class="text-2xl font-bold">Redirecting...</h1>
14
+ <div class="mt-4">
15
+ <svg class="animate-spin h-8 w-8 text-white mx-auto" xmlns="http://www.w3.org/2000/svg"
16
+ fill="none" viewBox="0 0 24 24">
17
+ <title>Loader</title>
18
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
19
+ <path class="opacity-75" fill="currentColor"
20
+ d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
21
+ </path>
22
+ </svg>
23
+ </div>
17
24
  </div>
18
- </div>
19
- <script>
20
- const hashPath = window.location.hash;
21
- const params = new URLSearchParams(hashPath.replace(/^#/, ''));
22
-
23
- fetch('/redirect-uri').then(
24
- (r) => {
25
- return r.text();
26
- },
27
- console.error
28
- ).then(url => {
29
- window.location.assign(url);
30
- });
31
- </script>
25
+ <script>
26
+ fetch('/redirect-uri').then(
27
+ (r) => {
28
+ return r.text();
29
+ },
30
+ console.error
31
+ ).then(url => {
32
+ window.location.assign(url);
33
+ });
34
+ </script>
32
35
  </body>
33
- </html>
36
+
37
+ </html>
@@ -84,7 +84,6 @@ export class PopupAuth {
84
84
  cleanup();
85
85
  this.config.tokenManager.clearState();
86
86
  this.config.tokenManager.clearToken();
87
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
88
87
  reject(error);
89
88
  });
90
89
  };
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "prividium",
3
- "version": "0.6.1",
3
+ "version": "0.8.0",
4
+ "type": "module",
4
5
  "bin": {
5
6
  "prividium": "bin/cli.js"
6
7
  },