silphscope 1.4.13 → 1.4.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "silphscope",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "description": "A firered/leafgreen ROM asset extractor for use in web applications",
5
5
  "main": "main.js",
6
6
  "exports": {
@@ -17,7 +17,7 @@ const streamToBuffer = (stream) => new Promise((resolve, reject) => {
17
17
  export async function renderMonFoot(monName, mons, reader, rom, options = {}) {
18
18
  const {
19
19
  pngFilterType = null,
20
- pngCompressionType = null,
20
+ pngCompressionLevel = null,
21
21
  returnFileBuffer,
22
22
  outputDir = null,
23
23
  } = options;
@@ -32,7 +32,11 @@ export async function renderMonFoot(monName, mons, reader, rom, options = {}) {
32
32
  throw new Error(`Missing mon entry for ${monName}`);
33
33
  }
34
34
 
35
- if (monName.includes("UNOWN")) return;
35
+ if (monName.includes("UNOWN")) {
36
+ return {
37
+ fileCount: 0,
38
+ }
39
+ }
36
40
 
37
41
  const footAsset = resolveMonFootprint(mon, reader, monName); // possibly the easiest change ive had to do if it works first try :o
38
42
  if (!footAsset) {
@@ -78,7 +82,7 @@ export async function renderMonFoot(monName, mons, reader, rom, options = {}) {
78
82
  png.data = image;
79
83
  const pngBuffer = PNG.sync.write(png, {
80
84
  filterType: pngFilterType,
81
- deflateLevel: pngCompressionType,
85
+ deflateLevel: pngCompressionLevel,
82
86
  });
83
87
 
84
88
  if (outputDir) {