@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.
- package/README.md +197 -41
- package/dist/index.js +335 -95820
- package/dist/package.json +83 -0
- package/package.json +48 -62
- package/.eslintignore +0 -4
- package/.github/FUNDING.yml +0 -1
- package/.github/workflows/build.yml +0 -46
- package/.github/workflows/bump_version.yml +0 -56
- package/.github/workflows/test.yml +0 -30
- package/.prettierignore +0 -6
- package/.vscode/launch.json +0 -23
- package/.vscode/settings.json +0 -5
- package/.vscode/tasks.json +0 -42
- package/CHANGELOG.md +0 -2861
- package/build.mjs +0 -23
- package/bun.lockb +0 -0
- package/capacitor.config.ts +0 -33
- package/crypto_explained.png +0 -0
- package/eslint.config.js +0 -3
- package/renovate.json +0 -23
- package/src/api/app.ts +0 -75
- package/src/api/channels.ts +0 -140
- package/src/api/crypto.ts +0 -121
- package/src/api/devices_override.ts +0 -41
- package/src/api/update.ts +0 -12
- package/src/api/versions.ts +0 -101
- package/src/app/add.ts +0 -191
- package/src/app/debug.ts +0 -220
- package/src/app/delete.ts +0 -106
- package/src/app/info.ts +0 -87
- package/src/app/list.ts +0 -67
- package/src/app/set.ts +0 -94
- package/src/bundle/check.ts +0 -42
- package/src/bundle/cleanup.ts +0 -127
- package/src/bundle/compatibility.ts +0 -70
- package/src/bundle/decrypt.ts +0 -65
- package/src/bundle/delete.ts +0 -53
- package/src/bundle/encrypt.ts +0 -69
- package/src/bundle/list.ts +0 -43
- package/src/bundle/unlink.ts +0 -86
- package/src/bundle/upload.ts +0 -516
- package/src/bundle/zip.ts +0 -139
- package/src/channel/add.ts +0 -73
- package/src/channel/currentBundle.ts +0 -72
- package/src/channel/delete.ts +0 -51
- package/src/channel/list.ts +0 -49
- package/src/channel/set.ts +0 -174
- package/src/index.ts +0 -290
- package/src/init.ts +0 -301
- package/src/key.ts +0 -158
- package/src/login.ts +0 -66
- package/src/types/capacitor__cli.d.ts +0 -6
- package/src/types/supabase.types.ts +0 -2471
- package/src/utils.ts +0 -738
- package/test/chunk_convert.ts +0 -28
- package/test/data.ts +0 -18769
- package/test/test_headers_rls.ts +0 -24
- package/test/test_semver.ts +0 -13
- package/tsconfig.json +0 -39
package/test/test_headers_rls.ts
DELETED
|
@@ -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()
|
package/test/test_semver.ts
DELETED
|
@@ -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
|
-
}
|