@novence/sdk 0.2.4 → 0.2.5

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.
package/dist/cjs/index.js CHANGED
@@ -160,7 +160,9 @@ class Novence {
160
160
  const uploaded = [];
161
161
  for (const full of walk(dir)) {
162
162
  const rel = "/" + (0, node_path_1.relative)(dir, full).split("\\").join("/");
163
- const contentType = MIME_BY_EXT[(0, node_path_1.extname)(full).toLowerCase()];
163
+ const contentType = rel === "/_redirects" || rel === "/_redirects.txt"
164
+ ? "text/plain; charset=utf-8"
165
+ : MIME_BY_EXT[(0, node_path_1.extname)(full).toLowerCase()];
164
166
  if (!contentType)
165
167
  continue;
166
168
  const body = (0, node_fs_1.readFileSync)(full);
package/dist/esm/index.js CHANGED
@@ -149,7 +149,9 @@ export class Novence {
149
149
  const uploaded = [];
150
150
  for (const full of walk(dir)) {
151
151
  const rel = "/" + relative(dir, full).split("\\").join("/");
152
- const contentType = MIME_BY_EXT[extname(full).toLowerCase()];
152
+ const contentType = rel === "/_redirects" || rel === "/_redirects.txt"
153
+ ? "text/plain; charset=utf-8"
154
+ : MIME_BY_EXT[extname(full).toLowerCase()];
153
155
  if (!contentType)
154
156
  continue;
155
157
  const body = readFileSync(full);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novence/sdk",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Official TypeScript SDK for Novence — static site hosting for AI agents. Create projects, upload files, run quality checks, deploy to the edge.",
5
5
  "license": "MIT",
6
6
  "type": "module",