Skip to content

Commit

Permalink
Merge pull request #17 from mileszim/bug-fixes
Browse files Browse the repository at this point in the history
Fix hyperlinks in readme; Fix require default bug; Fix missing function bug.
  • Loading branch information
mileszim authored May 2, 2018
2 parents f6955ab + 052bbc1 commit f370643
Show file tree
Hide file tree
Showing 9 changed files with 190 additions and 51 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ This module allows simple interaction with the WebPurify API within Node.js. For
* [imgCheck](#imgcheck)
* [imgStatus](#imgstatus)
* [imgAccount](#imgaccount)
* [aimImgCheck](#aimimgCheck)
* [aimImgAccount](#aimimgAccount)
* [hybridImgCheck](#hybridimgCheck)
* [aimImgCheck](#aimimgcheck)
* [aimImgAccount](#aimimgaccount)
* [hybridImgCheck](#hybridimgcheck)

# Install & Initialize #

Expand Down
183 changes: 148 additions & 35 deletions docs/ast/source/index.js.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "File",
"start": 0,
"end": 89,
"end": 91,
"loc": {
"start": {
"line": 1,
Expand All @@ -15,7 +15,7 @@
"program": {
"type": "Program",
"start": 0,
"end": 89,
"end": 91,
"loc": {
"start": {
"line": 1,
Expand Down Expand Up @@ -134,37 +134,101 @@
}
},
{
"type": "ExportDefaultDeclaration",
"type": "ExpressionStatement",
"start": 63,
"end": 88,
"end": 90,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 25
"column": 27
}
},
"declaration": {
"type": "Identifier",
"start": 78,
"end": 87,
"expression": {
"type": "AssignmentExpression",
"start": 63,
"end": 89,
"loc": {
"start": {
"line": 4,
"column": 15
"column": 0
},
"end": {
"line": 4,
"column": 24
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 63,
"end": 77,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 63,
"end": 69,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 6
},
"identifierName": "module"
},
"name": "module"
},
"property": {
"type": "Identifier",
"start": 70,
"end": 77,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 14
},
"identifierName": "exports"
},
"name": "exports"
},
"identifierName": "WebPurify"
"computed": false
},
"name": "WebPurify",
"leadingComments": [],
"trailingComments": []
"right": {
"type": "Identifier",
"start": 80,
"end": 89,
"loc": {
"start": {
"line": 4,
"column": 17
},
"end": {
"line": 4,
"column": 26
},
"identifierName": "WebPurify"
},
"name": "WebPurify"
}
}
}
],
Expand Down Expand Up @@ -388,19 +452,17 @@
},
{
"type": {
"label": "export",
"keyword": "export",
"label": "name",
"beforeExpr": false,
"startsExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
"binop": null
},
"value": "export",
"value": "module",
"start": 63,
"end": 69,
"loc": {
Expand All @@ -416,9 +478,8 @@
},
{
"type": {
"label": "default",
"keyword": "default",
"beforeExpr": true,
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
Expand All @@ -428,7 +489,32 @@
"binop": null,
"updateContext": null
},
"value": "default",
"start": 69,
"end": 70,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "exports",
"start": 70,
"end": 77,
"loc": {
Expand All @@ -442,6 +528,33 @@
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 78,
"end": 79,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 16
}
}
},
{
"type": {
"label": "name",
Expand All @@ -455,16 +568,16 @@
"binop": null
},
"value": "WebPurify",
"start": 78,
"end": 87,
"start": 80,
"end": 89,
"loc": {
"start": {
"line": 4,
"column": 15
"column": 17
},
"end": {
"line": 4,
"column": 24
"column": 26
}
}
},
Expand All @@ -481,16 +594,16 @@
"binop": null,
"updateContext": null
},
"start": 87,
"end": 88,
"start": 89,
"end": 90,
"loc": {
"start": {
"line": 4,
"column": 24
"column": 26
},
"end": {
"line": 4,
"column": 25
"column": 27
}
}
},
Expand All @@ -507,8 +620,8 @@
"binop": null,
"updateContext": null
},
"start": 89,
"end": 89,
"start": 91,
"end": 91,
"loc": {
"start": {
"line": 5,
Expand Down
2 changes: 1 addition & 1 deletion docs/file/src/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<pre class="source-code line-number raw-source-code"><code class="prettyprint linenums" data-ice="content">import &quot;babel-polyfill&quot;;

import WebPurify from &apos;./webpurify&apos;;
export default WebPurify;
module.exports = WebPurify;
</code></pre>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ <h5 id="image-moderation">Image Moderation</h5><ul>
<li><a href="#imgcheck">imgCheck</a></li>
<li><a href="#imgstatus">imgStatus</a></li>
<li><a href="#imgaccount">imgAccount</a></li>
<li><a href="#aimimgCheck">aimImgCheck</a></li>
<li><a href="#aimimgAccount">aimImgAccount</a></li>
<li><a href="#hybridimgCheck">hybridImgCheck</a></li>
<li><a href="#aimimgcheck">aimImgCheck</a></li>
<li><a href="#aimimgaccount">aimImgAccount</a></li>
<li><a href="#hybridimgcheck">hybridImgCheck</a></li>
</ul>
<h1 id="install--amp--initialize">Install &amp; Initialize</h1><p><code>npm install webpurify</code></p>
<p>To initialize:</p>
Expand Down
Loading

0 comments on commit f370643

Please sign in to comment.