@capgo/cli 5.0.0-alpha.7 → 7.0.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.
Files changed (59) hide show
  1. package/README.md +197 -41
  2. package/dist/index.js +335 -95820
  3. package/dist/package.json +83 -0
  4. package/package.json +48 -62
  5. package/.eslintignore +0 -4
  6. package/.github/FUNDING.yml +0 -1
  7. package/.github/workflows/build.yml +0 -46
  8. package/.github/workflows/bump_version.yml +0 -56
  9. package/.github/workflows/test.yml +0 -30
  10. package/.prettierignore +0 -6
  11. package/.vscode/launch.json +0 -23
  12. package/.vscode/settings.json +0 -5
  13. package/.vscode/tasks.json +0 -42
  14. package/CHANGELOG.md +0 -2861
  15. package/build.mjs +0 -23
  16. package/bun.lockb +0 -0
  17. package/capacitor.config.ts +0 -33
  18. package/crypto_explained.png +0 -0
  19. package/eslint.config.js +0 -3
  20. package/renovate.json +0 -23
  21. package/src/api/app.ts +0 -75
  22. package/src/api/channels.ts +0 -140
  23. package/src/api/crypto.ts +0 -121
  24. package/src/api/devices_override.ts +0 -41
  25. package/src/api/update.ts +0 -12
  26. package/src/api/versions.ts +0 -101
  27. package/src/app/add.ts +0 -191
  28. package/src/app/debug.ts +0 -220
  29. package/src/app/delete.ts +0 -106
  30. package/src/app/info.ts +0 -87
  31. package/src/app/list.ts +0 -67
  32. package/src/app/set.ts +0 -94
  33. package/src/bundle/check.ts +0 -42
  34. package/src/bundle/cleanup.ts +0 -127
  35. package/src/bundle/compatibility.ts +0 -70
  36. package/src/bundle/decrypt.ts +0 -65
  37. package/src/bundle/delete.ts +0 -53
  38. package/src/bundle/encrypt.ts +0 -69
  39. package/src/bundle/list.ts +0 -43
  40. package/src/bundle/unlink.ts +0 -86
  41. package/src/bundle/upload.ts +0 -516
  42. package/src/bundle/zip.ts +0 -139
  43. package/src/channel/add.ts +0 -73
  44. package/src/channel/currentBundle.ts +0 -72
  45. package/src/channel/delete.ts +0 -51
  46. package/src/channel/list.ts +0 -49
  47. package/src/channel/set.ts +0 -174
  48. package/src/index.ts +0 -290
  49. package/src/init.ts +0 -301
  50. package/src/key.ts +0 -158
  51. package/src/login.ts +0 -66
  52. package/src/types/capacitor__cli.d.ts +0 -6
  53. package/src/types/supabase.types.ts +0 -2471
  54. package/src/utils.ts +0 -738
  55. package/test/chunk_convert.ts +0 -28
  56. package/test/data.ts +0 -18769
  57. package/test/test_headers_rls.ts +0 -24
  58. package/test/test_semver.ts +0 -13
  59. 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
- }