@capgo/cli 4.13.9 → 4.13.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.
Files changed (57) hide show
  1. package/dist/index.js +214 -114693
  2. package/package.json +32 -33
  3. package/.github/FUNDING.yml +0 -1
  4. package/.github/workflows/build.yml +0 -46
  5. package/.github/workflows/bump_version.yml +0 -56
  6. package/.github/workflows/test.yml +0 -30
  7. package/.prettierignore +0 -6
  8. package/.vscode/launch.json +0 -23
  9. package/.vscode/settings.json +0 -46
  10. package/.vscode/tasks.json +0 -42
  11. package/CHANGELOG.md +0 -2739
  12. package/build.mjs +0 -23
  13. package/bun.lockb +0 -0
  14. package/capacitor.config.ts +0 -33
  15. package/crypto_explained.png +0 -0
  16. package/eslint.config.js +0 -10
  17. package/renovate.json +0 -23
  18. package/src/api/app.ts +0 -55
  19. package/src/api/channels.ts +0 -140
  20. package/src/api/crypto.ts +0 -116
  21. package/src/api/devices_override.ts +0 -41
  22. package/src/api/update.ts +0 -13
  23. package/src/api/versions.ts +0 -101
  24. package/src/app/add.ts +0 -158
  25. package/src/app/debug.ts +0 -222
  26. package/src/app/delete.ts +0 -106
  27. package/src/app/info.ts +0 -90
  28. package/src/app/list.ts +0 -67
  29. package/src/app/set.ts +0 -94
  30. package/src/bundle/check.ts +0 -42
  31. package/src/bundle/cleanup.ts +0 -127
  32. package/src/bundle/compatibility.ts +0 -70
  33. package/src/bundle/decrypt.ts +0 -54
  34. package/src/bundle/delete.ts +0 -53
  35. package/src/bundle/encrypt.ts +0 -60
  36. package/src/bundle/list.ts +0 -43
  37. package/src/bundle/unlink.ts +0 -86
  38. package/src/bundle/upload.ts +0 -532
  39. package/src/bundle/zip.ts +0 -139
  40. package/src/channel/add.ts +0 -74
  41. package/src/channel/currentBundle.ts +0 -72
  42. package/src/channel/delete.ts +0 -52
  43. package/src/channel/list.ts +0 -49
  44. package/src/channel/set.ts +0 -178
  45. package/src/index.ts +0 -307
  46. package/src/init.ts +0 -342
  47. package/src/key.ts +0 -131
  48. package/src/login.ts +0 -70
  49. package/src/types/capacitor__cli.d.ts +0 -6
  50. package/src/types/supabase.types.ts +0 -2193
  51. package/src/user/account.ts +0 -11
  52. package/src/utils.ts +0 -956
  53. package/test/chunk_convert.ts +0 -28
  54. package/test/data.ts +0 -18769
  55. package/test/test_headers_rls.ts +0 -24
  56. package/test/test_semver.ts +0 -13
  57. package/tsconfig.json +0 -39
@@ -1,24 +0,0 @@
1
- import { createClient } from '@supabase/supabase-js'
2
-
3
- const supaUrl = 'https://aucsybvnhavogdmzwtcw.supabase.co'
4
- const apikey = '***'
5
- const anonKey = '***'
6
- const init = async () => {
7
- const supabase = createClient(supaUrl, anonKey, {
8
- global: {
9
- headers: {
10
- capgkey: '***',
11
- }
12
- }
13
- })
14
- const { data: userId } = await supabase
15
- .rpc('get_user_id', { apikey })
16
- console.log('userId', userId)
17
- const apps = await supabase.from('apps')
18
- .select()
19
- .eq('app_id', 'ee.forgr.captime')
20
- console.log('apps', apps.data)
21
- // try to find one app
22
- }
23
-
24
- init()
@@ -1,13 +0,0 @@
1
- // import semver from 'semver'
2
-
3
- // eslint-disable-next-line max-len
4
- const regex = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
5
- const bundles = ['20220929.0.0+7c146f40', 'v1.2.3']
6
- // check if bundle is valid
7
- for (const bundle of bundles) {
8
- if (!regex.test(bundle)) {
9
- console.log(`Your bundle name ${bundle}, is not valid it should follow semver convention : https://semver.org/`);
10
- } else {
11
- console.log('valid')
12
- }
13
- }
package/tsconfig.json DELETED
@@ -1,39 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "forceConsistentCasingInFileNames": true,
5
- "module": "commonjs",
6
- "esModuleInterop": true,
7
- "skipLibCheck": true,
8
- "resolveJsonModule": true,
9
- "target": "es6",
10
- "moduleResolution": "node",
11
- "sourceMap": true,
12
- "outDir": "dist",
13
- "baseUrl": "src",
14
- "lib": [
15
- "es2016",
16
- "dom"
17
- ],
18
- "typeRoots": [
19
- "src/types/*"
20
- ],
21
- "paths": {
22
- "*": [
23
- "src/types/*"
24
- ],
25
- "@capacitor/cli/dist/config": [
26
- "src/types/capacitor-cli.d.ts"
27
- ]
28
- }
29
- },
30
- "include": [
31
- "src/**/*"
32
- ],
33
- "exclude": [
34
- "node_modules",
35
- "dist",
36
- "__tests__",
37
- "**/*.spec.ts"
38
- ],
39
- }