Skip to content

Commit

Permalink
fix: align package naming
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-d-webb committed Sep 7, 2020
1 parent 2b4e2bb commit 38e568c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/fide.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class Fide {
}
getPlayers(url = __classPrivateFieldGet(this, _url)) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield axios_1.default.get(url, { responseType: 'arraybuffer' });
const response = yield axios_1.default.get(url, { responseType: 'arraybuffer', headers: {
crossorigin: true
} });
const zip = new AdmZip(response.data);
const zipEntries = zip.getEntries();
const xml = zipEntries[0].getData().toString();
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chess-players",
"version": "1.0.1",
"version": "1.0.2-alpha",
"description": "Fide Player Download",
"main": "lib/index.js",
"scripts": {
Expand All @@ -17,6 +17,7 @@
"type": "git",
"url": "git+https://github.com/Chess-Centre/chess-players.git"
},
"keywords": ["chess", "players", "nodejs"],
"author": "matt-d-webb <matt.d.webb@icloud.com>",
"license": "MIT",
"bugs": {
Expand All @@ -31,7 +32,6 @@
"@types/axios": "^0.14.0",
"@types/cli-table": "^0.3.0",
"coveralls": "^3.1.0",
"decko": "^1.2.0",
"jest": "^26.4.2",
"onchange": "^7.0.2",
"prettier": "^2.1.1",
Expand All @@ -45,6 +45,7 @@
"dependencies": {
"adm-zip": "^0.4.16",
"axios": "^0.20.0",
"decko": "^1.2.0",
"fast-xml-parser": "^3.17.4"
},
"publishConfig": {
Expand Down

0 comments on commit 38e568c

Please sign in to comment.