@devicecloud.dev/dcd 1.0.5 → 1.0.7

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.
@@ -6,6 +6,7 @@ const core_1 = require("@oclif/core");
6
6
  const cli_ux_1 = require("@oclif/core/lib/cli-ux");
7
7
  const errors_1 = require("@oclif/core/lib/errors");
8
8
  const supabase_js_1 = require("@supabase/supabase-js");
9
+ const file_1 = require("@web-std/file");
9
10
  const promises_1 = require("node:fs/promises");
10
11
  const path = require("node:path");
11
12
  const constants_1 = require("../constants");
@@ -167,13 +168,13 @@ class Cloud extends core_1.Command {
167
168
  if (finalAppFile?.endsWith('.app')) {
168
169
  const zippedAppBlob = await (0, methods_1.compressFolderToBlob)(finalAppFile);
169
170
  const filePath = finalAppFile + '.zip';
170
- file = new File([zippedAppBlob], filePath);
171
+ file = new file_1.File([zippedAppBlob], filePath);
171
172
  }
172
173
  else {
173
174
  const binaryBlob = new Blob([await (0, promises_1.readFile)(finalAppFile)], {
174
175
  type: mimeTypeLookupByExtension[finalAppFile.split('.').pop()],
175
176
  });
176
- file = new File([binaryBlob], finalAppFile);
177
+ file = new file_1.File([binaryBlob], finalAppFile);
177
178
  }
178
179
  try {
179
180
  metadata = finalAppFile?.endsWith('.apk')
@@ -232,5 +232,5 @@
232
232
  ]
233
233
  }
234
234
  },
235
- "version": "1.0.5"
235
+ "version": "1.0.7"
236
236
  }
package/package.json CHANGED
@@ -12,6 +12,7 @@
12
12
  "@oclif/plugin-update": "^4.1.11",
13
13
  "@oclif/plugin-warn-if-update-available": "^3.0.10",
14
14
  "@supabase/supabase-js": "^2.45.1",
15
+ "@web-std/file": "^3.0.3",
15
16
  "app-info-parser": "^1.1.6",
16
17
  "archiver": "^6.0.1",
17
18
  "bplist-parser": "^0.3.2",
@@ -42,7 +43,7 @@
42
43
  "typescript": "^5"
43
44
  },
44
45
  "engines": {
45
- "node": ">=20.0.0"
46
+ "node": ">=18.0.0"
46
47
  },
47
48
  "files": [
48
49
  "/bin",
@@ -69,6 +70,7 @@
69
70
  },
70
71
  "scripts": {
71
72
  "dcd": "./bin/dev.js",
73
+ "prod": "./bin/run.js",
72
74
  "build": "shx rm -rf dist && tsc -b",
73
75
  "lint": "eslint . --ext .ts",
74
76
  "postpack": "shx rm -f oclif.manifest.json",
@@ -78,7 +80,7 @@
78
80
  "test": "mocha --forbid-only \"test/**/*.test.ts\"",
79
81
  "version": "oclif readme && git add README.md"
80
82
  },
81
- "version": "1.0.5",
83
+ "version": "1.0.7",
82
84
  "bugs": {
83
85
  "url": "https://discord.gg/gm3mJwcNw8"
84
86
  },