esp32tool 1.6.2 → 1.6.3
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/apple-touch-icon.png +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/partition.d.ts +0 -4
- package/dist/partition.js +0 -7
- package/dist/web/index.js +1 -1
- package/icons/icon-128.png +0 -0
- package/icons/icon-144.png +0 -0
- package/icons/icon-152.png +0 -0
- package/icons/icon-192.png +0 -0
- package/icons/icon-384.png +0 -0
- package/icons/icon-512.png +0 -0
- package/icons/icon-72.png +0 -0
- package/icons/icon-96.png +0 -0
- package/js/modules/esptool.js +1 -1
- package/js/script.js +30 -9
- package/package.json +1 -1
- package/screenshots/desktop.png +0 -0
- package/screenshots/mobile.png +0 -0
- package/src/index.ts +1 -5
- package/src/partition.ts +0 -8
- package/sw.js +1 -1
package/apple-touch-icon.png
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { ESPLoader } from "./esp_loader";
|
|
|
5
5
|
export { CHIP_FAMILY_ESP32, CHIP_FAMILY_ESP32S2, CHIP_FAMILY_ESP32S3, CHIP_FAMILY_ESP8266, CHIP_FAMILY_ESP32C2, CHIP_FAMILY_ESP32C3, CHIP_FAMILY_ESP32C5, CHIP_FAMILY_ESP32C6, CHIP_FAMILY_ESP32C61, CHIP_FAMILY_ESP32H2, CHIP_FAMILY_ESP32H4, CHIP_FAMILY_ESP32H21, CHIP_FAMILY_ESP32P4, CHIP_FAMILY_ESP32S31, ESP_FLASH_BEGIN, ESP_FLASH_DATA, ESP_FLASH_END, ESP_MEM_BEGIN, ESP_MEM_END, ESP_MEM_DATA, ESP_SYNC, ESP_WRITE_REG, ESP_READ_REG, ESP_ERASE_FLASH, ESP_ERASE_REGION, ESP_READ_FLASH, ESP_SPI_SET_PARAMS, ESP_SPI_ATTACH, ESP_CHANGE_BAUDRATE, ESP_SPI_FLASH_MD5, ESP_GET_SECURITY_INFO, ESP_CHECKSUM_MAGIC, ESP_FLASH_DEFL_BEGIN, ESP_FLASH_DEFL_DATA, ESP_FLASH_DEFL_END, ROM_INVALID_RECV_MSG, USB_RAM_BLOCK, ESP_RAM_BLOCK, DEFAULT_TIMEOUT, CHIP_ERASE_TIMEOUT, MAX_TIMEOUT, SYNC_TIMEOUT, ERASE_REGION_TIMEOUT_PER_MB, MEM_END_ROM_TIMEOUT, FLASH_READ_TIMEOUT, } from "./const";
|
|
6
6
|
export declare const connect: (logger: Logger) => Promise<ESPLoader>;
|
|
7
7
|
export declare const connectWithPort: (port: SerialPort, logger: Logger) => Promise<ESPLoader>;
|
|
8
|
-
export { parsePartitionTable,
|
|
8
|
+
export { parsePartitionTable, formatSize } from "./partition";
|
|
9
9
|
export type { Partition } from "./partition";
|
|
10
10
|
export { toHex, sleep, hexFormatter, formatMacAddr } from "./util";
|
|
11
11
|
export { FilesystemType, detectFilesystemType, detectFilesystemFromImage, getDefaultBlockSize, getBlockSizeCandidates, getESP8266FilesystemLayout, scanESP8266Filesystem, LITTLEFS_DEFAULT_BLOCK_SIZE, LITTLEFS_BLOCK_SIZE_CANDIDATES, FATFS_DEFAULT_BLOCK_SIZE, FATFS_BLOCK_SIZE_CANDIDATES, ESP8266_LITTLEFS_BLOCK_SIZE, ESP8266_LITTLEFS_BLOCK_SIZE_CANDIDATES, ESP8266_LITTLEFS_PAGE_SIZE, ESP8266_SPIFFS_PAGE_SIZE, ESP8266_SPIFFS_BLOCK_SIZE, } from "./wasm/filesystems";
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ export const connectWithPort = async (port, logger) => {
|
|
|
43
43
|
}
|
|
44
44
|
return new ESPLoader(port, logger);
|
|
45
45
|
};
|
|
46
|
-
export { parsePartitionTable,
|
|
46
|
+
export { parsePartitionTable, formatSize } from "./partition";
|
|
47
47
|
// Export utility functions for use in UI code
|
|
48
48
|
export { toHex, sleep, hexFormatter, formatMacAddr } from "./util";
|
|
49
49
|
export { FilesystemType, detectFilesystemType, detectFilesystemFromImage, getDefaultBlockSize, getBlockSizeCandidates, getESP8266FilesystemLayout, scanESP8266Filesystem, LITTLEFS_DEFAULT_BLOCK_SIZE, LITTLEFS_BLOCK_SIZE_CANDIDATES, FATFS_DEFAULT_BLOCK_SIZE, FATFS_BLOCK_SIZE_CANDIDATES, ESP8266_LITTLEFS_BLOCK_SIZE, ESP8266_LITTLEFS_BLOCK_SIZE_CANDIDATES, ESP8266_LITTLEFS_PAGE_SIZE, ESP8266_SPIFFS_PAGE_SIZE, ESP8266_SPIFFS_BLOCK_SIZE, } from "./wasm/filesystems";
|
package/dist/partition.d.ts
CHANGED
|
@@ -16,10 +16,6 @@ export interface Partition {
|
|
|
16
16
|
* Parse the entire partition table
|
|
17
17
|
*/
|
|
18
18
|
export declare function parsePartitionTable(data: Uint8Array): Partition[];
|
|
19
|
-
/**
|
|
20
|
-
* Get the default partition table offset
|
|
21
|
-
*/
|
|
22
|
-
export declare function getPartitionTableOffset(): number;
|
|
23
19
|
/**
|
|
24
20
|
* Format size in human-readable format
|
|
25
21
|
*/
|
package/dist/partition.js
CHANGED
|
@@ -42,7 +42,6 @@ const DATA_SUBTYPES = {
|
|
|
42
42
|
0x82: "spiffs",
|
|
43
43
|
0x83: "littlefs",
|
|
44
44
|
};
|
|
45
|
-
const PARTITION_TABLE_OFFSET = 0x8000; // Default partition table offset
|
|
46
45
|
const PARTITION_ENTRY_SIZE = 32;
|
|
47
46
|
const PARTITION_MAGIC = 0x50aa;
|
|
48
47
|
/**
|
|
@@ -109,12 +108,6 @@ export function parsePartitionTable(data) {
|
|
|
109
108
|
}
|
|
110
109
|
return partitions;
|
|
111
110
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Get the default partition table offset
|
|
114
|
-
*/
|
|
115
|
-
export function getPartitionTableOffset() {
|
|
116
|
-
return PARTITION_TABLE_OFFSET;
|
|
117
|
-
}
|
|
118
111
|
/**
|
|
119
112
|
* Format size in human-readable format
|
|
120
113
|
*/
|