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