@capgo/cli 4.13.7 → 4.13.9
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/.github/FUNDING.yml +1 -0
- package/.github/workflows/build.yml +46 -0
- package/.github/workflows/bump_version.yml +56 -0
- package/.github/workflows/test.yml +30 -0
- package/.prettierignore +6 -0
- package/.vscode/launch.json +23 -0
- package/.vscode/settings.json +46 -0
- package/.vscode/tasks.json +42 -0
- package/CHANGELOG.md +2739 -0
- package/build.mjs +23 -0
- package/bun.lockb +0 -0
- package/capacitor.config.ts +33 -0
- package/crypto_explained.png +0 -0
- package/dist/index.js +114692 -205
- package/eslint.config.js +10 -0
- package/package.json +33 -32
- package/renovate.json +23 -0
- package/src/api/app.ts +55 -0
- package/src/api/channels.ts +140 -0
- package/src/api/crypto.ts +116 -0
- package/src/api/devices_override.ts +41 -0
- package/src/api/update.ts +13 -0
- package/src/api/versions.ts +101 -0
- package/src/app/add.ts +158 -0
- package/src/app/debug.ts +222 -0
- package/src/app/delete.ts +106 -0
- package/src/app/info.ts +90 -0
- package/src/app/list.ts +67 -0
- package/src/app/set.ts +94 -0
- package/src/bundle/check.ts +42 -0
- package/src/bundle/cleanup.ts +127 -0
- package/src/bundle/compatibility.ts +70 -0
- package/src/bundle/decrypt.ts +54 -0
- package/src/bundle/delete.ts +53 -0
- package/src/bundle/encrypt.ts +60 -0
- package/src/bundle/list.ts +43 -0
- package/src/bundle/unlink.ts +86 -0
- package/src/bundle/upload.ts +532 -0
- package/src/bundle/zip.ts +139 -0
- package/src/channel/add.ts +74 -0
- package/src/channel/currentBundle.ts +72 -0
- package/src/channel/delete.ts +52 -0
- package/src/channel/list.ts +49 -0
- package/src/channel/set.ts +178 -0
- package/src/index.ts +307 -0
- package/src/init.ts +342 -0
- package/src/key.ts +131 -0
- package/src/login.ts +70 -0
- package/src/types/capacitor__cli.d.ts +6 -0
- package/src/types/supabase.types.ts +2193 -0
- package/src/user/account.ts +11 -0
- package/src/utils.ts +956 -0
- package/test/chunk_convert.ts +28 -0
- package/test/data.ts +18769 -0
- package/test/test_headers_rls.ts +24 -0
- package/test/test_semver.ts +13 -0
- package/tsconfig.json +39 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
github: riderx
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Build source code and send to Capgo
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
name: "Build code and release"
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
id-token: write
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
- name: Setup bun
|
|
21
|
+
uses: oven-sh/setup-bun@v1.1.1
|
|
22
|
+
with:
|
|
23
|
+
bun-version: latest
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
id: install_code
|
|
26
|
+
run: bun install --frozen-lockfile
|
|
27
|
+
- name: Lint
|
|
28
|
+
id: lint_code
|
|
29
|
+
run: bun lint
|
|
30
|
+
- name: Build
|
|
31
|
+
id: build_code
|
|
32
|
+
run: bun run build
|
|
33
|
+
- name: Run
|
|
34
|
+
id: run_cli
|
|
35
|
+
run: node dist/index.js --help
|
|
36
|
+
- uses: JS-DevTools/npm-publish@v3
|
|
37
|
+
if: ${{ !contains(github.ref, '-alpha.') }}
|
|
38
|
+
with:
|
|
39
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
40
|
+
provenance: true
|
|
41
|
+
- uses: JS-DevTools/npm-publish@v3
|
|
42
|
+
if: ${{ contains(github.ref, '-alpha.') }}
|
|
43
|
+
with:
|
|
44
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
45
|
+
tag: next
|
|
46
|
+
provenance: true
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Bump version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- development
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
bump-version:
|
|
11
|
+
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
name: "Bump version and create changelog with standard version"
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
with:
|
|
18
|
+
fetch-depth: 0
|
|
19
|
+
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
|
|
20
|
+
- name: Setup bun
|
|
21
|
+
uses: oven-sh/setup-bun@v1.1.1
|
|
22
|
+
with:
|
|
23
|
+
bun-version: latest
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
id: install_code
|
|
26
|
+
run: bun install --frozen-lockfile
|
|
27
|
+
- name: Git config
|
|
28
|
+
run: |
|
|
29
|
+
git config --local user.name "github-actions[bot]"
|
|
30
|
+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
31
|
+
- name: Create bump and changelog main
|
|
32
|
+
if: github.ref == 'refs/heads/main'
|
|
33
|
+
run: npx standard-version
|
|
34
|
+
- name: Create bump and changelog development
|
|
35
|
+
if: github.ref != 'refs/heads/main'
|
|
36
|
+
run: npx standard-version --prerelease alpha
|
|
37
|
+
- name: Push to origin
|
|
38
|
+
run: |
|
|
39
|
+
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
40
|
+
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
|
|
41
|
+
git pull $remote_repo $CURRENT_BRANCH
|
|
42
|
+
git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
|
|
43
|
+
create-cache:
|
|
44
|
+
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
name: "Create global cache on main branch"
|
|
47
|
+
steps:
|
|
48
|
+
- name: Checkout
|
|
49
|
+
uses: actions/checkout@v4
|
|
50
|
+
- name: Setup bun
|
|
51
|
+
uses: oven-sh/setup-bun@v1.1.1
|
|
52
|
+
with:
|
|
53
|
+
bun-version: latest
|
|
54
|
+
- name: Install dependencies
|
|
55
|
+
id: install_code
|
|
56
|
+
run: bun install --frozen-lockfile
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Build source code and test it
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- renovate/**
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
web:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
name: "Build code and test"
|
|
12
|
+
steps:
|
|
13
|
+
- name: Check out
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
- name: Setup bun
|
|
16
|
+
uses: oven-sh/setup-bun@v1.1.1
|
|
17
|
+
with:
|
|
18
|
+
bun-version: latest
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
id: install_code
|
|
21
|
+
run: bun install --frozen-lockfile
|
|
22
|
+
- name: Lint
|
|
23
|
+
id: lint_code
|
|
24
|
+
run: bun run lint
|
|
25
|
+
- name: Build
|
|
26
|
+
id: build_code
|
|
27
|
+
run: bun run build
|
|
28
|
+
- name: Run
|
|
29
|
+
id: run_cli
|
|
30
|
+
run: node dist/index.js --help
|
package/.prettierignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
|
|
7
|
+
"configurations": [
|
|
8
|
+
{
|
|
9
|
+
"type": "node",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"name": "Launch",
|
|
12
|
+
"program": "${workspaceFolder}/dist/index.js",
|
|
13
|
+
"args": ["-u", "Edwin Hubble", "-w", "y"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "node",
|
|
17
|
+
"request": "launch",
|
|
18
|
+
"name": "Launch with other params",
|
|
19
|
+
"program": "${workspaceFolder}/dist/index.js",
|
|
20
|
+
"args": ["-u", "Enrico Fermi", "-w", "y"]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Enable the ESlint flat config support
|
|
3
|
+
"eslint.experimental.useFlatConfig": true,
|
|
4
|
+
|
|
5
|
+
// Disable the default formatter, use eslint instead
|
|
6
|
+
"prettier.enable": false,
|
|
7
|
+
"editor.formatOnSave": false,
|
|
8
|
+
"javascript.format.enable": false,
|
|
9
|
+
|
|
10
|
+
// Auto fix
|
|
11
|
+
"editor.codeActionsOnSave": {
|
|
12
|
+
"source.fixAll.eslint": "explicit",
|
|
13
|
+
"source.organizeImports": "never"
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
17
|
+
"eslint.rules.customizations": [
|
|
18
|
+
{ "rule": "style/*", "severity": "off" },
|
|
19
|
+
{ "rule": "format/*", "severity": "off" },
|
|
20
|
+
{ "rule": "*-indent", "severity": "off" },
|
|
21
|
+
{ "rule": "*-spacing", "severity": "off" },
|
|
22
|
+
{ "rule": "*-spaces", "severity": "off" },
|
|
23
|
+
{ "rule": "*-order", "severity": "off" },
|
|
24
|
+
{ "rule": "*-dangle", "severity": "off" },
|
|
25
|
+
{ "rule": "*-newline", "severity": "off" },
|
|
26
|
+
{ "rule": "*quotes", "severity": "off" },
|
|
27
|
+
{ "rule": "*semi", "severity": "off" }
|
|
28
|
+
],
|
|
29
|
+
|
|
30
|
+
// Enable eslint for all supported languages
|
|
31
|
+
"eslint.validate": [
|
|
32
|
+
"javascript",
|
|
33
|
+
"javascriptreact",
|
|
34
|
+
"typescript",
|
|
35
|
+
"typescriptreact",
|
|
36
|
+
"vue",
|
|
37
|
+
"html",
|
|
38
|
+
"markdown",
|
|
39
|
+
"json",
|
|
40
|
+
"jsonc",
|
|
41
|
+
"yaml",
|
|
42
|
+
"toml",
|
|
43
|
+
"gql",
|
|
44
|
+
"graphql"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
// for the documentation about the tasks.json format
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"tasks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "typescript",
|
|
8
|
+
"tsconfig": "tsconfig.json",
|
|
9
|
+
"problemMatcher": ["$tsc"],
|
|
10
|
+
"group": "build"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "shell",
|
|
14
|
+
"label": "webpack dev",
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"options": {
|
|
17
|
+
"env": {
|
|
18
|
+
"NODE_ENV": "development"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"isBackground": true,
|
|
22
|
+
"args": ["webpack", "--config webpack.config.js"],
|
|
23
|
+
"problemMatcher": [
|
|
24
|
+
{
|
|
25
|
+
"pattern": [
|
|
26
|
+
{
|
|
27
|
+
"regexp": ".",
|
|
28
|
+
"file": 1,
|
|
29
|
+
"location": 2,
|
|
30
|
+
"message": 3
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"background": {
|
|
34
|
+
"activeOnStart": true,
|
|
35
|
+
"beginsPattern": ".",
|
|
36
|
+
"endsPattern": ".",
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|