proca 0.5.3 → 0.5.4

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/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g proca
18
18
  $ proca COMMAND
19
19
  running command...
20
20
  $ proca (--version)
21
- proca/0.5.3 linux-x64 node-v20.12.2
21
+ proca/0.5.4 linux-x64 node-v20.12.2
22
22
  $ proca --help [COMMAND]
23
23
  USAGE
24
24
  $ proca COMMAND
@@ -467,7 +467,7 @@ DESCRIPTION
467
467
  Display help for proca.
468
468
  ```
469
469
 
470
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.16/src/commands/help.ts)_
470
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.21/src/commands/help.ts)_
471
471
 
472
472
  ## `proca org add`
473
473
 
@@ -592,7 +592,7 @@ EXAMPLES
592
592
  $ proca plugins
593
593
  ```
594
594
 
595
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/index.ts)_
595
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/index.ts)_
596
596
 
597
597
  ## `proca plugins add PLUGIN`
598
598
 
@@ -666,7 +666,7 @@ EXAMPLES
666
666
  $ proca plugins inspect myplugin
667
667
  ```
668
668
 
669
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/inspect.ts)_
669
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/inspect.ts)_
670
670
 
671
671
  ## `proca plugins install PLUGIN`
672
672
 
@@ -715,7 +715,7 @@ EXAMPLES
715
715
  $ proca plugins install someuser/someplugin
716
716
  ```
717
717
 
718
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/install.ts)_
718
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/install.ts)_
719
719
 
720
720
  ## `proca plugins link PATH`
721
721
 
@@ -746,7 +746,7 @@ EXAMPLES
746
746
  $ proca plugins link myplugin
747
747
  ```
748
748
 
749
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/link.ts)_
749
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/link.ts)_
750
750
 
751
751
  ## `proca plugins remove [PLUGIN]`
752
752
 
@@ -787,7 +787,7 @@ FLAGS
787
787
  --reinstall Reinstall all plugins after uninstalling.
788
788
  ```
789
789
 
790
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/reset.ts)_
790
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/reset.ts)_
791
791
 
792
792
  ## `proca plugins uninstall [PLUGIN]`
793
793
 
@@ -815,7 +815,7 @@ EXAMPLES
815
815
  $ proca plugins uninstall myplugin
816
816
  ```
817
817
 
818
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/uninstall.ts)_
818
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/uninstall.ts)_
819
819
 
820
820
  ## `proca plugins unlink [PLUGIN]`
821
821
 
@@ -859,7 +859,7 @@ DESCRIPTION
859
859
  Update installed plugins.
860
860
  ```
861
861
 
862
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/update.ts)_
862
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/update.ts)_
863
863
 
864
864
  ## `proca supporter count`
865
865
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "proca",
3
3
  "description": "Access the proca api",
4
- "version": "0.5.3",
4
+ "version": "0.5.4",
5
5
  "author": "Xavier",
6
6
  "bin": {
7
7
  "proca": "./proca-cli"
@@ -16,6 +16,7 @@
16
16
  "dxid": "^2.2.1",
17
17
  "easy-table": "^1.2.0",
18
18
  "fast-csv": "^5.0.1",
19
+ "typescript": "^5.7.3",
19
20
  "urql": "^4.1.0"
20
21
  },
21
22
  "devDependencies": {
@@ -1,31 +1,32 @@
1
- import crypto from 'crypto';
1
+ import crypto from "node:crypto";
2
2
  import { Args, Flags } from "@oclif/core";
3
3
  import { error, stdout, ux } from "@oclif/core/ux";
4
4
  import Command from "#src/procaCommand.mjs";
5
5
 
6
6
  export default class UserList extends Command {
7
- static description =
8
- "convert between token and sql value";
9
-
7
+ static description = "convert between token and sql value";
10
8
 
11
9
  static flags = {
12
10
  token: Flags.string({
13
11
  exactlyOne: ["token"],
14
12
  description: "the token in your config",
15
13
  helpValue: "API-xxx",
16
- }),
14
+ }),
17
15
  };
18
16
 
19
17
  async run() {
20
18
  const { args, flags } = await this.parse();
21
- if (flags.token) {
22
- const token = flags.token.replace("API-","").replace(/-/g, '+').replace(/_/g, '/');
23
- const decoded = Buffer.from(token, 'base64').toString('utf-8');
24
- const hexa = crypto.createHash('sha256').update(decoded).digest('hex')
25
- console.log(token, decoded, hexa);
19
+ if (flags.token) {
20
+ const token = flags.token
21
+ .replace("API-", "")
22
+ .replace(/-/g, "+")
23
+ .replace(/_/g, "/");
24
+ const decoded = Buffer.from(token, "base64").toString("utf-8");
25
+ const hexa = crypto.createHash("sha256").update(decoded).digest("hex");
26
+ console.log(token, decoded, hexa);
26
27
 
27
- return this.output({hexa:'\\x'+hexa});
28
- }
28
+ return this.output({ hexa: `\\x${hexa}` });
29
+ }
29
30
  const data = flags;
30
31
 
31
32
  return this.output(data);
package/src/index.mjs CHANGED
@@ -1 +1 @@
1
- export { run } from "@oclif/core";
1
+ export { run, Args, Flags } from "@oclif/core";
@@ -205,4 +205,5 @@ class ProcaCommand extends Command {
205
205
  }
206
206
  }
207
207
 
208
+ export { ProcaCommand as Command, Args, Flags };
208
209
  export default ProcaCommand;