@datapos/datapos-development 0.3.82 → 0.3.84
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.
|
@@ -2212,7 +2212,7 @@ async function hi(n) {
|
|
|
2212
2212
|
for (const c of s) {
|
|
2213
2213
|
const u = `${r}/${c.name}`, d = i ? `${i}/${c.name}` : c.name;
|
|
2214
2214
|
if (!c.isDirectory()) {
|
|
2215
|
-
const l = `${n}/${e}
|
|
2215
|
+
const l = `${n}/${e}/${d}`.replace(/\\/g, "/"), p = c.name.endsWith(".js") ? "application/javascript" : c.name.endsWith(".css") ? "text/css" : "application/octet-stream";
|
|
2216
2216
|
console.info(`⚙️ Uploading '${d}' → '${l}'...`);
|
|
2217
2217
|
const { stderr: m } = await N(`wrangler r2 object put "${l}" --file="${u}" --content-type ${p} --jurisdiction=eu --remote`);
|
|
2218
2218
|
if (m) throw new Error(m);
|
package/package.json
CHANGED