diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/classes/_database_.database.html | 24 | ||||
-rw-r--r-- | docs/classes/_error_model_.naiveerror.html | 4 | ||||
-rw-r--r-- | docs/enums/_error_model_.naiveerrorcode.html | 4 | ||||
-rw-r--r-- | docs/interfaces/_context_model_.context.html | 6 | ||||
-rw-r--r-- | docs/interfaces/_database_model_.databaseinterface.html | 12 | ||||
-rw-r--r-- | docs/modules/_database_.html | 26 | ||||
-rw-r--r-- | docs/modules/_database_test_.html | 4 | ||||
-rw-r--r-- | docs/modules/_error_model_.html | 4 | ||||
-rw-r--r-- | docs/modules/_util_.html | 7 |
9 files changed, 53 insertions, 38 deletions
diff --git a/docs/classes/_database_.database.html b/docs/classes/_database_.database.html index bed297c..f0acbcf 100644 --- a/docs/classes/_database_.database.html +++ b/docs/classes/_database_.database.html @@ -141,7 +141,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L33">database.ts:33</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L40">database.ts:40</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> @@ -163,7 +163,7 @@ <div class="tsd-signature tsd-kind-icon">buff<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L33">database.ts:33</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L40">database.ts:40</a></li> </ul> </aside> </section> @@ -173,7 +173,7 @@ <div class="tsd-signature tsd-kind-icon">ctx<span class="tsd-signature-symbol">:</span> <a href="../interfaces/_context_model_.context.html" class="tsd-signature-type">Context</a></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L34">database.ts:34</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L41">database.ts:41</a></li> </ul> </aside> </section> @@ -191,7 +191,7 @@ <aside class="tsd-sources"> <p>Implementation of <a href="../interfaces/_database_model_.databaseinterface.html">DatabaseInterface</a>.<a href="../interfaces/_database_model_.databaseinterface.html#flush">flush</a></p> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L71">database.ts:71</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L78">database.ts:78</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4> @@ -208,7 +208,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L137">database.ts:137</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L144">database.ts:144</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4> @@ -226,7 +226,7 @@ <aside class="tsd-sources"> <p>Implementation of <a href="../interfaces/_database_model_.databaseinterface.html">DatabaseInterface</a>.<a href="../interfaces/_database_model_.databaseinterface.html#init">init</a></p> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L36">database.ts:36</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L43">database.ts:43</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4> @@ -244,7 +244,7 @@ <aside class="tsd-sources"> <p>Implementation of <a href="../interfaces/_database_model_.databaseinterface.html">DatabaseInterface</a>.<a href="../interfaces/_database_model_.databaseinterface.html#read">read</a></p> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L49">database.ts:49</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L56">database.ts:56</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> @@ -268,7 +268,7 @@ <aside class="tsd-sources"> <p>Implementation of <a href="../interfaces/_database_model_.databaseinterface.html">DatabaseInterface</a>.<a href="../interfaces/_database_model_.databaseinterface.html#remove">remove</a></p> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L67">database.ts:67</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L74">database.ts:74</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> @@ -291,7 +291,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L92">database.ts:92</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L99">database.ts:99</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> @@ -332,7 +332,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L132">database.ts:132</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L139">database.ts:139</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> @@ -359,7 +359,7 @@ <aside class="tsd-sources"> <p>Implementation of <a href="../interfaces/_database_model_.databaseinterface.html">DatabaseInterface</a>.<a href="../interfaces/_database_model_.databaseinterface.html#tostring">toString</a></p> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L76">database.ts:76</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L83">database.ts:83</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> @@ -376,7 +376,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L56">database.ts:56</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L63">database.ts:63</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> diff --git a/docs/classes/_error_model_.naiveerror.html b/docs/classes/_error_model_.naiveerror.html index 0d7d55d..feca681 100644 --- a/docs/classes/_error_model_.naiveerror.html +++ b/docs/classes/_error_model_.naiveerror.html @@ -117,7 +117,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/error.model.ts#L18">error.model.ts:18</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/error.model.ts#L18">error.model.ts:18</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> @@ -139,7 +139,7 @@ <div class="tsd-signature tsd-kind-icon">code<span class="tsd-signature-symbol">:</span> <a href="../enums/_error_model_.naiveerrorcode.html" class="tsd-signature-type">NaiveErrorCode</a></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/error.model.ts#L19">error.model.ts:19</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/error.model.ts#L19">error.model.ts:19</a></li> </ul> </aside> </section> diff --git a/docs/enums/_error_model_.naiveerrorcode.html b/docs/enums/_error_model_.naiveerrorcode.html index 05f5879..fb1c051 100644 --- a/docs/enums/_error_model_.naiveerrorcode.html +++ b/docs/enums/_error_model_.naiveerrorcode.html @@ -91,7 +91,7 @@ <div class="tsd-signature tsd-kind-icon">OUT_<wbr>OF_<wbr>SPACE<span class="tsd-signature-symbol">:</span> </div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/error.model.ts#L3">error.model.ts:3</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/error.model.ts#L3">error.model.ts:3</a></li> </ul> </aside> </section> @@ -101,7 +101,7 @@ <div class="tsd-signature tsd-kind-icon">UNCAUGHT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = 0</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/error.model.ts#L2">error.model.ts:2</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/error.model.ts#L2">error.model.ts:2</a></li> </ul> </aside> </section> diff --git a/docs/interfaces/_context_model_.context.html b/docs/interfaces/_context_model_.context.html index f48d8bc..d72aa8a 100644 --- a/docs/interfaces/_context_model_.context.html +++ b/docs/interfaces/_context_model_.context.html @@ -100,7 +100,7 @@ <div class="tsd-signature tsd-kind-icon">cache<wbr>Path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/context.model.ts#L3">context.model.ts:3</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/context.model.ts#L3">context.model.ts:3</a></li> </ul> </aside> </section> @@ -110,7 +110,7 @@ <div class="tsd-signature tsd-kind-icon">logger<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/context.model.ts#L2">context.model.ts:2</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/context.model.ts#L2">context.model.ts:2</a></li> </ul> </aside> <div class="tsd-type-declaration"> @@ -141,7 +141,7 @@ <div class="tsd-signature tsd-kind-icon">max<wbr>DbSizeMB<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/context.model.ts#L4">context.model.ts:4</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/context.model.ts#L4">context.model.ts:4</a></li> </ul> </aside> </section> diff --git a/docs/interfaces/_database_model_.databaseinterface.html b/docs/interfaces/_database_model_.databaseinterface.html index 5d571e7..031c8ab 100644 --- a/docs/interfaces/_database_model_.databaseinterface.html +++ b/docs/interfaces/_database_model_.databaseinterface.html @@ -113,7 +113,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.model.ts#L40">database.model.ts:40</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.model.ts#L40">database.model.ts:40</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> @@ -135,7 +135,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.model.ts#L10">database.model.ts:10</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.model.ts#L10">database.model.ts:10</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> @@ -161,7 +161,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.model.ts#L19">database.model.ts:19</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.model.ts#L19">database.model.ts:19</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> @@ -192,7 +192,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.model.ts#L35">database.model.ts:35</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.model.ts#L35">database.model.ts:35</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> @@ -220,7 +220,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.model.ts#L45">database.model.ts:45</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.model.ts#L45">database.model.ts:45</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> @@ -242,7 +242,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.model.ts#L30">database.model.ts:30</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.model.ts#L30">database.model.ts:30</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> diff --git a/docs/modules/_database_.html b/docs/modules/_database_.html index 7c81c91..5b0ed26 100644 --- a/docs/modules/_database_.html +++ b/docs/modules/_database_.html @@ -107,7 +107,7 @@ <div class="tsd-signature tsd-kind-icon">read<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__promisify__</span><span class="tsd-signature-symbol"> = promisify(readFile)</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L14">database.ts:14</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L21">database.ts:21</a></li> </ul> </aside> </section> @@ -117,7 +117,7 @@ <div class="tsd-signature tsd-kind-icon">write<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__promisify__</span><span class="tsd-signature-symbol"> = promisify(writeFile)</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L13">database.ts:13</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L20">database.ts:20</a></li> </ul> </aside> </section> @@ -134,9 +134,14 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L11">database.ts:11</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L18">database.ts:18</a></li> </ul> </aside> + <div class="tsd-comment tsd-typography"> + <div class="lead"> + <p>Identify if a path is a root node</p> + </div> + </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> @@ -157,9 +162,14 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L10">database.ts:10</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L13">database.ts:13</a></li> </ul> </aside> + <div class="tsd-comment tsd-typography"> + <div class="lead"> + <p>Split path using "/" as a delimiter</p> + </div> + </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> @@ -179,7 +189,7 @@ <div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>CTX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L16">database.ts:16</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L23">database.ts:23</a></li> </ul> </aside> <section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal"> @@ -188,7 +198,7 @@ <div class="tsd-signature tsd-kind-icon">cache<wbr>Path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `${__dirname}/db.json`</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L18">database.ts:18</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L25">database.ts:25</a></li> </ul> </aside> </section> @@ -198,7 +208,7 @@ <div class="tsd-signature tsd-kind-icon">logger<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">log</span><span class="tsd-signature-symbol"> = console.log</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L17">database.ts:17</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L24">database.ts:24</a></li> </ul> </aside> </section> @@ -208,7 +218,7 @@ <div class="tsd-signature tsd-kind-icon">max<wbr>DbSizeMB<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 6</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.ts#L19">database.ts:19</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.ts#L26">database.ts:26</a></li> </ul> </aside> </section> diff --git a/docs/modules/_database_test_.html b/docs/modules/_database_test_.html index bb375db..77a7bbe 100644 --- a/docs/modules/_database_test_.html +++ b/docs/modules/_database_test_.html @@ -93,7 +93,7 @@ <div class="tsd-signature tsd-kind-icon">max<wbr>DbSizeMB<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">0.1</span><span class="tsd-signature-symbol"> = 0.1</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.test.ts#L7">database.test.ts:7</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.test.ts#L7">database.test.ts:7</a></li> </ul> </aside> </section> @@ -110,7 +110,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/database.test.ts#L4">database.test.ts:4</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/database.test.ts#L4">database.test.ts:4</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> diff --git a/docs/modules/_error_model_.html b/docs/modules/_error_model_.html index a84cb4e..01b7a8d 100644 --- a/docs/modules/_error_model_.html +++ b/docs/modules/_error_model_.html @@ -105,7 +105,7 @@ <div class="tsd-signature tsd-kind-icon">e<span class="tsd-signature-symbol">:</span> <a href="../enums/_error_model_.naiveerrorcode.html" class="tsd-signature-type">NaiveErrorCode</a><span class="tsd-signature-symbol"> = NaiveErrorCode</span></div> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/error.model.ts#L6">error.model.ts:6</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/error.model.ts#L6">error.model.ts:6</a></li> </ul> </aside> </section> @@ -122,7 +122,7 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/error.model.ts#L8">error.model.ts:8</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/error.model.ts#L8">error.model.ts:8</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> diff --git a/docs/modules/_util_.html b/docs/modules/_util_.html index 2a14f68..6ca5f8a 100644 --- a/docs/modules/_util_.html +++ b/docs/modules/_util_.html @@ -91,9 +91,14 @@ <li class="tsd-description"> <aside class="tsd-sources"> <ul> - <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d6111be/src/util.ts#L1">util.ts:1</a></li> + <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/d590774/src/util.ts#L4">util.ts:4</a></li> </ul> </aside> + <div class="tsd-comment tsd-typography"> + <div class="lead"> + <p>Get the last item in t</p> + </div> + </div> <h4 class="tsd-type-parameters-title">Type parameters</h4> <ul class="tsd-type-parameters"> <li> |