@capgo/cli 4.10.24 → 4.10.26

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.
@@ -0,0 +1,41 @@
1
+ name: Check POSIX Paths in Zip File
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ check-posix-paths:
13
+ runs-on: ${{ matrix.os }}
14
+
15
+ strategy:
16
+ matrix:
17
+ os: [windows-2016, windows-2019, windows-2022]
18
+
19
+ steps:
20
+ - name: Checkout repository
21
+ uses: actions/checkout@v3
22
+
23
+ - name: Setup bun
24
+ uses: oven-sh/setup-bun@v1.1.1
25
+ with:
26
+ bun-version: latest
27
+
28
+ - name: Install dependencies
29
+ id: install_code
30
+ run: bun install --frozen-lockfile
31
+
32
+ - name: build code
33
+ id: build_code
34
+ run: bun run build
35
+
36
+ - name: Create a zip test
37
+ id: create_zip
38
+ run: node ./dist/index.js bundle zip --path test/test_upload -n build.zip
39
+
40
+ - name: Run POSIX path check
41
+ run: bun run check-posix-paths
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.10.26](https://github.com/Cap-go/CLI/compare/v4.10.25...v4.10.26) (2024-06-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * test on multiple os ([9516f96](https://github.com/Cap-go/CLI/commit/9516f9647ae66fc455ff4d9955d922abbfc5bed0))
11
+
12
+ ### [4.10.25](https://github.com/Cap-go/CLI/compare/v4.10.24...v4.10.25) (2024-06-20)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * add zip test ([45da8fe](https://github.com/Cap-go/CLI/commit/45da8fee6c7ac068532295d26180aa73996e6b58))
18
+
5
19
  ### [4.10.24](https://github.com/Cap-go/CLI/compare/v4.10.23...v4.10.24) (2024-06-19)
6
20
 
7
21
 
package/dist/index.js CHANGED
@@ -108745,7 +108745,7 @@ var {
108745
108745
  // package.json
108746
108746
  var package_default = {
108747
108747
  name: "@capgo/cli",
108748
- version: "4.10.24",
108748
+ version: "4.10.26",
108749
108749
  description: "A CLI to upload to capgo servers",
108750
108750
  author: "github.com/riderx",
108751
108751
  license: "Apache 2.0",
@@ -108785,7 +108785,8 @@ var package_default = {
108785
108785
  pack: "pkg",
108786
108786
  types: "npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",
108787
108787
  test_rls: "ts-node ./test/test_headers_rls.ts",
108788
- lint: 'eslint "src/**/*.ts" --fix'
108788
+ lint: 'eslint "src/**/*.ts" --fix',
108789
+ "check-posix-paths": "node test/check-posix-paths.js"
108789
108790
  },
108790
108791
  dependencies: {
108791
108792
  "@aws-sdk/client-s3": "^3.588.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.10.24",
3
+ "version": "4.10.26",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "author": "github.com/riderx",
6
6
  "license": "Apache 2.0",
@@ -40,7 +40,8 @@
40
40
  "pack": "pkg",
41
41
  "types": "npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",
42
42
  "test_rls": "ts-node ./test/test_headers_rls.ts",
43
- "lint": "eslint \"src/**/*.ts\" --fix"
43
+ "lint": "eslint \"src/**/*.ts\" --fix",
44
+ "check-posix-paths": "node test/check-posix-paths.js"
44
45
  },
45
46
  "dependencies": {
46
47
  "@aws-sdk/client-s3": "^3.588.0",
@@ -0,0 +1,21 @@
1
+ const AdmZip = require('adm-zip');
2
+
3
+ const zip = new AdmZip('build.zip');
4
+ const zipEntries = zip.getEntries(); // an array of ZipEntry records
5
+
6
+ let errorFound = false;
7
+
8
+ zipEntries.forEach((zipEntry) => {
9
+ const entryName = zipEntry.entryName;
10
+ if (entryName.includes('\\')) {
11
+ console.error(`Non-POSIX path detected: ${entryName}`);
12
+ errorFound = true;
13
+ }
14
+ });
15
+
16
+ if (errorFound) {
17
+ console.error('Non-POSIX paths detected in the zip file');
18
+ process.exit(1);
19
+ } else {
20
+ console.log('All paths are POSIX compliant.');
21
+ }
@@ -0,0 +1,3 @@
1
+ import { CapacitorUpdater } from '@capgo/capacitor-updater'
2
+
3
+ CapacitorUpdater.notifyAppReady()
File without changes