@capgo/cli 4.10.24 → 4.10.25

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,37 @@
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: windows-latest
14
+
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Setup bun
20
+ uses: oven-sh/setup-bun@v1.1.1
21
+ with:
22
+ bun-version: latest
23
+
24
+ - name: Install dependencies
25
+ id: install_code
26
+ run: bun install --frozen-lockfile
27
+
28
+ - name: build code
29
+ id: build_code
30
+ run: bun run build
31
+
32
+ - name: Create a zip test
33
+ id: create_zip
34
+ run: node ./dist/index.js bundle zip --path test/test_upload -n build.zip
35
+
36
+ - name: Run POSIX path check
37
+ run: bun run check-posix-paths
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
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.25](https://github.com/Cap-go/CLI/compare/v4.10.24...v4.10.25) (2024-06-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * add zip test ([45da8fe](https://github.com/Cap-go/CLI/commit/45da8fee6c7ac068532295d26180aa73996e6b58))
11
+
5
12
  ### [4.10.24](https://github.com/Cap-go/CLI/compare/v4.10.23...v4.10.24) (2024-06-19)
6
13
 
7
14
 
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.25",
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.25",
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