Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
auralia committed Feb 25, 2017
1 parent 5f7bccb commit 1d2d6e3
Show file tree
Hide file tree
Showing 7 changed files with 548 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.13 ##

* Bug fixes

## 0.1.12 ##

* Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions docs/classes/apierror.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h3>Properties</h3>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="apierror.html#error" class="tsd-kind-icon">Error</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="apierror.html#message-1" class="tsd-kind-icon">message</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="apierror.html#name" class="tsd-kind-icon">name</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="apierror.html#stack" class="tsd-kind-icon">stack</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static"><a href="apierror.html#stack" class="tsd-kind-icon">stack</a></li>
</ul>
</section>
</div>
Expand Down Expand Up @@ -244,12 +244,13 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> name</h3>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static">
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static">
<a name="stack" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagOptional">Optional</span> stack</h3>
<div class="tsd-signature tsd-kind-icon">stack<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<p>Inherited from Error.stack</p>
<p>Overrides Error.stack</p>
<ul>
<li>Defined in D:/Software Development/NationStates/node-nsapi/node_modules/typedoc/node_modules/typescript/lib/lib.d.ts:914</li>
</ul>
Expand Down Expand Up @@ -299,7 +300,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static">
<a href="apierror.html#name" class="tsd-kind-icon">name</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static">
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static">
<a href="apierror.html#stack" class="tsd-kind-icon">stack</a>
</li>
</ul>
Expand Down
533 changes: 533 additions & 0 deletions docs/classes/nsapi.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3>API_<wbr>VERSION</h3>
<section class="tsd-panel tsd-member tsd-kind-variable">
<a name="version" class="tsd-anchor"></a>
<h3>VERSION</h3>
<div class="tsd-signature tsd-kind-icon">VERSION<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"0.1.12"</span><span class="tsd-signature-symbol"> =&nbsp;&quot;0.1.12&quot;</span></div>
<div class="tsd-signature tsd-kind-icon">VERSION<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"0.1.13"</span><span class="tsd-signature-symbol"> =&nbsp;&quot;0.1.13&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in api.ts:53</li>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nsapi",
"version": "0.1.12",
"version": "0.1.13",
"description": "Provides access to the NationStates API",
"keywords": [
"NationStates",
Expand Down
8 changes: 4 additions & 4 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const xmlParser = new xml2js.Parser({
/**
* The version of nsapi.
*/
export const VERSION = "0.1.12";
export const VERSION = "0.1.13";

/**
* The version specified in API requests.
Expand Down Expand Up @@ -795,13 +795,13 @@ export class NsApi {
};
if (auth) {
if (auth.pin) {
headers["Pin"] = auth.pin;
headers["X-Pin"] = auth.pin;
}
if (auth.autologin) {
headers["Autologin"] = auth.autologin;
headers["X-Autologin"] = auth.autologin;
}
if (auth.password) {
headers["Password"] = auth.password;
headers["X-Password"] = auth.password;
}
}

Expand Down

0 comments on commit 1d2d6e3

Please sign in to comment.