Skip to content

Commit 25e4305

Browse files
committed
style: changed how the class is being exported
1 parent 340291f commit 25e4305

File tree

8 files changed

+10
-13
lines changed

8 files changed

+10
-13
lines changed

dist/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ declare class QueryString {
2727
*/
2828
static extract(url: string): string;
2929
}
30-
export default QueryString;

dist/index.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/QueryString.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h4 class="name" id="QueryString">
6868

6969
<div class="container-source members">
7070
<code><a href="index.js.html">index.js</a></code>,
71-
<code><a href="index.js.html#line7">line 7</a></code>
71+
<code><a href="index.js.html#line6">line 6</a></code>
7272
</div>
7373

7474
</h4>
@@ -174,7 +174,7 @@ <h4 class="name" id=".extract">
174174

175175
<div class="container-source members">
176176
<code><a href="index.js.html">index.js</a></code>,
177-
<code><a href="index.js.html#line88">line 88</a></code>
177+
<code><a href="index.js.html#line87">line 87</a></code>
178178
</div>
179179

180180
</h4>
@@ -334,7 +334,7 @@ <h4 class="name" id=".parse">
334334

335335
<div class="container-source members">
336336
<code><a href="index.js.html">index.js</a></code>,
337-
<code><a href="index.js.html#line44">line 44</a></code>
337+
<code><a href="index.js.html#line43">line 43</a></code>
338338
</div>
339339

340340
</h4>
@@ -497,7 +497,7 @@ <h4 class="name" id=".stringify">
497497

498498
<div class="container-source members">
499499
<code><a href="index.js.html">index.js</a></code>,
500-
<code><a href="index.js.html#line15">line 15</a></code>
500+
<code><a href="index.js.html#line14">line 14</a></code>
501501
</div>
502502

503503
</h4>

docs/index.js.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ <h1><a href="index.html" class="link">QueryString</a></h1>
4747
<section>
4848
<article>
4949
<pre class="prettyprint source linenums"><code>"use strict";
50-
Object.defineProperty(exports, "__esModule", { value: true });
5150
/**
5251
* A small library for build query strings
5352
* @class
@@ -141,7 +140,7 @@ <h1><a href="index.html" class="link">QueryString</a></h1>
141140
return url.substring(queryStringPosition + 1);
142141
}
143142
}
144-
exports.default = QueryString;
143+
module.exports = QueryString;
145144
//# sourceMappingURL=index.js.map</code></pre>
146145
</article>
147146
</section>

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ class QueryString {
103103
}
104104
}
105105

106-
export default QueryString;
106+
module.exports = QueryString;

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.3.0",
44
"description": "A small library for build query strings",
55
"main": "dist/index.js",
6-
"types" : "dist/index.d.ts",
6+
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "tsc",
99
"docs": "jsdoc ./dist/index.js -d docs -c docs.json -R README.md",

0 commit comments

Comments
 (0)