@scrabble-solver/word-lists 2.15.9 → 2.15.10

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.
@@ -24,7 +24,7 @@ const getWordList = async () => {
24
24
  exports.getWordList = getWordList;
25
25
  const fetchZipUrl = async (url) => {
26
26
  const html = await (0, lib_1.downloadHtml)(url);
27
- const filename = await parseZipContainingPage(html);
27
+ const filename = parseZipContainingPage(html);
28
28
  const { href } = new url_1.URL(filename, url);
29
29
  return href;
30
30
  };
@@ -1,2 +1 @@
1
- declare const downloadFile: (url: string) => Promise<string>;
2
- export default downloadFile;
1
+ export declare const downloadFile: (url: string) => Promise<string>;
@@ -3,12 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.downloadFile = void 0;
6
7
  const follow_redirects_1 = require("follow-redirects");
7
8
  const fs_1 = __importDefault(require("fs"));
8
- const getTempFilepath_1 = __importDefault(require("./getTempFilepath"));
9
+ const getTempFilepath_1 = require("./getTempFilepath");
9
10
  const downloadFile = (url) => {
10
11
  return new Promise((resolve, reject) => {
11
- const tempFilepath = (0, getTempFilepath_1.default)();
12
+ const tempFilepath = (0, getTempFilepath_1.getTempFilepath)();
12
13
  const protocol = url.startsWith('https') ? follow_redirects_1.https : follow_redirects_1.http;
13
14
  const writeStream = fs_1.default.createWriteStream(tempFilepath);
14
15
  const request = protocol.get(url, (response) => {
@@ -34,4 +35,4 @@ const downloadFile = (url) => {
34
35
  });
35
36
  });
36
37
  };
37
- exports.default = downloadFile;
38
+ exports.downloadFile = downloadFile;
@@ -1,2 +1 @@
1
- declare const downloadHtml: (url: string) => Promise<string>;
2
- export default downloadHtml;
1
+ export declare const downloadHtml: (url: string) => Promise<string>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.downloadHtml = void 0;
3
4
  const follow_redirects_1 = require("follow-redirects");
4
5
  const downloadHtml = (url) => {
5
6
  return new Promise((resolve, reject) => {
@@ -17,4 +18,4 @@ const downloadHtml = (url) => {
17
18
  });
18
19
  });
19
20
  };
20
- exports.default = downloadHtml;
21
+ exports.downloadHtml = downloadHtml;
@@ -1,2 +1 @@
1
- declare const extractWords: (file: string, locale: string) => string[];
2
- export default extractWords;
1
+ export declare const extractWords: (file: string, locale: string) => string[];
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const findFirstWordIndex_1 = __importDefault(require("./findFirstWordIndex"));
3
+ exports.extractWords = void 0;
4
+ const findFirstWordIndex_1 = require("./findFirstWordIndex");
7
5
  const extractWords = (file, locale) => {
8
6
  const lines = file.split(/\r?\n/g);
9
- const firstWordIndex = (0, findFirstWordIndex_1.default)(lines, locale);
7
+ const firstWordIndex = (0, findFirstWordIndex_1.findFirstWordIndex)(lines, locale);
10
8
  const words = [];
11
9
  for (let i = firstWordIndex; i < lines.length; ++i) {
12
10
  const trimmed = lines[i].trim();
@@ -16,4 +14,4 @@ const extractWords = (file, locale) => {
16
14
  }
17
15
  return words;
18
16
  };
19
- exports.default = extractWords;
17
+ exports.extractWords = extractWords;
@@ -1,2 +1 @@
1
- declare const findFirstWordIndex: (lines: string[], locale: string) => number;
2
- export default findFirstWordIndex;
1
+ export declare const findFirstWordIndex: (lines: string[], locale: string) => number;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findFirstWordIndex = void 0;
3
4
  const findFirstWordIndex = (lines, locale) => {
4
5
  const firstWordIndex = lines.findIndex((line, index) => {
5
6
  const nextLine = line[index + 1] || '';
@@ -13,4 +14,4 @@ const findFirstWordIndex = (lines, locale) => {
13
14
  }
14
15
  return firstWordIndex;
15
16
  };
16
- exports.default = findFirstWordIndex;
17
+ exports.findFirstWordIndex = findFirstWordIndex;
@@ -1,2 +1 @@
1
- declare const getHash: (bytes?: number) => string;
2
- export default getHash;
1
+ export declare const getHash: (bytes?: number) => string;
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getHash = void 0;
6
7
  const crypto_1 = __importDefault(require("crypto"));
7
8
  const getHash = (bytes = 8) => crypto_1.default.randomBytes(bytes).toString('hex');
8
- exports.default = getHash;
9
+ exports.getHash = getHash;
@@ -1,2 +1 @@
1
- declare const getTempFilepath: () => string;
2
- export default getTempFilepath;
1
+ export declare const getTempFilepath: () => string;
@@ -3,12 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getTempFilepath = void 0;
6
7
  const os_1 = __importDefault(require("os"));
7
8
  const path_1 = __importDefault(require("path"));
8
- const getHash_1 = __importDefault(require("./getHash"));
9
+ const getHash_1 = require("./getHash");
9
10
  const OUTPUT_DIRECTORY = path_1.default.resolve(os_1.default.homedir(), '.scrabble-solver');
10
11
  const getTempFilepath = () => {
11
- const filename = `${(0, getHash_1.default)()}.txt`;
12
+ const filename = `${(0, getHash_1.getHash)()}.txt`;
12
13
  return path_1.default.join(OUTPUT_DIRECTORY, filename);
13
14
  };
14
- exports.default = getTempFilepath;
15
+ exports.getTempFilepath = getTempFilepath;
@@ -1,2 +1 @@
1
- declare const getTxtWordList: (url: string, locale: string) => Promise<string[]>;
2
- export default getTxtWordList;
1
+ export declare const getTxtWordList: (url: string, locale: string) => Promise<string[]>;
@@ -3,14 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getTxtWordList = void 0;
6
7
  const fs_1 = __importDefault(require("fs"));
7
- const downloadFile_1 = __importDefault(require("./downloadFile"));
8
- const extractWords_1 = __importDefault(require("./extractWords"));
8
+ const downloadFile_1 = require("./downloadFile");
9
+ const extractWords_1 = require("./extractWords");
9
10
  const getTxtWordList = async (url, locale) => {
10
- const tempFilename = await (0, downloadFile_1.default)(url);
11
+ const tempFilename = await (0, downloadFile_1.downloadFile)(url);
11
12
  const file = fs_1.default.readFileSync(tempFilename, 'utf-8');
12
- const words = (0, extractWords_1.default)(file.toLocaleString(), locale);
13
+ const words = (0, extractWords_1.extractWords)(file.toLocaleString(), locale);
13
14
  fs_1.default.unlinkSync(tempFilename);
14
15
  return words;
15
16
  };
16
- exports.default = getTxtWordList;
17
+ exports.getTxtWordList = getTxtWordList;
@@ -1,10 +1,10 @@
1
- export { default as downloadFile } from './downloadFile';
2
- export { default as downloadHtml } from './downloadHtml';
3
- export { default as extractWords } from './extractWords';
4
- export { default as findFirstWordIndex } from './findFirstWordIndex';
5
- export { default as getHash } from './getHash';
6
- export { default as getTempFilepath } from './getTempFilepath';
7
- export { default as getTxtWordList } from './getTxtWordList';
8
- export { default as transliterateDiacritics } from './transliterateDiacritics';
9
- export { default as unique } from './unique';
10
- export { default as unzip } from './unzip';
1
+ export { downloadFile } from './downloadFile';
2
+ export { downloadHtml } from './downloadHtml';
3
+ export { extractWords } from './extractWords';
4
+ export { findFirstWordIndex } from './findFirstWordIndex';
5
+ export { getHash } from './getHash';
6
+ export { getTempFilepath } from './getTempFilepath';
7
+ export { getTxtWordList } from './getTxtWordList';
8
+ export { transliterateDiacritics } from './transliterateDiacritics';
9
+ export { unique } from './unique';
10
+ export { unzip } from './unzip';
@@ -1,26 +1,23 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.unzip = exports.unique = exports.transliterateDiacritics = exports.getTxtWordList = exports.getTempFilepath = exports.getHash = exports.findFirstWordIndex = exports.extractWords = exports.downloadHtml = exports.downloadFile = void 0;
7
4
  var downloadFile_1 = require("./downloadFile");
8
- Object.defineProperty(exports, "downloadFile", { enumerable: true, get: function () { return __importDefault(downloadFile_1).default; } });
5
+ Object.defineProperty(exports, "downloadFile", { enumerable: true, get: function () { return downloadFile_1.downloadFile; } });
9
6
  var downloadHtml_1 = require("./downloadHtml");
10
- Object.defineProperty(exports, "downloadHtml", { enumerable: true, get: function () { return __importDefault(downloadHtml_1).default; } });
7
+ Object.defineProperty(exports, "downloadHtml", { enumerable: true, get: function () { return downloadHtml_1.downloadHtml; } });
11
8
  var extractWords_1 = require("./extractWords");
12
- Object.defineProperty(exports, "extractWords", { enumerable: true, get: function () { return __importDefault(extractWords_1).default; } });
9
+ Object.defineProperty(exports, "extractWords", { enumerable: true, get: function () { return extractWords_1.extractWords; } });
13
10
  var findFirstWordIndex_1 = require("./findFirstWordIndex");
14
- Object.defineProperty(exports, "findFirstWordIndex", { enumerable: true, get: function () { return __importDefault(findFirstWordIndex_1).default; } });
11
+ Object.defineProperty(exports, "findFirstWordIndex", { enumerable: true, get: function () { return findFirstWordIndex_1.findFirstWordIndex; } });
15
12
  var getHash_1 = require("./getHash");
16
- Object.defineProperty(exports, "getHash", { enumerable: true, get: function () { return __importDefault(getHash_1).default; } });
13
+ Object.defineProperty(exports, "getHash", { enumerable: true, get: function () { return getHash_1.getHash; } });
17
14
  var getTempFilepath_1 = require("./getTempFilepath");
18
- Object.defineProperty(exports, "getTempFilepath", { enumerable: true, get: function () { return __importDefault(getTempFilepath_1).default; } });
15
+ Object.defineProperty(exports, "getTempFilepath", { enumerable: true, get: function () { return getTempFilepath_1.getTempFilepath; } });
19
16
  var getTxtWordList_1 = require("./getTxtWordList");
20
- Object.defineProperty(exports, "getTxtWordList", { enumerable: true, get: function () { return __importDefault(getTxtWordList_1).default; } });
17
+ Object.defineProperty(exports, "getTxtWordList", { enumerable: true, get: function () { return getTxtWordList_1.getTxtWordList; } });
21
18
  var transliterateDiacritics_1 = require("./transliterateDiacritics");
22
- Object.defineProperty(exports, "transliterateDiacritics", { enumerable: true, get: function () { return __importDefault(transliterateDiacritics_1).default; } });
19
+ Object.defineProperty(exports, "transliterateDiacritics", { enumerable: true, get: function () { return transliterateDiacritics_1.transliterateDiacritics; } });
23
20
  var unique_1 = require("./unique");
24
- Object.defineProperty(exports, "unique", { enumerable: true, get: function () { return __importDefault(unique_1).default; } });
21
+ Object.defineProperty(exports, "unique", { enumerable: true, get: function () { return unique_1.unique; } });
25
22
  var unzip_1 = require("./unzip");
26
- Object.defineProperty(exports, "unzip", { enumerable: true, get: function () { return __importDefault(unzip_1).default; } });
23
+ Object.defineProperty(exports, "unzip", { enumerable: true, get: function () { return unzip_1.unzip; } });
@@ -1,3 +1,2 @@
1
1
  import { OptionsTransliterate } from 'transliteration';
2
- declare const transliterateDiacritics: (words: string[], options?: OptionsTransliterate) => string[];
3
- export default transliterateDiacritics;
2
+ export declare const transliterateDiacritics: (words: string[], options?: OptionsTransliterate) => string[];
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transliterateDiacritics = void 0;
6
4
  const transliteration_1 = require("transliteration");
7
- const unique_1 = __importDefault(require("./unique"));
5
+ const unique_1 = require("./unique");
8
6
  const transliterateDiacritics = (words, options) => {
9
- return (0, unique_1.default)(words.map((word) => (0, transliteration_1.transliterate)(word, options)));
7
+ return (0, unique_1.unique)(words.map((word) => (0, transliteration_1.transliterate)(word, options)));
10
8
  };
11
- exports.default = transliterateDiacritics;
9
+ exports.transliterateDiacritics = transliterateDiacritics;
@@ -1,2 +1 @@
1
- declare const unique: <T>(array: T[]) => T[];
2
- export default unique;
1
+ export declare const unique: <T>(array: T[]) => T[];
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unique = void 0;
3
4
  const unique = (array) => Array.from(new Set(array));
4
- exports.default = unique;
5
+ exports.unique = unique;
@@ -1,2 +1 @@
1
- declare const unzip: (zipFilename: string, extractFilename: string, outputFilename: string) => Promise<void>;
2
- export default unzip;
1
+ export declare const unzip: (zipFilename: string, extractFilename: string, outputFilename: string) => Promise<void>;
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.unzip = void 0;
6
7
  const fs_1 = __importDefault(require("fs"));
7
8
  const unzipper_1 = __importDefault(require("unzipper"));
8
9
  const unzip = (zipFilename, extractFilename, outputFilename) => {
@@ -20,4 +21,4 @@ const unzip = (zipFilename, extractFilename, outputFilename) => {
20
21
  })
21
22
  .promise();
22
23
  };
23
- exports.default = unzip;
24
+ exports.unzip = unzip;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/word-lists",
3
- "version": "2.15.9",
3
+ "version": "2.15.10",
4
4
  "description": "Scrabble Solver 2 - Word lists",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "clean": "rimraf build/"
24
24
  },
25
25
  "dependencies": {
26
- "@scrabble-solver/types": "^2.15.9",
26
+ "@scrabble-solver/types": "^2.15.10",
27
27
  "cheerio": "^1.0.0",
28
28
  "follow-redirects": "^1.15.9",
29
29
  "transliteration": "^2.3.5",
@@ -33,5 +33,5 @@
33
33
  "@types/follow-redirects": "^1.14.4",
34
34
  "@types/unzipper": "^0.10.11"
35
35
  },
36
- "gitHead": "d0654f37094c58a9982d7984e3fc8722f1fa24f0"
36
+ "gitHead": "dab5a817c1bde1a3ebf8e8907215adf12af5cb27"
37
37
  }
@@ -21,7 +21,7 @@ export const getWordList = async (): Promise<string[]> => {
21
21
 
22
22
  const fetchZipUrl = async (url: string): Promise<string> => {
23
23
  const html = await downloadHtml(url);
24
- const filename = await parseZipContainingPage(html);
24
+ const filename = parseZipContainingPage(html);
25
25
  const { href } = new URL(filename, url);
26
26
  return href;
27
27
  };
@@ -1,9 +1,9 @@
1
1
  import { http, https } from 'follow-redirects';
2
2
  import fs from 'fs';
3
3
 
4
- import getTempFilepath from './getTempFilepath';
4
+ import { getTempFilepath } from './getTempFilepath';
5
5
 
6
- const downloadFile = (url: string): Promise<string> => {
6
+ export const downloadFile = (url: string): Promise<string> => {
7
7
  return new Promise((resolve, reject) => {
8
8
  const tempFilepath = getTempFilepath();
9
9
  const protocol = url.startsWith('https') ? https : http;
@@ -35,5 +35,3 @@ const downloadFile = (url: string): Promise<string> => {
35
35
  });
36
36
  });
37
37
  };
38
-
39
- export default downloadFile;
@@ -1,6 +1,6 @@
1
1
  import { http, https } from 'follow-redirects';
2
2
 
3
- const downloadHtml = (url: string): Promise<string> => {
3
+ export const downloadHtml = (url: string): Promise<string> => {
4
4
  return new Promise((resolve, reject) => {
5
5
  const protocol = url.startsWith('https') ? https : http;
6
6
  protocol.get(url, (response) => {
@@ -16,5 +16,3 @@ const downloadHtml = (url: string): Promise<string> => {
16
16
  });
17
17
  });
18
18
  };
19
-
20
- export default downloadHtml;
@@ -1,6 +1,6 @@
1
- import findFirstWordIndex from './findFirstWordIndex';
1
+ import { findFirstWordIndex } from './findFirstWordIndex';
2
2
 
3
- const extractWords = (file: string, locale: string): string[] => {
3
+ export const extractWords = (file: string, locale: string): string[] => {
4
4
  const lines = file.split(/\r?\n/g);
5
5
  const firstWordIndex = findFirstWordIndex(lines, locale);
6
6
  const words: string[] = [];
@@ -15,5 +15,3 @@ const extractWords = (file: string, locale: string): string[] => {
15
15
 
16
16
  return words;
17
17
  };
18
-
19
- export default extractWords;
@@ -1,4 +1,4 @@
1
- const findFirstWordIndex = (lines: string[], locale: string): number => {
1
+ export const findFirstWordIndex = (lines: string[], locale: string): number => {
2
2
  const firstWordIndex = lines.findIndex((line, index) => {
3
3
  const nextLine = line[index + 1] || '';
4
4
  const isNextLineInOrder = line.localeCompare(nextLine, locale) > 0;
@@ -14,5 +14,3 @@ const findFirstWordIndex = (lines: string[], locale: string): number => {
14
14
 
15
15
  return firstWordIndex;
16
16
  };
17
-
18
- export default findFirstWordIndex;
@@ -1,5 +1,3 @@
1
1
  import crypto from 'crypto';
2
2
 
3
- const getHash = (bytes = 8): string => crypto.randomBytes(bytes).toString('hex');
4
-
5
- export default getHash;
3
+ export const getHash = (bytes = 8): string => crypto.randomBytes(bytes).toString('hex');
@@ -1,13 +1,11 @@
1
1
  import os from 'os';
2
2
  import path from 'path';
3
3
 
4
- import getHash from './getHash';
4
+ import { getHash } from './getHash';
5
5
 
6
6
  const OUTPUT_DIRECTORY = path.resolve(os.homedir(), '.scrabble-solver');
7
7
 
8
- const getTempFilepath = (): string => {
8
+ export const getTempFilepath = (): string => {
9
9
  const filename = `${getHash()}.txt`;
10
10
  return path.join(OUTPUT_DIRECTORY, filename);
11
11
  };
12
-
13
- export default getTempFilepath;
@@ -1,14 +1,12 @@
1
1
  import fs from 'fs';
2
2
 
3
- import downloadFile from './downloadFile';
4
- import extractWords from './extractWords';
3
+ import { downloadFile } from './downloadFile';
4
+ import { extractWords } from './extractWords';
5
5
 
6
- const getTxtWordList = async (url: string, locale: string): Promise<string[]> => {
6
+ export const getTxtWordList = async (url: string, locale: string): Promise<string[]> => {
7
7
  const tempFilename = await downloadFile(url);
8
8
  const file = fs.readFileSync(tempFilename, 'utf-8');
9
9
  const words = extractWords(file.toLocaleString(), locale);
10
10
  fs.unlinkSync(tempFilename);
11
11
  return words;
12
12
  };
13
-
14
- export default getTxtWordList;
package/src/lib/index.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { default as downloadFile } from './downloadFile';
2
- export { default as downloadHtml } from './downloadHtml';
3
- export { default as extractWords } from './extractWords';
4
- export { default as findFirstWordIndex } from './findFirstWordIndex';
5
- export { default as getHash } from './getHash';
6
- export { default as getTempFilepath } from './getTempFilepath';
7
- export { default as getTxtWordList } from './getTxtWordList';
8
- export { default as transliterateDiacritics } from './transliterateDiacritics';
9
- export { default as unique } from './unique';
10
- export { default as unzip } from './unzip';
1
+ export { downloadFile } from './downloadFile';
2
+ export { downloadHtml } from './downloadHtml';
3
+ export { extractWords } from './extractWords';
4
+ export { findFirstWordIndex } from './findFirstWordIndex';
5
+ export { getHash } from './getHash';
6
+ export { getTempFilepath } from './getTempFilepath';
7
+ export { getTxtWordList } from './getTxtWordList';
8
+ export { transliterateDiacritics } from './transliterateDiacritics';
9
+ export { unique } from './unique';
10
+ export { unzip } from './unzip';
@@ -1,9 +1,7 @@
1
1
  import { OptionsTransliterate, transliterate } from 'transliteration';
2
2
 
3
- import unique from './unique';
3
+ import { unique } from './unique';
4
4
 
5
- const transliterateDiacritics = (words: string[], options?: OptionsTransliterate): string[] => {
5
+ export const transliterateDiacritics = (words: string[], options?: OptionsTransliterate): string[] => {
6
6
  return unique(words.map((word) => transliterate(word, options)));
7
7
  };
8
-
9
- export default transliterateDiacritics;
package/src/lib/unique.ts CHANGED
@@ -1,3 +1 @@
1
- const unique = <T>(array: T[]): T[] => Array.from(new Set(array));
2
-
3
- export default unique;
1
+ export const unique = <T>(array: T[]): T[] => Array.from(new Set(array));
package/src/lib/unzip.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import fs from 'fs';
2
- import unzipper from 'unzipper';
2
+ import unzipper, { Entry } from 'unzipper';
3
3
 
4
- const unzip = (zipFilename: string, extractFilename: string, outputFilename: string): Promise<void> => {
4
+ export const unzip = (zipFilename: string, extractFilename: string, outputFilename: string): Promise<void> => {
5
5
  return fs
6
6
  .createReadStream(zipFilename)
7
7
  .pipe(unzipper.Parse())
8
- .on('entry', (entry) => {
8
+ .on('entry', (entry: Entry) => {
9
9
  const fileName = entry.path;
10
10
 
11
11
  if (fileName === extractFilename) {
@@ -16,5 +16,3 @@ const unzip = (zipFilename: string, extractFilename: string, outputFilename: str
16
16
  })
17
17
  .promise();
18
18
  };
19
-
20
- export default unzip;