From e807f7590d4fbdb8a1c6e966122973d01543c8ed Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Sun, 20 Jan 2019 15:55:21 -0800 Subject: Update docs for release 1.4.0 --- core/docs/assets/js/search.js | 2 +- .../docs/classes/_core_src_database_.database.html | 711 +++++++++++++++++++++ core/docs/classes/_database_.database.html | 705 -------------------- core/docs/classes/_error_model_.naiveerror.html | 330 ---------- .../docs/classes/_lib_error_model_.naiveerror.html | 336 ++++++++++ core/docs/enums/_error_model_.naiveerrorcode.html | 236 ------- .../enums/_lib_error_model_.naiveerrorcode.html | 242 +++++++ core/docs/globals.html | 44 +- core/docs/index.html | 30 +- .../_change_handlers_model_.changehandlers.html | 220 ------- core/docs/interfaces/_context_model_.context.html | 288 --------- ..._src_change_handlers_model_.changehandlers.html | 226 +++++++ .../_core_src_context_model_.context.html | 294 +++++++++ ...core_src_database_model_.databaseinterface.html | 472 ++++++++++++++ .../_database_model_.databaseinterface.html | 466 -------------- core/docs/modules/_change_handlers_model_.html | 188 ------ core/docs/modules/_context_model_.html | 188 ------ .../modules/_core_src_change_handlers_model_.html | 194 ++++++ core/docs/modules/_core_src_context_model_.html | 194 ++++++ core/docs/modules/_core_src_database_.html | 391 +++++++++++ core/docs/modules/_core_src_database_model_.html | 194 ++++++ core/docs/modules/_core_src_database_test_.html | 242 +++++++ core/docs/modules/_database_.html | 385 ----------- core/docs/modules/_database_model_.html | 188 ------ core/docs/modules/_database_test_.html | 236 ------- core/docs/modules/_error_model_.html | 257 -------- core/docs/modules/_lib_error_model_.html | 263 ++++++++ core/docs/modules/_lib_util_.html | 263 ++++++++ core/docs/modules/_util_.html | 257 -------- 29 files changed, 4066 insertions(+), 3976 deletions(-) create mode 100644 core/docs/classes/_core_src_database_.database.html delete mode 100644 core/docs/classes/_database_.database.html delete mode 100644 core/docs/classes/_error_model_.naiveerror.html create mode 100644 core/docs/classes/_lib_error_model_.naiveerror.html delete mode 100644 core/docs/enums/_error_model_.naiveerrorcode.html create mode 100644 core/docs/enums/_lib_error_model_.naiveerrorcode.html delete mode 100644 core/docs/interfaces/_change_handlers_model_.changehandlers.html delete mode 100644 core/docs/interfaces/_context_model_.context.html create mode 100644 core/docs/interfaces/_core_src_change_handlers_model_.changehandlers.html create mode 100644 core/docs/interfaces/_core_src_context_model_.context.html create mode 100644 core/docs/interfaces/_core_src_database_model_.databaseinterface.html delete mode 100644 core/docs/interfaces/_database_model_.databaseinterface.html delete mode 100644 core/docs/modules/_change_handlers_model_.html delete mode 100644 core/docs/modules/_context_model_.html create mode 100644 core/docs/modules/_core_src_change_handlers_model_.html create mode 100644 core/docs/modules/_core_src_context_model_.html create mode 100644 core/docs/modules/_core_src_database_.html create mode 100644 core/docs/modules/_core_src_database_model_.html create mode 100644 core/docs/modules/_core_src_database_test_.html delete mode 100644 core/docs/modules/_database_.html delete mode 100644 core/docs/modules/_database_model_.html delete mode 100644 core/docs/modules/_database_test_.html delete mode 100644 core/docs/modules/_error_model_.html create mode 100644 core/docs/modules/_lib_error_model_.html create mode 100644 core/docs/modules/_lib_util_.html delete mode 100644 core/docs/modules/_util_.html diff --git a/core/docs/assets/js/search.js b/core/docs/assets/js/search.js index 04f7e60..e0ec3ce 100644 --- a/core/docs/assets/js/search.js +++ b/core/docs/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"1":"External module","4":"Enumeration","16":"Enumeration member","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal"},"rows":[{"id":0,"kind":1,"name":"\"change-handlers.model\"","url":"modules/_change_handlers_model_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"ChangeHandlers","url":"interfaces/_change_handlers_model_.changehandlers.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"change-handlers.model\""},{"id":2,"kind":1,"name":"\"context.model\"","url":"modules/_context_model_.html","classes":"tsd-kind-external-module"},{"id":3,"kind":256,"name":"Context","url":"interfaces/_context_model_.context.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"context.model\""},{"id":4,"kind":1024,"name":"logger","url":"interfaces/_context_model_.context.html#logger","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"context.model\".Context"},{"id":5,"kind":65536,"name":"__type","url":"interfaces/_context_model_.context.html#logger.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"\"context.model\".Context.logger"},{"id":6,"kind":1024,"name":"cachePath","url":"interfaces/_context_model_.context.html#cachepath","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"context.model\".Context"},{"id":7,"kind":1024,"name":"maxDbSizeMB","url":"interfaces/_context_model_.context.html#maxdbsizemb","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"context.model\".Context"},{"id":8,"kind":1,"name":"\"database.model\"","url":"modules/_database_model_.html","classes":"tsd-kind-external-module"},{"id":9,"kind":256,"name":"DatabaseInterface","url":"interfaces/_database_model_.databaseinterface.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"database.model\""},{"id":10,"kind":2048,"name":"init","url":"interfaces/_database_model_.databaseinterface.html#init","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"database.model\".DatabaseInterface"},{"id":11,"kind":2048,"name":"read","url":"interfaces/_database_model_.databaseinterface.html#read","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"database.model\".DatabaseInterface"},{"id":12,"kind":2048,"name":"subscribe","url":"interfaces/_database_model_.databaseinterface.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"database.model\".DatabaseInterface"},{"id":13,"kind":2048,"name":"write","url":"interfaces/_database_model_.databaseinterface.html#write","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"database.model\".DatabaseInterface"},{"id":14,"kind":2048,"name":"remove","url":"interfaces/_database_model_.databaseinterface.html#remove","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"database.model\".DatabaseInterface"},{"id":15,"kind":2048,"name":"flush","url":"interfaces/_database_model_.databaseinterface.html#flush","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"database.model\".DatabaseInterface"},{"id":16,"kind":2048,"name":"toString","url":"interfaces/_database_model_.databaseinterface.html#tostring","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"database.model\".DatabaseInterface"},{"id":17,"kind":1,"name":"\"error.model\"","url":"modules/_error_model_.html","classes":"tsd-kind-external-module"},{"id":18,"kind":4,"name":"NaiveErrorCode","url":"enums/_error_model_.naiveerrorcode.html","classes":"tsd-kind-enum tsd-parent-kind-external-module","parent":"\"error.model\""},{"id":19,"kind":16,"name":"UNCAUGHT","url":"enums/_error_model_.naiveerrorcode.html#uncaught","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"\"error.model\".NaiveErrorCode"},{"id":20,"kind":16,"name":"OUT_OF_SPACE","url":"enums/_error_model_.naiveerrorcode.html#out_of_space","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"\"error.model\".NaiveErrorCode"},{"id":21,"kind":128,"name":"NaiveError","url":"classes/_error_model_.naiveerror.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"error.model\""},{"id":22,"kind":512,"name":"constructor","url":"classes/_error_model_.naiveerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"error.model\".NaiveError"},{"id":23,"kind":1024,"name":"code","url":"classes/_error_model_.naiveerror.html#code","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"error.model\".NaiveError"},{"id":24,"kind":1024,"name":"name","url":"classes/_error_model_.naiveerror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"\"error.model\".NaiveError"},{"id":25,"kind":1024,"name":"message","url":"classes/_error_model_.naiveerror.html#message","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"\"error.model\".NaiveError"},{"id":26,"kind":1024,"name":"stack","url":"classes/_error_model_.naiveerror.html#stack","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"\"error.model\".NaiveError"},{"id":27,"kind":1024,"name":"Error","url":"classes/_error_model_.naiveerror.html#error","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"\"error.model\".NaiveError"},{"id":28,"kind":32,"name":"e","url":"modules/_error_model_.html#e","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"error.model\""},{"id":29,"kind":64,"name":"lookupMsg","url":"modules/_error_model_.html#lookupmsg","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"error.model\""},{"id":30,"kind":1,"name":"\"util\"","url":"modules/_util_.html","classes":"tsd-kind-external-module"},{"id":31,"kind":64,"name":"last","url":"modules/_util_.html#last","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"util\""},{"id":32,"kind":64,"name":"getKey","url":"modules/_util_.html#getkey","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"util\""},{"id":33,"kind":1,"name":"\"database\"","url":"modules/_database_.html","classes":"tsd-kind-external-module"},{"id":34,"kind":128,"name":"Database","url":"classes/_database_.database.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"database\""},{"id":35,"kind":1024,"name":"buff","url":"classes/_database_.database.html#buff","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"database\".Database"},{"id":36,"kind":1024,"name":"changeHandlers","url":"classes/_database_.database.html#changehandlers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"database\".Database"},{"id":37,"kind":512,"name":"constructor","url":"classes/_database_.database.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"database\".Database"},{"id":38,"kind":1024,"name":"ctx","url":"classes/_database_.database.html#ctx","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"database\".Database"},{"id":39,"kind":2048,"name":"init","url":"classes/_database_.database.html#init","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"database\".Database"},{"id":40,"kind":2048,"name":"read","url":"classes/_database_.database.html#read","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"database\".Database"},{"id":41,"kind":2048,"name":"write","url":"classes/_database_.database.html#write","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"database\".Database"},{"id":42,"kind":2048,"name":"runChangeHandlers","url":"classes/_database_.database.html#runchangehandlers","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"database\".Database"},{"id":43,"kind":2048,"name":"subscribe","url":"classes/_database_.database.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"database\".Database"},{"id":44,"kind":2048,"name":"unsubscribe","url":"classes/_database_.database.html#unsubscribe","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"database\".Database"},{"id":45,"kind":2048,"name":"remove","url":"classes/_database_.database.html#remove","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"database\".Database"},{"id":46,"kind":2048,"name":"flush","url":"classes/_database_.database.html#flush","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"database\".Database"},{"id":47,"kind":2048,"name":"toString","url":"classes/_database_.database.html#tostring","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"database\".Database"},{"id":48,"kind":2048,"name":"resolve","url":"classes/_database_.database.html#resolve","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"database\".Database"},{"id":49,"kind":2048,"name":"serialize","url":"classes/_database_.database.html#serialize","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"database\".Database"},{"id":50,"kind":2048,"name":"hasSpace","url":"classes/_database_.database.html#hasspace","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"database\".Database"},{"id":51,"kind":64,"name":"splitPath","url":"modules/_database_.html#splitpath","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"database\""},{"id":52,"kind":64,"name":"isRootNode","url":"modules/_database_.html#isrootnode","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"database\""},{"id":53,"kind":64,"name":"isChildOrMatch","url":"modules/_database_.html#ischildormatch","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"database\""},{"id":54,"kind":32,"name":"write","url":"modules/_database_.html#write","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"database\""},{"id":55,"kind":32,"name":"read","url":"modules/_database_.html#read","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"database\""},{"id":56,"kind":2097152,"name":"DEFAULT_CTX","url":"modules/_database_.html#default_ctx","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"database\""},{"id":57,"kind":32,"name":"logger","url":"modules/_database_.html#default_ctx.logger","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"database\".DEFAULT_CTX"},{"id":58,"kind":32,"name":"cachePath","url":"modules/_database_.html#default_ctx.cachepath","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"database\".DEFAULT_CTX"},{"id":59,"kind":32,"name":"maxDbSizeMB","url":"modules/_database_.html#default_ctx.maxdbsizemb","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"database\".DEFAULT_CTX"},{"id":60,"kind":1,"name":"\"database.test\"","url":"modules/_database_test_.html","classes":"tsd-kind-external-module"},{"id":61,"kind":64,"name":"generateString","url":"modules/_database_test_.html#generatestring","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"database.test\""},{"id":62,"kind":32,"name":"maxDbSizeMB","url":"modules/_database_test_.html#maxdbsizemb","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"database.test\""}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal"},"rows":[{"id":0,"kind":1,"name":"\"core/src/change-handlers.model\"","url":"modules/_core_src_change_handlers_model_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"ChangeHandlers","url":"interfaces/_core_src_change_handlers_model_.changehandlers.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"core/src/change-handlers.model\""},{"id":2,"kind":1,"name":"\"core/src/context.model\"","url":"modules/_core_src_context_model_.html","classes":"tsd-kind-external-module"},{"id":3,"kind":256,"name":"Context","url":"interfaces/_core_src_context_model_.context.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"core/src/context.model\""},{"id":4,"kind":1024,"name":"logger","url":"interfaces/_core_src_context_model_.context.html#logger","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"core/src/context.model\".Context"},{"id":5,"kind":65536,"name":"__type","url":"interfaces/_core_src_context_model_.context.html#logger.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"\"core/src/context.model\".Context.logger"},{"id":6,"kind":1024,"name":"cachePath","url":"interfaces/_core_src_context_model_.context.html#cachepath","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"core/src/context.model\".Context"},{"id":7,"kind":1024,"name":"maxDbSizeMB","url":"interfaces/_core_src_context_model_.context.html#maxdbsizemb","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"core/src/context.model\".Context"},{"id":8,"kind":1,"name":"\"core/src/database.model\"","url":"modules/_core_src_database_model_.html","classes":"tsd-kind-external-module"},{"id":9,"kind":256,"name":"DatabaseInterface","url":"interfaces/_core_src_database_model_.databaseinterface.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"core/src/database.model\""},{"id":10,"kind":2048,"name":"init","url":"interfaces/_core_src_database_model_.databaseinterface.html#init","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"core/src/database.model\".DatabaseInterface"},{"id":11,"kind":2048,"name":"read","url":"interfaces/_core_src_database_model_.databaseinterface.html#read","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"core/src/database.model\".DatabaseInterface"},{"id":12,"kind":2048,"name":"subscribe","url":"interfaces/_core_src_database_model_.databaseinterface.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"core/src/database.model\".DatabaseInterface"},{"id":13,"kind":2048,"name":"write","url":"interfaces/_core_src_database_model_.databaseinterface.html#write","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"core/src/database.model\".DatabaseInterface"},{"id":14,"kind":2048,"name":"remove","url":"interfaces/_core_src_database_model_.databaseinterface.html#remove","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"core/src/database.model\".DatabaseInterface"},{"id":15,"kind":2048,"name":"flush","url":"interfaces/_core_src_database_model_.databaseinterface.html#flush","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"core/src/database.model\".DatabaseInterface"},{"id":16,"kind":2048,"name":"toString","url":"interfaces/_core_src_database_model_.databaseinterface.html#tostring","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"core/src/database.model\".DatabaseInterface"},{"id":17,"kind":1,"name":"\"core/src/database\"","url":"modules/_core_src_database_.html","classes":"tsd-kind-external-module"},{"id":18,"kind":128,"name":"Database","url":"classes/_core_src_database_.database.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"core/src/database\""},{"id":19,"kind":1024,"name":"buff","url":"classes/_core_src_database_.database.html#buff","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"core/src/database\".Database"},{"id":20,"kind":1024,"name":"changeHandlers","url":"classes/_core_src_database_.database.html#changehandlers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"core/src/database\".Database"},{"id":21,"kind":512,"name":"constructor","url":"classes/_core_src_database_.database.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"core/src/database\".Database"},{"id":22,"kind":1024,"name":"ctx","url":"classes/_core_src_database_.database.html#ctx","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"core/src/database\".Database"},{"id":23,"kind":2048,"name":"init","url":"classes/_core_src_database_.database.html#init","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"core/src/database\".Database"},{"id":24,"kind":2048,"name":"read","url":"classes/_core_src_database_.database.html#read","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"core/src/database\".Database"},{"id":25,"kind":2048,"name":"write","url":"classes/_core_src_database_.database.html#write","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"core/src/database\".Database"},{"id":26,"kind":2048,"name":"runChangeHandlers","url":"classes/_core_src_database_.database.html#runchangehandlers","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"core/src/database\".Database"},{"id":27,"kind":2048,"name":"subscribe","url":"classes/_core_src_database_.database.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"core/src/database\".Database"},{"id":28,"kind":2048,"name":"unsubscribe","url":"classes/_core_src_database_.database.html#unsubscribe","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"core/src/database\".Database"},{"id":29,"kind":2048,"name":"remove","url":"classes/_core_src_database_.database.html#remove","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"core/src/database\".Database"},{"id":30,"kind":2048,"name":"flush","url":"classes/_core_src_database_.database.html#flush","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"core/src/database\".Database"},{"id":31,"kind":2048,"name":"toString","url":"classes/_core_src_database_.database.html#tostring","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"core/src/database\".Database"},{"id":32,"kind":2048,"name":"resolve","url":"classes/_core_src_database_.database.html#resolve","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"core/src/database\".Database"},{"id":33,"kind":2048,"name":"serialize","url":"classes/_core_src_database_.database.html#serialize","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"core/src/database\".Database"},{"id":34,"kind":2048,"name":"hasSpace","url":"classes/_core_src_database_.database.html#hasspace","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"core/src/database\".Database"},{"id":35,"kind":64,"name":"splitPath","url":"modules/_core_src_database_.html#splitpath","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"core/src/database\""},{"id":36,"kind":64,"name":"isRootNode","url":"modules/_core_src_database_.html#isrootnode","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"core/src/database\""},{"id":37,"kind":64,"name":"isChildOrMatch","url":"modules/_core_src_database_.html#ischildormatch","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"core/src/database\""},{"id":38,"kind":32,"name":"write","url":"modules/_core_src_database_.html#write","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"core/src/database\""},{"id":39,"kind":32,"name":"read","url":"modules/_core_src_database_.html#read","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"core/src/database\""},{"id":40,"kind":2097152,"name":"DEFAULT_CTX","url":"modules/_core_src_database_.html#default_ctx","classes":"tsd-kind-object-literal tsd-parent-kind-external-module","parent":"\"core/src/database\""},{"id":41,"kind":32,"name":"logger","url":"modules/_core_src_database_.html#default_ctx.logger","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"core/src/database\".DEFAULT_CTX"},{"id":42,"kind":32,"name":"cachePath","url":"modules/_core_src_database_.html#default_ctx.cachepath","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"core/src/database\".DEFAULT_CTX"},{"id":43,"kind":32,"name":"maxDbSizeMB","url":"modules/_core_src_database_.html#default_ctx.maxdbsizemb","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"core/src/database\".DEFAULT_CTX"},{"id":44,"kind":1,"name":"\"core/src/database.test\"","url":"modules/_core_src_database_test_.html","classes":"tsd-kind-external-module"},{"id":45,"kind":64,"name":"generateString","url":"modules/_core_src_database_test_.html#generatestring","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"core/src/database.test\""},{"id":46,"kind":32,"name":"maxDbSizeMB","url":"modules/_core_src_database_test_.html#maxdbsizemb","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"core/src/database.test\""}]}; \ No newline at end of file diff --git a/core/docs/classes/_core_src_database_.database.html b/core/docs/classes/_core_src_database_.database.html new file mode 100644 index 0000000..0836284 --- /dev/null +++ b/core/docs/classes/_core_src_database_.database.html @@ -0,0 +1,711 @@ + + + + + + Database | @nvandoorn/naive-core + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Database

+
+
+
+
+
+
+
+
+
+

Implementation of NoSQL DB that uses paths and objects.

+
+

See DatabaseInterface for docs on public API

+

Uses a plain object as a buffer and reads/writes to a + plain JSON file. A better implementation could be backed + by somethig a little nicer and not hold the buffer + in memory

+
+
+
+

Hierarchy

+
    +
  • + Database +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private buff

+
buff: any
+ +
+
+

In memory buffer to read/write data

+
+
+
+
+ +

Private changeHandlers

+
changeHandlers: ChangeHandlers
+ +
+
+

An array of callback functions that are alerted + when the database changes (mostly want to use this + for some type of pubsub functionality on-top)

+
+
+
+
+ +

Private ctx

+
ctx: Context
+ +
+
+
+

Methods

+
+ +

flush

+
    +
  • flush(): Promise<void>
  • +
+ +
+
+ +

Private hasSpace

+
    +
  • hasSpace(): boolean
  • +
+ +
+
+ +

init

+
    +
  • init(): Promise<void>
  • +
+ +
+
+ +

read

+
    +
  • read(path: string): Promise<Object>
  • +
+ +
+
+ +

remove

+
    +
  • remove(path: string): Promise<void>
  • +
+ +
+
+ +

Private resolve

+
    +
  • resolve(pathParts: string[], isRead?: boolean, level?: number): any
  • +
+
    +
  • + +
    +
    +

    Resolve the object located at path.

    +
    +

    If isRead == true, no new nodes will + be created, and the function will return + null if a null node is encountered on the path. + Else, we create each node on the path.

    +

    Level is used to determine how deep + to recurse on path. Callers interested in + writing may wish to stop higher up the tree.

    +
    +

    Parameters

    +
      +
    • +
      pathParts: string[]
      +
    • +
    • +
      Default value isRead: boolean = true
      +
    • +
    • +
      Default value level: number = 0
      +
    • +
    +

    Returns any

    +
  • +
+
+
+ +

Private runChangeHandlers

+
    +
  • runChangeHandlers(path: string, change: any): Promise<void>
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      path: string
      +
    • +
    • +
      change: any
      +
    • +
    +

    Returns Promise<void>

    +
  • +
+
+
+ +

Private serialize

+
    +
  • serialize(): Promise<void>
  • +
+
    +
  • + +
    +
    +

    Serialize the current buffer + into a plain file.

    +
    +

    Change the path by injecting custom + Context

    +

    Throws OUT_OF_SPACE

    +
    +

    Returns Promise<void>

    +
  • +
+
+
+ +

subscribe

+
    +
  • subscribe(path: string, callback: function): function
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      path: string
      +
    • +
    • +
      callback: function
      +
        +
      • +
          +
        • (e: any): Promise<any>
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            e: any
            +
          • +
          +

          Returns Promise<any>

          +
        • +
        +
      • +
      +
    • +
    +

    Returns function

    +
      +
    • +
        +
      • (): any
      • +
      +
        +
      • +

        Returns any

        +
      • +
      +
    • +
    +
  • +
+
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

Private unsubscribe

+
    +
  • unsubscribe(key: string): void
  • +
+ +
+
+ +

write

+
    +
  • write(path: string, toWrite: any): Promise<void>
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      path: string
      +
    • +
    • +
      toWrite: any
      +
    • +
    +

    Returns Promise<void>

    +
  • +
+
+
+
+ +
+
+ +
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/core/docs/classes/_database_.database.html b/core/docs/classes/_database_.database.html deleted file mode 100644 index e989c40..0000000 --- a/core/docs/classes/_database_.database.html +++ /dev/null @@ -1,705 +0,0 @@ - - - - - - Database | naive - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - - - -
-
- Menu -
-
-
-
-
-
- -

Class Database

-
-
-
-
-
-
-
-
-
-

Implementation of NoSQL DB that uses paths and objects.

-
-

See DatabaseInterface for docs on public API

-

Uses a plain object as a buffer and reads/writes to a - plain JSON file. A better implementation could be backed - by somethig a little nicer and not hold the buffer - in memory

-
-
-
-

Hierarchy

-
    -
  • - Database -
  • -
-
-
-

Implements

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Private buff

-
buff: any
- -
-
-

In memory buffer to read/write data

-
-
-
-
- -

Private changeHandlers

-
changeHandlers: ChangeHandlers
- -
-
-

An array of callback functions that are alerted - when the database changes (mostly want to use this - for some type of pubsub functionality on-top)

-
-
-
-
- -

Private ctx

-
ctx: Context
- -
-
-
-

Methods

-
- -

flush

-
    -
  • flush(): Promise<void>
  • -
- -
-
- -

Private hasSpace

-
    -
  • hasSpace(): boolean
  • -
- -
-
- -

init

-
    -
  • init(): Promise<void>
  • -
- -
-
- -

read

-
    -
  • read(path: string): Promise<Object>
  • -
- -
-
- -

remove

-
    -
  • remove(path: string): Promise<void>
  • -
- -
-
- -

Private resolve

-
    -
  • resolve(pathParts: string[], isRead?: boolean, level?: number): any
  • -
-
    -
  • - -
    -
    -

    Resolve the object located at path.

    -
    -

    If isRead == true, no new nodes will - be created, and the function will return - null if a null node is encountered on the path. - Else, we create each node on the path.

    -

    Level is used to determine how deep - to recurse on path. Callers interested in - writing may wish to stop higher up the tree.

    -
    -

    Parameters

    -
      -
    • -
      pathParts: string[]
      -
    • -
    • -
      Default value isRead: boolean = true
      -
    • -
    • -
      Default value level: number = 0
      -
    • -
    -

    Returns any

    -
  • -
-
-
- -

Private runChangeHandlers

-
    -
  • runChangeHandlers(path: string, change: any): Promise<void>
  • -
-
    -
  • - -

    Parameters

    -
      -
    • -
      path: string
      -
    • -
    • -
      change: any
      -
    • -
    -

    Returns Promise<void>

    -
  • -
-
-
- -

Private serialize

-
    -
  • serialize(): Promise<void>
  • -
-
    -
  • - -
    -
    -

    Serialize the current buffer - into a plain file.

    -
    -

    Change the path by injecting custom - Context

    -

    Throws OUT_OF_SPACE

    -
    -

    Returns Promise<void>

    -
  • -
-
-
- -

subscribe

-
    -
  • subscribe(path: string, callback: function): function
  • -
-
    -
  • - -

    Parameters

    -
      -
    • -
      path: string
      -
    • -
    • -
      callback: function
      -
        -
      • -
          -
        • (e: any): Promise<any>
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            e: any
            -
          • -
          -

          Returns Promise<any>

          -
        • -
        -
      • -
      -
    • -
    -

    Returns function

    -
      -
    • -
        -
      • (): any
      • -
      -
        -
      • -

        Returns any

        -
      • -
      -
    • -
    -
  • -
-
-
- -

toString

-
    -
  • toString(): string
  • -
- -
-
- -

Private unsubscribe

-
    -
  • unsubscribe(key: string): void
  • -
-
    -
  • - -

    Parameters

    -
      -
    • -
      key: string
      -
    • -
    -

    Returns void

    -
  • -
-
-
- -

write

-
    -
  • write(path: string, toWrite: any): Promise<void>
  • -
-
    -
  • - -

    Parameters

    -
      -
    • -
      path: string
      -
    • -
    • -
      toWrite: any
      -
    • -
    -

    Returns Promise<void>

    -
  • -
-
-
-
- -
-
- -
-

Generated using TypeDoc

-
-
- - - - \ No newline at end of file diff --git a/core/docs/classes/_error_model_.naiveerror.html b/core/docs/classes/_error_model_.naiveerror.html deleted file mode 100644 index fa29e7d..0000000 --- a/core/docs/classes/_error_model_.naiveerror.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - - NaiveError | naive - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - - - -
-
- Menu -
-
-
-
-
-
- -

Class NaiveError

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - Error -
      -
    • - NaiveError -
    • -
    -
  • -
-
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

code

- - -
-
- -

message

-
message: string
- -
-
- -

name

-
name: string
- -
-
- -

Optional stack

-
stack: undefined | string
- -
-
- -

Static Error

-
Error: ErrorConstructor
- -
-
-
- -
-
- -
-

Generated using TypeDoc

-
-
- - - - \ No newline at end of file diff --git a/core/docs/classes/_lib_error_model_.naiveerror.html b/core/docs/classes/_lib_error_model_.naiveerror.html new file mode 100644 index 0000000..79b85c3 --- /dev/null +++ b/core/docs/classes/_lib_error_model_.naiveerror.html @@ -0,0 +1,336 @@ + + + + + + NaiveError | @nvandoorn/naive-core + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class NaiveError

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Error +
      +
    • + NaiveError +
    • +
    +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

code

+ + +
+
+ +

message

+
message: string
+ +
+
+ +

name

+
name: string
+ +
+
+ +

Optional stack

+
stack: undefined | string
+ +
+
+ +

Static Error

+
Error: ErrorConstructor
+ +
+
+
+ +
+
+ +
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/core/docs/enums/_error_model_.naiveerrorcode.html b/core/docs/enums/_error_model_.naiveerrorcode.html deleted file mode 100644 index 874aa3d..0000000 --- a/core/docs/enums/_error_model_.naiveerrorcode.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - NaiveErrorCode | naive - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - - - -
-
- Menu -
-
-
-
-
-
- -

Enumeration NaiveErrorCode

-
-
-
-
-
-
-
-

Index

-
-
-
-

Enumeration members

- -
-
-
-
-
-

Enumeration members

-
- -

OUT_OF_SPACE

-
OUT_OF_SPACE:
- -
-
- -

UNCAUGHT

-
UNCAUGHT: = 0
- -
-
-
- -
-
- -
-

Generated using TypeDoc

-
-
- - - - \ No newline at end of file diff --git a/core/docs/enums/_lib_error_model_.naiveerrorcode.html b/core/docs/enums/_lib_error_model_.naiveerrorcode.html new file mode 100644 index 0000000..85f700c --- /dev/null +++ b/core/docs/enums/_lib_error_model_.naiveerrorcode.html @@ -0,0 +1,242 @@ + + + + + + NaiveErrorCode | @nvandoorn/naive-core + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration NaiveErrorCode

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

OUT_OF_SPACE

+
OUT_OF_SPACE:
+ +
+
+ +

UNCAUGHT

+
UNCAUGHT: = 0
+ +
+
+
+ +
+
+ +
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/core/docs/globals.html b/core/docs/globals.html index 7c43aee..3735635 100644 --- a/core/docs/globals.html +++ b/core/docs/globals.html @@ -3,7 +3,7 @@ - naive + @nvandoorn/naive-core @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - naive + @nvandoorn/naive-core
    @@ -56,7 +56,7 @@ Globals -

    naive

    +

    @nvandoorn/naive-core

    @@ -70,13 +70,13 @@

    External modules

    @@ -89,26 +89,32 @@
  • Globals
  • -
  • - "change-handlers.model" +
  • + Internals
  • - "context.model" + "core/src/change-handlers.model"
  • - "database" + "core/src/context.model"
  • - "database.model" + "core/src/database"
  • - "database.test" + "core/src/database.model"
  • - "error.model" + "core/src/database.test"
  • -
  • - "util" +
  • + Externals +
  • +
  • + "lib/error.model" +
  • +
  • + "lib/util"
  • diff --git a/core/docs/index.html b/core/docs/index.html index 281c2c3..cfdc339 100644 --- a/core/docs/index.html +++ b/core/docs/index.html @@ -3,7 +3,7 @@ - naive + @nvandoorn/naive-core @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - naive + @nvandoorn/naive-core
    @@ -56,7 +56,7 @@ Globals -

    naive

    +

    @nvandoorn/naive-core

    @@ -77,26 +77,32 @@
  • Globals
  • -
  • - "change-handlers.model" +
  • + Internals
  • - "context.model" + "core/src/change-handlers.model"
  • - "database" + "core/src/context.model"
  • - "database.model" + "core/src/database"
  • - "database.test" + "core/src/database.model"
  • - "error.model" + "core/src/database.test"
  • -
  • - "util" +
  • + Externals +
  • +
  • + "lib/error.model" +
  • +
  • + "lib/util"
  • diff --git a/core/docs/interfaces/_change_handlers_model_.changehandlers.html b/core/docs/interfaces/_change_handlers_model_.changehandlers.html deleted file mode 100644 index 6f4613c..0000000 --- a/core/docs/interfaces/_change_handlers_model_.changehandlers.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - ChangeHandlers | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface ChangeHandlers

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - ChangeHandlers -
    • -
    -
    -
    -

    Indexable

    -
    [handlerKey: string]: object
    -
      -
    • -
      callback: function
      -
        -
      • -
          -
        • (e: any): Promise<any>
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            e: any
            -
          • -
          -

          Returns Promise<any>

          -
        • -
        -
      • -
      -
    • -
    • -
      path: string
      -
    • -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/interfaces/_context_model_.context.html b/core/docs/interfaces/_context_model_.context.html deleted file mode 100644 index 30807fd..0000000 --- a/core/docs/interfaces/_context_model_.context.html +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - Context | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface Context

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - Context -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Properties

    - -
    -
    -
    -
    -
    -

    Properties

    -
    - -

    cachePath

    -
    cachePath: string
    - -
    -
    -

    Location of the database cache file (JSON file)

    -
    -
    -
    -
    - -

    logger

    -
    logger: function
    - -
    -
    -

    Method used to log.

    -
    -

    console.log is usually supplied - but it may be handy to pipe it elsewhere - later

    -
    -
    -

    Type declaration

    -
      -
    • -
        -
      • (e: any): void
      • -
      -
        -
      • -

        Parameters

        -
          -
        • -
          e: any
          -
        • -
        -

        Returns void

        -
      • -
      -
    • -
    -
    -
    -
    - -

    maxDbSizeMB

    -
    maxDbSizeMB: number
    - -
    -
    -

    Maximum database size in megabytes

    -
    -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/interfaces/_core_src_change_handlers_model_.changehandlers.html b/core/docs/interfaces/_core_src_change_handlers_model_.changehandlers.html new file mode 100644 index 0000000..2601876 --- /dev/null +++ b/core/docs/interfaces/_core_src_change_handlers_model_.changehandlers.html @@ -0,0 +1,226 @@ + + + + + + ChangeHandlers | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Interface ChangeHandlers

    +
    +
    +
    +
    +
    +
    +
    +

    Hierarchy

    +
      +
    • + ChangeHandlers +
    • +
    +
    +
    +

    Indexable

    +
    [handlerKey: string]: object
    +
      +
    • +
      callback: function
      +
        +
      • +
          +
        • (e: any): Promise<any>
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            e: any
            +
          • +
          +

          Returns Promise<any>

          +
        • +
        +
      • +
      +
    • +
    • +
      path: string
      +
    • +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/interfaces/_core_src_context_model_.context.html b/core/docs/interfaces/_core_src_context_model_.context.html new file mode 100644 index 0000000..f3a6338 --- /dev/null +++ b/core/docs/interfaces/_core_src_context_model_.context.html @@ -0,0 +1,294 @@ + + + + + + Context | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Interface Context

    +
    +
    +
    +
    +
    +
    +
    +

    Hierarchy

    +
      +
    • + Context +
    • +
    +
    +
    +

    Index

    +
    +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Properties

    +
    + +

    cachePath

    +
    cachePath: string
    + +
    +
    +

    Location of the database cache file (JSON file)

    +
    +
    +
    +
    + +

    logger

    +
    logger: function
    + +
    +
    +

    Method used to log.

    +
    +

    console.log is usually supplied + but it may be handy to pipe it elsewhere + later

    +
    +
    +

    Type declaration

    +
      +
    • +
        +
      • (e: any): void
      • +
      +
        +
      • +

        Parameters

        +
          +
        • +
          e: any
          +
        • +
        +

        Returns void

        +
      • +
      +
    • +
    +
    +
    +
    + +

    maxDbSizeMB

    +
    maxDbSizeMB: number
    + +
    +
    +

    Maximum database size in megabytes

    +
    +
    +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/interfaces/_core_src_database_model_.databaseinterface.html b/core/docs/interfaces/_core_src_database_model_.databaseinterface.html new file mode 100644 index 0000000..ee0bd2c --- /dev/null +++ b/core/docs/interfaces/_core_src_database_model_.databaseinterface.html @@ -0,0 +1,472 @@ + + + + + + DatabaseInterface | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Interface DatabaseInterface

    +
    +
    +
    +
    +
    +
    +
    +

    Hierarchy

    +
      +
    • + DatabaseInterface +
    • +
    +
    +
    +

    Implemented by

    + +
    +
    +

    Index

    +
    +
    +
    +

    Methods

    + +
    +
    +
    +
    +
    +

    Methods

    +
    + +

    flush

    +
      +
    • flush(): Promise<void>
    • +
    + +
    +
    + +

    init

    +
      +
    • init(): Promise<void>
    • +
    +
      +
    • + +
      +
      +

      Init the database with state + stored in the cache file.

      +
      +

      Calling init is not mandatory, + but is required for any form + of non-volatile storage

      +
      +

      Returns Promise<void>

      +
    • +
    +
    +
    + +

    read

    +
      +
    • read(path: string): Promise<Object>
    • +
    +
      +
    • + +
      +
      +

      Read data from the "node" described by path + where path uses "/" to separate nodes

      +
      +

      null is returned if there is no data + at path

      +
      +

      Parameters

      +
        +
      • +
        path: string
        +
      • +
      +

      Returns Promise<Object>

      +
    • +
    +
    +
    + +

    remove

    +
      +
    • remove(path: string): Promise<void>
    • +
    +
      +
    • + +
      +
      +

      Remove data at path

      +
      +
      +

      Parameters

      +
        +
      • +
        path: string
        +
      • +
      +

      Returns Promise<void>

      +
    • +
    +
    +
    + +

    subscribe

    +
      +
    • subscribe(path: string, callback: function): function
    • +
    +
      +
    • + +
      +
      +

      Subscribe to all data changes at path

      +
      +
      +

      Parameters

      +
        +
      • +
        path: string
        +
      • +
      • +
        callback: function
        +
          +
        • +
            +
          • (e: any): any
          • +
          +
            +
          • +

            Parameters

            +
              +
            • +
              e: any
              +
            • +
            +

            Returns any

            +
          • +
          +
        • +
        +
      • +
      +

      Returns function

      +
        +
      • +
          +
        • (): any
        • +
        +
          +
        • +

          Returns any

          +
        • +
        +
      • +
      +
    • +
    +
    +
    + +

    toString

    +
      +
    • toString(): Object
    • +
    + +
    +
    + +

    write

    +
      +
    • write(path: string, toWrite: Object): Promise<void>
    • +
    +
      +
    • + +
      +
      +

      Write data to the node described by path + where path once again uses "/" separate nodes

      +
      +

      toWrite can be any plain JavaScript object + (e.g anything that can be serialized with JSON.stringify)

      +

      An exception is thrown if the write fails

      +
      +

      Parameters

      +
        +
      • +
        path: string
        +
      • +
      • +
        toWrite: Object
        +
      • +
      +

      Returns Promise<void>

      +
    • +
    +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/interfaces/_database_model_.databaseinterface.html b/core/docs/interfaces/_database_model_.databaseinterface.html deleted file mode 100644 index 11e8dff..0000000 --- a/core/docs/interfaces/_database_model_.databaseinterface.html +++ /dev/null @@ -1,466 +0,0 @@ - - - - - - DatabaseInterface | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface DatabaseInterface

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - DatabaseInterface -
    • -
    -
    -
    -

    Implemented by

    - -
    -
    -

    Index

    -
    -
    -
    -

    Methods

    - -
    -
    -
    -
    -
    -

    Methods

    -
    - -

    flush

    -
      -
    • flush(): Promise<void>
    • -
    -
      -
    • - -
      -
      -

      Empty the database

      -
      -
      -

      Returns Promise<void>

      -
    • -
    -
    -
    - -

    init

    -
      -
    • init(): Promise<void>
    • -
    -
      -
    • - -
      -
      -

      Init the database with state - stored in the cache file.

      -
      -

      Calling init is not mandatory, - but is required for any form - of non-volatile storage

      -
      -

      Returns Promise<void>

      -
    • -
    -
    -
    - -

    read

    -
      -
    • read(path: string): Promise<Object>
    • -
    -
      -
    • - -
      -
      -

      Read data from the "node" described by path - where path uses "/" to separate nodes

      -
      -

      null is returned if there is no data - at path

      -
      -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns Promise<Object>

      -
    • -
    -
    -
    - -

    remove

    -
      -
    • remove(path: string): Promise<void>
    • -
    -
      -
    • - -
      -
      -

      Remove data at path

      -
      -
      -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns Promise<void>

      -
    • -
    -
    -
    - -

    subscribe

    -
      -
    • subscribe(path: string, callback: function): function
    • -
    -
      -
    • - -
      -
      -

      Subscribe to all data changes at path

      -
      -
      -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      • -
        callback: function
        -
          -
        • -
            -
          • (e: any): any
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              e: any
              -
            • -
            -

            Returns any

            -
          • -
          -
        • -
        -
      • -
      -

      Returns function

      -
        -
      • -
          -
        • (): any
        • -
        -
          -
        • -

          Returns any

          -
        • -
        -
      • -
      -
    • -
    -
    -
    - -

    toString

    -
      -
    • toString(): Object
    • -
    -
      -
    • - -
      -
      -

      String representation (JSON) of the database

      -
      -
      -

      Returns Object

      -
    • -
    -
    -
    - -

    write

    -
      -
    • write(path: string, toWrite: Object): Promise<void>
    • -
    -
      -
    • - -
      -
      -

      Write data to the node described by path - where path once again uses "/" separate nodes

      -
      -

      toWrite can be any plain JavaScript object - (e.g anything that can be serialized with JSON.stringify)

      -

      An exception is thrown if the write fails

      -
      -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      • -
        toWrite: Object
        -
      • -
      -

      Returns Promise<void>

      -
    • -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/modules/_change_handlers_model_.html b/core/docs/modules/_change_handlers_model_.html deleted file mode 100644 index 2a535b5..0000000 --- a/core/docs/modules/_change_handlers_model_.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - "change-handlers.model" | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "change-handlers.model"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Interfaces

    - -
    -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/modules/_context_model_.html b/core/docs/modules/_context_model_.html deleted file mode 100644 index 68ecf78..0000000 --- a/core/docs/modules/_context_model_.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - "context.model" | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "context.model"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Interfaces

    - -
    -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/modules/_core_src_change_handlers_model_.html b/core/docs/modules/_core_src_change_handlers_model_.html new file mode 100644 index 0000000..48111fb --- /dev/null +++ b/core/docs/modules/_core_src_change_handlers_model_.html @@ -0,0 +1,194 @@ + + + + + + "core/src/change-handlers.model" | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    External module "core/src/change-handlers.model"

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Interfaces

    + +
    +
    +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/modules/_core_src_context_model_.html b/core/docs/modules/_core_src_context_model_.html new file mode 100644 index 0000000..61bf7bc --- /dev/null +++ b/core/docs/modules/_core_src_context_model_.html @@ -0,0 +1,194 @@ + + + + + + "core/src/context.model" | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    External module "core/src/context.model"

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Interfaces

    + +
    +
    +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/modules/_core_src_database_.html b/core/docs/modules/_core_src_database_.html new file mode 100644 index 0000000..e217588 --- /dev/null +++ b/core/docs/modules/_core_src_database_.html @@ -0,0 +1,391 @@ + + + + + + "core/src/database" | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    External module "core/src/database"

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Classes

    + +
    +
    +

    Variables

    + +
    +
    +

    Functions

    + +
    +
    +

    Object literals

    + +
    +
    +
    +
    +
    +

    Variables

    +
    + +

    Const read

    +
    read: __promisify__ = promisify(readFile)
    + +
    +
    + +

    Const write

    +
    write: __promisify__ = promisify(writeFile)
    + +
    +
    +
    +

    Functions

    +
    + +

    Const isChildOrMatch

    +
      +
    • isChildOrMatch(child: string, parent: string): boolean
    • +
    + +
    +
    + +

    Const isRootNode

    +
      +
    • isRootNode(path: string): boolean
    • +
    +
      +
    • + +
      +
      +

      Identify if a path is a root node

      +
      +
      +

      Parameters

      +
        +
      • +
        path: string
        +
      • +
      +

      Returns boolean

      +
    • +
    +
    +
    + +

    Const splitPath

    +
      +
    • splitPath(path: string): string[]
    • +
    +
      +
    • + +
      +
      +

      Split path using "/" as a delimiter

      +
      +
      +

      Parameters

      +
        +
      • +
        path: string
        +
      • +
      +

      Returns string[]

      +
    • +
    +
    +
    +
    +

    Object literals

    +
    + +

    Const DEFAULT_CTX

    +
    DEFAULT_CTX: object
    + +
    + +

    cachePath

    +
    cachePath: string = `${__dirname}/db.json`
    + +
    +
    + +

    logger

    +
    logger: log = console.log
    + +
    +
    + +

    maxDbSizeMB

    +
    maxDbSizeMB: number = 6
    + +
    +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/modules/_core_src_database_model_.html b/core/docs/modules/_core_src_database_model_.html new file mode 100644 index 0000000..26b75f2 --- /dev/null +++ b/core/docs/modules/_core_src_database_model_.html @@ -0,0 +1,194 @@ + + + + + + "core/src/database.model" | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    External module "core/src/database.model"

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Interfaces

    + +
    +
    +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/modules/_core_src_database_test_.html b/core/docs/modules/_core_src_database_test_.html new file mode 100644 index 0000000..bad9502 --- /dev/null +++ b/core/docs/modules/_core_src_database_test_.html @@ -0,0 +1,242 @@ + + + + + + "core/src/database.test" | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    External module "core/src/database.test"

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Variables

    + +
    +
    +

    Functions

    + +
    +
    +
    +
    +
    +

    Variables

    +
    + +

    Const maxDbSizeMB

    +
    maxDbSizeMB: 0.1 = 0.1
    + +
    +
    +
    +

    Functions

    +
    + +

    Const generateString

    +
      +
    • generateString(sizeBytes: number): any[]
    • +
    + +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/modules/_database_.html b/core/docs/modules/_database_.html deleted file mode 100644 index 1d50b7e..0000000 --- a/core/docs/modules/_database_.html +++ /dev/null @@ -1,385 +0,0 @@ - - - - - - "database" | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "database"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Classes

    - -
    -
    -

    Variables

    - -
    -
    -

    Functions

    - -
    -
    -

    Object literals

    - -
    -
    -
    -
    -
    -

    Variables

    -
    - -

    Const read

    -
    read: __promisify__ = promisify(readFile)
    - -
    -
    - -

    Const write

    -
    write: __promisify__ = promisify(writeFile)
    - -
    -
    -
    -

    Functions

    -
    - -

    Const isChildOrMatch

    -
      -
    • isChildOrMatch(child: string, parent: string): boolean
    • -
    - -
    -
    - -

    Const isRootNode

    -
      -
    • isRootNode(path: string): boolean
    • -
    -
      -
    • - -
      -
      -

      Identify if a path is a root node

      -
      -
      -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns boolean

      -
    • -
    -
    -
    - -

    Const splitPath

    -
      -
    • splitPath(path: string): string[]
    • -
    -
      -
    • - -
      -
      -

      Split path using "/" as a delimiter

      -
      -
      -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns string[]

      -
    • -
    -
    -
    -
    -

    Object literals

    -
    - -

    Const DEFAULT_CTX

    -
    DEFAULT_CTX: object
    - -
    - -

    cachePath

    -
    cachePath: string = `${__dirname}/db.json`
    - -
    -
    - -

    logger

    -
    logger: log = console.log
    - -
    -
    - -

    maxDbSizeMB

    -
    maxDbSizeMB: number = 6
    - -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/modules/_database_model_.html b/core/docs/modules/_database_model_.html deleted file mode 100644 index 4a395d3..0000000 --- a/core/docs/modules/_database_model_.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - "database.model" | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "database.model"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Interfaces

    - -
    -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/modules/_database_test_.html b/core/docs/modules/_database_test_.html deleted file mode 100644 index 98f4ccf..0000000 --- a/core/docs/modules/_database_test_.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - "database.test" | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "database.test"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Variables

    - -
    -
    -

    Functions

    - -
    -
    -
    -
    -
    -

    Variables

    -
    - -

    Const maxDbSizeMB

    -
    maxDbSizeMB: 0.1 = 0.1
    - -
    -
    -
    -

    Functions

    -
    - -

    Const generateString

    -
      -
    • generateString(sizeBytes: number): any[]
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        sizeBytes: number
        -
      • -
      -

      Returns any[]

      -
    • -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/modules/_error_model_.html b/core/docs/modules/_error_model_.html deleted file mode 100644 index 702874d..0000000 --- a/core/docs/modules/_error_model_.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - "error.model" | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "error.model"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Enumerations

    - -
    -
    -

    Classes

    - -
    -
    -

    Variables

    -
      -
    • e
    • -
    -
    -
    -

    Functions

    - -
    -
    -
    -
    -
    -

    Variables

    -
    - -

    Const e

    -
    e: NaiveErrorCode = NaiveErrorCode
    - -
    -
    -
    -

    Functions

    -
    - -

    Const lookupMsg

    -
      -
    • lookupMsg(c: NaiveErrorCode): "Out of storage space (too big for in memory buffer)" | "Uncaught error. Please add message/code in src/error.model.ts"
    • -
    -
      -
    • - -

      Parameters

      - -

      Returns "Out of storage space (too big for in memory buffer)" - | - "Uncaught error. Please add message/code in src/error.model.ts" -

      -
    • -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file diff --git a/core/docs/modules/_lib_error_model_.html b/core/docs/modules/_lib_error_model_.html new file mode 100644 index 0000000..7729994 --- /dev/null +++ b/core/docs/modules/_lib_error_model_.html @@ -0,0 +1,263 @@ + + + + + + "lib/error.model" | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    External module "lib/error.model"

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Enumerations

    + +
    +
    +

    Classes

    + +
    +
    +

    Variables

    +
      +
    • e
    • +
    +
    +
    +

    Functions

    + +
    +
    +
    +
    +
    +

    Variables

    +
    + +

    Const e

    +
    e: NaiveErrorCode = NaiveErrorCode
    + +
    +
    +
    +

    Functions

    +
    + +

    Const lookupMsg

    +
      +
    • lookupMsg(c: NaiveErrorCode): "Out of storage space (too big for in memory buffer)" | "Uncaught error. Please add message/code in src/error.model.ts"
    • +
    +
      +
    • + +

      Parameters

      + +

      Returns "Out of storage space (too big for in memory buffer)" + | + "Uncaught error. Please add message/code in src/error.model.ts" +

      +
    • +
    +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/modules/_lib_util_.html b/core/docs/modules/_lib_util_.html new file mode 100644 index 0000000..35a24ff --- /dev/null +++ b/core/docs/modules/_lib_util_.html @@ -0,0 +1,263 @@ + + + + + + "lib/util" | @nvandoorn/naive-core + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    External module "lib/util"

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Functions

    + +
    +
    +
    +
    +
    +

    Functions

    +
    + +

    Const getKey

    +
      +
    • getKey(seed: string): string
    • +
    +
      +
    • + +
      +
      +

      Generate a random key with a seed

      +
      +
      +

      Parameters

      +
        +
      • +
        seed: string
        +
      • +
      +

      Returns string

      +
    • +
    +
    +
    + +

    Const last

    +
      +
    • last<T>(t: T[]): T
    • +
    +
      +
    • + +
      +
      +

      Get the last item in t

      +
      +
      +

      Type parameters

      +
        +
      • +

        T

        +
      • +
      +

      Parameters

      +
        +
      • +
        t: T[]
        +
      • +
      +

      Returns T

      +
    • +
    +
    +
    +
    + +
    +
    + +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/core/docs/modules/_util_.html b/core/docs/modules/_util_.html deleted file mode 100644 index 8852837..0000000 --- a/core/docs/modules/_util_.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - "util" | naive - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "util"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Functions

    - -
    -
    -
    -
    -
    -

    Functions

    -
    - -

    Const getKey

    -
      -
    • getKey(seed: string): string
    • -
    -
      -
    • - -
      -
      -

      Generate a random key with a seed

      -
      -
      -

      Parameters

      -
        -
      • -
        seed: string
        -
      • -
      -

      Returns string

      -
    • -
    -
    -
    - -

    Const last

    -
      -
    • last<T>(t: T[]): T
    • -
    -
      -
    • - -
      -
      -

      Get the last item in t

      -
      -
      -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        t: T[]
        -
      • -
      -

      Returns T

      -
    • -
    -
    -
    -
    - -
    -
    - -
    -

    Generated using TypeDoc

    -
    -
    - - - - \ No newline at end of file -- cgit v1.2.3