cadet-agent 0.19.0 → 0.20.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/install.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cadet-agent",
3
- "version": "0.19.0",
3
+ "version": "0.20.1",
4
4
  "description": "Cross-IDE agent framework for Unity/C# game-development — one-command install",
5
5
  "type": "module",
6
6
  "bin": {
package/src/install.mjs CHANGED
@@ -59,7 +59,7 @@ function* centralDirectoryEntries(buf, cdOffset, cdSize) {
59
59
  const extraLen = read16(buf, off + 30);
60
60
  const commentLen = read16(buf, off + 32);
61
61
  const localHeaderOff = read32(buf, off + 42);
62
- const filename = buf.toString('utf-8', off + 46, off + 46 + filenameLen);
62
+ const filename = buf.toString('utf-8', off + 46, off + 46 + filenameLen).replace(/\\/g, '/');
63
63
 
64
64
  // Skip directory entries (trailing / in filename, or uncompressedSize == 0 with no method)
65
65
  if (!filename.endsWith('/')) {
@@ -109,7 +109,7 @@ function extractFile(buf, entry, targetDir) {
109
109
  });
110
110
  }
111
111
 
112
- async function extractZip(buf, targetDir) {
112
+ export async function extractZip(buf, targetDir) {
113
113
  const eocdOff = findEocd(buf);
114
114
  const cdSize = read32(buf, eocdOff + 12);
115
115
  const cdOff = read32(buf, eocdOff + 16);