silphscope 1.4.11 → 1.4.12

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.11",
3
+ "version": "1.4.12",
4
4
  "description": "A firered/leafgreen ROM asset extractor for use in web applications",
5
5
  "main": "main.js",
6
6
  "exports": {
@@ -58,7 +58,7 @@ export async function renderAllMons(rom, options = {}) {
58
58
  if (!Number.isInteger(concurrency) || concurrency < 1) {
59
59
  throw new TypeError(`renderAllMons(rom, options = { concurrency, ... }) requires concurrency to be a integer greater than 0 (recieved ${concurrency})`);
60
60
  }
61
- if (isValidFilterType(pngFilterType)) {
61
+ if (!isValidFilterType(pngFilterType)) {
62
62
  throw new TypeError(`renderAllMons(rom, options = { pngFilterType, ... }) requires pngFilterType to be a integer between -1 and 4 (received ${pngFilterType})`)
63
63
  }
64
64
  if (!Number.isInteger(pngCompressionLevel) || pngCompressionLevel < 0 || pngCompressionLevel > 9) {
@@ -115,7 +115,7 @@ export async function renderAllIcons(rom, options = {}) {
115
115
  if (!Number.isInteger(concurrency) || concurrency < 1) {
116
116
  throw new TypeError(`renderAllIcons(rom, options = { concurrency, ... }) requires concurrency to be a integer greater than 0 (recieved ${concurrency})`);
117
117
  }
118
- if (isValidFilterType(pngFilterType)) {
118
+ if (!isValidFilterType(pngFilterType)) {
119
119
  throw new TypeError(`renderAllIcons(rom, options = { pngFilterType, ... }) requires pngFilterType to be a integer between -1 and 4 (received ${pngFilterType})`)
120
120
  }
121
121
  if (!Number.isInteger(pngCompressionLevel) || pngCompressionLevel < 0 || pngCompressionLevel > 9) {
@@ -166,7 +166,7 @@ export async function renderAllTrainers(rom, options = {}) {
166
166
  if (!Number.isInteger(concurrency) || concurrency < 1) {
167
167
  throw new TypeError(`renderAllTrainers(rom, options = { concurrency, ... }) requires concurrency to be a integer greater than 0 (recieved ${concurrency})`);
168
168
  }
169
- if (isValidFilterType(pngFilterType)) {
169
+ if (!isValidFilterType(pngFilterType)) {
170
170
  throw new TypeError(`renderAllTrainers(rom, options = { pngFilterType, ... }) requires pngFilterType to be a integer between -1 and 4 (received ${pngFilterType})`)
171
171
  }
172
172
  if (!Number.isInteger(pngCompressionLevel) || pngCompressionLevel < 0 || pngCompressionLevel > 9) {
@@ -219,7 +219,7 @@ export async function renderAllMoves(rom, options = {}) {
219
219
  if (!Number.isInteger(concurrency) || concurrency < 1) {
220
220
  throw new TypeError(`renderAllMoves(rom, options = { concurrency, ... }) requires concurrency to be a integer greater than 0 (recieved ${concurrency})`);
221
221
  }
222
- if (isValidFilterType(pngFilterType)) {
222
+ if (!isValidFilterType(pngFilterType)) {
223
223
  throw new TypeError(`renderAllMoves(rom, options = { pngFilterType, ... }) requires pngFilterType to be a integer between -1 and 4 (received ${pngFilterType})`)
224
224
  }
225
225
  if (!Number.isInteger(pngCompressionLevel) || pngCompressionLevel < 0 || pngCompressionLevel > 9) {
@@ -275,7 +275,7 @@ export async function renderAllBalls(rom, options = {}) {
275
275
  if (!Number.isInteger(concurrency) || concurrency < 1) {
276
276
  throw new TypeError(`renderAllBalls(rom, options = { concurrency, ... }) requires concurrency to be a integer greater than 0 (recieved ${concurrency})`);
277
277
  }
278
- if (isValidFilterType(pngFilterType)) {
278
+ if (!isValidFilterType(pngFilterType)) {
279
279
  throw new TypeError(`renderAllBalls(rom, options = { pngFilterType, ... }) requires pngFilterType to be a integer between -1 and 4 (received ${pngFilterType})`)
280
280
  }
281
281
  if (!Number.isInteger(pngCompressionLevel) || pngCompressionLevel < 0 || pngCompressionLevel > 9) {
@@ -334,7 +334,7 @@ export async function renderAllGraphics(rom, options = {}) { // eventually I wil
334
334
  if (!Number.isInteger(concurrency) || concurrency < 1) {
335
335
  throw new TypeError(`renderAllGraphics(rom, options = { concurrency, ... }) requires concurrency to be a integer greater than 0 (recieved ${concurrency})`);
336
336
  }
337
- if (isValidFilterType(pngFilterType)) {
337
+ if (!isValidFilterType(pngFilterType)) {
338
338
  throw new Error(`renderAllGraphics(rom, options = { pngFilterType, ... }) requires pngFilterType to be a integer between -1 and 4 (received ${pngFilterType})`)
339
339
  }
340
340
  if (!Number.isInteger(pngCompressionLevel) || pngCompressionLevel < 0 || pngCompressionLevel > 9) {